Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello All,
I am trying to calculate running count of distinct employees who are choached and i am able to get the result with below query.
Coached = 
CALCULATE( DISTINCTCOUNT(TimeOffDailyFact[EmployeeName_ID]),
    FILTER(
        ALLSELECTED(TimeOffDailyFact),
        
        TimeOffDailyFact[Coached_NonCoached] = "Coached" &&
        TimeOffDailyFact[FirstDayOfMonth] <= MAX(TimeOffDailyFact[FirstDayOfMonth])))
The result is workes fine but when a perticular month has no Coached employees, then it returns as blank as below image.
Even if we have blank values, the prior value which is 10 should continue in this case.
Any help please.
Thanks,
Mohan V.
Hi @Anonymous ,
As tested here,it works fine:
You could try to create a new measure as below:
Coached_total=SUMX(FILTER( ALLSELECTED(TimeOffDailyFact),
        TimeOffDailyFact[FirstDayOfMonth] <= MAX(TimeOffDailyFact[FirstDayOfMonth])),[Coached])
Pls note that the column "FirstDayofMonth" is a date format column which can be compared with.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
@Anonymous 
You can turn off the Show Item with non-Data. 
⭕  Subscribe and learn Power BI from these videos
 ⚪ Website ⚪  LinkedIn ⚪  PBI User Group 
Thanks for the reply @Fowmy.
I did tried that already, but nothing changed actually.
The values still shows the same.
Hi @Anonymous ,
Have you checked my reply?Is your issue solved now?
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
@Anonymous 
Not sure how your model is formed, if you can share a sample power bi file with this scenario, it would great.
⭕  Subscribe and learn Power BI from these videos
 ⚪ Website ⚪  LinkedIn ⚪  PBI User Group 
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.