Dear Community,
I am new to using this wonderful tool that is eazyBI, and I succeed creating some very useful KPIs, but I’m stuck on one report
I have a project with two custom fields dates : “Target maintenance date” and “Real maintenance date”
I would like to see the %age of issues where the Target maintenance date is after the Real Maintenance date
For this, I created 3 custom measures :
- OTD OK : count issues where Target maintenance date is after the Real Maintenance date
- OTD KO : count issues where Target maintenance date is before the Real Maintenance date
- Ratio : %age of OK/(OK+KO)
It works pretty well except one thing :
In the previous table, Issues are linked to the month of their creation ( Jul 2020 for PM-8 for exemple ), but i would like to link them to the month of their Target Maintenance date ( Mar 2021 for PM-8, because PM-8 Target maintenance date is 15/03/2021).
Here is the code of the “OTD KO” :
Count(
Filter(
Descendants([Issue].CurrentHierarchyMember, [Issue].[Issue]),
DateDiffWorkdays(
[Measures].[Issue Planned maintenance date],
[Measures].[Issue Real maintenance date]) >= 0
AND
DateInPeriod(
[Measures].[Issue created date],
[Time].CurrentHierarchyMember )
))
I tried to change the
[Measures].[Issue created date] with [Measures].[Issue Planned maintenance date] without any success
Could you help me ?
A big thank you
Antoine