Need some help.
I have Project KPI board. Everything was fine till that point, where I had to calculate how much Bad projects are?
I think it's because Status measure I calculated is not row based.
Status = IF([CPI]>0,7; "Good";IF([CPI]>0,5; "Need attention";"Bad"))
CPI = [EV]/[Worklog]
EV = CALCULATE( SUM(jira[Billabe Hours]); FILTER(jira;jira[Resolution]<>BLANK()))
Worklog = SUM(Worklog[WorklogHours])
I looked through some posts, but I couldn't get right DAX to fit.
Can anyone help me, this is pbix file:
Go to Solution.
HI @Anonymous ,
Based on my understand, In your scenario, the CPI of Project 2 and 3 are less than 0.5, then the result will be 2.
You can use the following DAX query:
VAR a =
ADDCOLUMNS ( VALUES ( Component[Project] ), "CPIa", [CPI] )
COUNTROWS ( FILTER ( a, [CPIa] < 0.5 && Component[Project] <> BLANK () ) )
The measure you shared will not get the true data, the [CPI] is a measure, it will be calculated based on the filter, but in the measure "BAD Project", it will not have the context of Project names.
View solution in original post
Hi @Anonymous ,
Based on my check, I haven't found problem in your DAX query, could you please tell me what's problem did you meet?
Thanks, @TeigeGao for the replay
Problem is by calculating the number of BAD projects.
BAD Project = CALCULATE(DISTINCTCOUNT(Component[Project]);FILTER(Component;[CPI]<0,5))
Thanks, @TeigeGao it worked!
Join us in the third Triple A event!
It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.
Make sure you didn't miss any of the things that happened in the community in January!