I am pretty new to Eazybi and trying to put on some reports for my team.
I was able to use the formula below to find the average age of open issues, but what i need is the average age of open issues IN WORKDAYS only and this formula below is giving me workdays and weekends.
It is important to note that, my workday settings are Monday through Friday.
I do not know what to do in order to have a result only in workdays.
Please help
This the formula:
CASE WHEN [Measures].[Open issues] > 0 THEN
Avg(
Filter(Descendants([Issue].CurrentMember, [Issue].[Issue]),
[Measures].[Open issues] > 0),
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