I have a graph that is super slown, sometime it is not display because it spend more than 60 seconds to compute. So, I’m looking for a way to optimize this. Any suggestion is welcome of course
Here is how I define it, I’m looking to count the number of tickets with an age between 60 and 90 working days.
Aggregate(
Descendants([Issue].CurrentMember, [Issue].[Issue]),
CASE WHEN
[Measures].[Issues created] > 0
AND
– check if issue is relevant for the report
DateDiffWorkdays([Measures].[Issue created date], Now()) >= 60
AND
DateDiffWorkdays([Measures].[Issue created date], Now()) < 90
THEN
1
END
)
SUM(
Filter(
Descendants([Issue].CurrentMember, [Issue].[Issue]),
DateDiffWorkdays([Measures].[Issue created date], Now()) >= 60
AND
DateDiffWorkdays([Measures].[Issue created date], Now()) < 90
And
DateInPeriod([Measures].[Issue created date],[Time].CurrenthierarchyMember)
),
[Measures].[Issues created]
)
There is no good workaround to calculate the age in workdays.
If you could export and share the definition, perhaps there are some ways to add more filters to your custom calculation to slightly improve it