Forum Discussion
Anonymous
7 years agoNot applicable
Measure with user attendance
Hello, I would like to calculate staff attendance to training sessions. See the sample table below. I guess I am getting all to show 100% because the DISTINCTCOUNT is being filtered by user ...
- 7 years ago
I think this should work:
Measure = DIVIDE(DISTINCTCOUNT('Sample'[Session]) , CALCULATE(DISTINCTCOUNT('Sample'[Session]) , ALL('Sample')) , BLANK())
tex628
Community Champion
7 years agoJust have to check, you wrote 33 sessions previously but i can only find 19 unique session. Did i miss something?
Anonymous
7 years agoNot applicable
Not sure what to answer. Measure 1 is counting the number of sessions. It reads 16.
Why would Measure 2 count 19...? :-s
- tex6287 years ago
Community Champion
Lets take the logic step by step!
Each unique date in the sample data represents a unique session. In the dataset there are a total of 19 different dates. This must mean that there are a total of 19 potential sessions that each user can go to, right? - Anonymous7 years agoNot applicable
Yes! 19 different sessions. That is correct.
I was counting 16 because I had another slicer applied. My mistake.