Forum Discussion
Calculating a Weighted Performance using DAX
- 9 years ago
Instead of trying to use Distinct() within in the Filter() function, can you try to use it directly inside the Countrows() function like,
COUNTROWS ( DISTINCT ( 'Bmk 2 Retest 4 5 ES'[StudentID] ))
Let me know if this helps.
Oh, and why do you even calculate the value for Beginning if it is gonna be multiplied with zero ? :smileywink:
Instead of trying to use Distinct() within in the Filter() function, can you try to use it directly inside the Countrows() function like,
COUNTROWS ( DISTINCT ( 'Bmk 2 Retest 4 5 ES'[StudentID] ))
Let me know if this helps.
Oh, and why do you even calculate the value for Beginning if it is gonna be multiplied with zero ? :smileywink:
- Michael19 years agoAdvocate II
This works great! Thank you.
- Mi2n9 years agoMicrosoft Employee
Just a small update. Instead of both the CountRows() and Distinct() function, the single Countdistinct() function will also work.
- Michael19 years agoAdvocate II
DISTINCTCOUNT works great! Thanks -- I guess I just needed to switch the way I was trying to think about this.
Thank you again :)!