Forum Discussion
Mahdi1366
3 years agoRegular Visitor
How to Count Users with Multiple Mourse Completions?
Hi team, I need to count people who are compliant with all courses that our company offers to them. Anyone who completes all courses is compliant, others are not. For example, let's say we have...
- 3 years ago
First, create a calculated column
Count = IF ( 'Table'[Course] IN { "C1", "C2", "C2" } && 'Table'[Completed] = "No", 1 )Then create this measure:
Compliant = SUMX ( SUMMARIZE ( 'Table', 'Table'[Name], "CountNo", CALCULATE ( sum('Table'[Count]), ALLEXCEPT ( 'Table', 'Table'[Name] ) ) ), IF ( [CountNo] = BLANK (), 1 ) )
Mahdi1366
3 years agoRegular Visitor
danextian You could be right that every [name] with [completed] = No is non-compliant IF there were no irrelevant courses. In the above example, Name A is compliant although A has not completed course C4.
* To be compliant, you only need to complete C1, C2, and C3.
danextian
Super User
3 years agoFirst, create a calculated column
Count =
IF ( 'Table'[Course] IN { "C1", "C2", "C2" } && 'Table'[Completed] = "No", 1 )
Then create this measure:
Compliant =
SUMX (
SUMMARIZE (
'Table',
'Table'[Name],
"CountNo",
CALCULATE (
sum('Table'[Count]),
ALLEXCEPT ( 'Table', 'Table'[Name] )
)
),
IF ( [CountNo] = BLANK (), 1 )
)