Hi
Please can you help?
I need a a single calculated field to work as follows.....
If I have an issue that is an epic I to sum the total hours logged against that epic or any issue attributed to the epic
If the issue is not an epic I want it to sum the total hours logged against the issue of any children
If think this (below) could achieve the latter - but I'm not really sure how to deal with the epic and how to glue it all together into a single calculated member.
Sum(Filter( Descendants([Issue].CurrentMember, [Issue].[Issue]), [Measures].[Hours spent with sub-tasks] > 0 ), [Measures].[Hours spent with sub-tasks])
Well.....I came up with the following - but not sure it works in all cases or is best practice.....
CASE WHEN [Measures].[Issue type] = 'Epic' THEN Sum( Descendants([Issue].CurrentMember, [Issue].[Issue]), DefaultContext(( [Epic Link].[Epic].Members.Item([Issue].CurrentMember.Name), [Time].CurrentMember, [Measures].[Hours Spent] )) ) ELSE [Measures].[Hours spent with sub-tasks] END
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.