Forum Discussion
rocky09
8 years agoSolution Sage
Issue with Summarizing Status Count
See below table, I have cat. column, where Users start working on each cat. and change the status to Inprogress, Complete and some times rework. So, if a Cat. worked on 5 days and status will be ...
- 8 years ago
Hi rocky09,
Based on my test, the formula below should work in your scenario.
Count = VAR maxDate = CALCULATE ( MAX ( Data[Date] ), FILTER ( ALL ( Data ), Data[Cat.] = EARLIER ( Data[Cat.] ) ) ) VAR minDate = CALCULATE ( MAX ( Data[Date] ), FILTER ( ALL ( Data ), Data[Cat.] = EARLIER ( Data[Cat.] ) ) ) RETURN IF ( Data[Status] = "Completed", 1, IF ( Data[Date] = maxDate, 1 + DATEDIFF ( minDate, maxDate, DAY ) / 10, 0 ) )Here is the sample pbix file for your reference. :smileyhappy:
Regards
Ashish_Mathur
8 years agoSuper User
Hi,
That is exactly what i mentioned in my previous post. I get the same error. It works fine in Excel though. Looks like a bug in PowerBI desktop.
rocky09
8 years agoSolution Sage
oh.. will wait for someone to confirm if this is the actually bug with Power Bi Desktop as it is working fine in Excel. Weired.