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
rocky09
8 years agoSolution Sage
Thank you so much. Waiting for your kind reply.
Ashish_Mathur
8 years agoSuper User
- rocky098 years agoSolution Sage
Hi Ashish,
Thank you, it is in excel. I am looking for a solution in Power Bi Desktop.
- Ashish_Mathur8 years agoSuper User
- rocky098 years agoSolution Sage
I have older version of excel. So, I cannot see the measure you used in the excel. That is why i have asked you to provide pbi file.