Essentially I need to find the aggregate of "Days in 'New'" across issues.
I have a table that will spit out the total but I need a formula that includes the total number of "Days in 'New'" and divide it by the issues with open date to get an average.
So far I have only been able to calculate the "Days in New" for each individual issue.
I am using two different date stamps to calculate days in new/open/pending.
This was my first attempt at the formula:
And these are the results. As you can see, If I sort by individual issues it works fine but when I collapse it to get an average of the project I don't get any results.
Hi Simon,
Well done with the code so far! It works correctly at issue level indeed.
To make it work also on the project level in "Issue" dimension, you may want to use the following code which is universal
CASE WHEN
[Measures].[Issues with open date] > 0
THEN
NonZero(
AVG(
Filter(
Descendants([Issue].CurrentHierarchyMember,[Issue].[Issue]),
Not IsEmpty([Measures].[Issue Open Date])
AND
[Measures].[Issues with open date]>0
),
DateDiffDays(
[Measures].[Issue created date],
[Measures].[Issue Open Date])
)
)
END
Kind regards,
Martins / eazyBI team
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.