Hi everyone,
I created a report where it displays the average # of days that a custom field “Dropdown A” has the option “Option A” selected and is still open, similar to the built in Measure “Average Age of Open Issues” with this formula
CASE WHEN [Measures].[Open issues] > 0 THEN
Avg(
Filter(Descendants([Issue].CurrentMember, [Issue].[Issue]),
-- filter open issues in period using issue properties Created date and Resolution date only
DateBeforePeriodEnd(
[Issue].CurrentMember.get('Created at'),
[Time].CurrentHierarchyMember) AND
NOT DateBeforePeriodEnd(
[Issue].CurrentMember.get('Resolved at'),
[Time].CurrentHierarchyMember)
),
CASE WHEN
([Measures].[Issues created],
[Time].CurrentHierarchy.DefaultMember) > 0
THEN
-- cumulative age of each issue for any period till end of period or till today
CASE WHEN DateInPeriod(Now(), [Time].CurrentHierarchyMember)
THEN DateDiffDays([Issue].CurrentMember.get('Created at'),
Now())
ELSE DateDiffDays([Issue].CurrentMember.get('Created at'),
[Time].CurrentHierarchyMember.NextStartDate)
END
END
)
END
This displays the data fine but only for the months that an issue was created with those criterias. How can I display the data to be displayed in the preceeding months where no issues created?
For example, issues with those criterias were created in August and nothing after that but I would still like to see those August issues displayed in Sept. Oct, Nov, Dec becuase those issues are still open