Forum Discussion
BI_diva
5 years agoRegular Visitor
DAX: Cumulative distinctcount incorrect on blank rows
Hi, I am unable to get a correct cumulative distinctcount, because my table has blank rows for some columns. The formula for NoStudents I used is: CALCULATE( DISTINCTCOUNTNOBLANK(MyTable[NoStu...
Anonymous
5 years agoNot applicable
var LastDurationVisible = MAX( MyTable[Duration] )
return
CALCULATE(
SUM( MyTable[NoStudents] ),
MyTable[Duration] <= LastDurationVisible
)
- BI_diva5 years agoRegular Visitor
Hi Daxer, thank you for your suggested answer. I have just given it a try, but unfortunately the result in the table is still the same.
- Anonymous5 years agoNot applicable
You have to show more than what you have. Certainly, my formula is totally correct for the table shown and I can totally prove it. If it does not work for you, it means you've got something in there that is different than what you've shown.
- BI_diva5 years agoRegular Visitor
Hi Daxer, here is a link to the .pbix file: https://1drv.ms/u/s!As7R5dcyGWRKgjaQk8A-9fWvnO3W?e=ilibVn