Forum Discussion
FruitBat
6 years agoFrequent Visitor
Count Row with Multiple Criteria
Having difficulty counting the number of users with multiple group assignments. Data look like that found in the table below. Solution I seek is "1", indicating that there's a count of only one use...
- Anonymous6 years ago
FruitBat Please create following measure to get count of name associated with more then one group
Measure = VAR _groupCount = CALCULATE(COUNTX('Table','Table'[Group]),ALLEXCEPT('Table','Table'[Name])) VAR _table = SUMMARIZE('Table','Table'[Name],"GroupCount",CALCULATE(COUNTX('Table','Table'[Group]),ALLEXCEPT('Table','Table'[Name]))) RETURN SUMX(FILTER(_table,[GroupCount]>1),[GroupCount])
Anonymous
6 years agoNot applicable
FruitBat Please create following measure to get count of name associated with more then one group
Measure =
VAR _groupCount = CALCULATE(COUNTX('Table','Table'[Group]),ALLEXCEPT('Table','Table'[Name]))
VAR _table = SUMMARIZE('Table','Table'[Name],"GroupCount",CALCULATE(COUNTX('Table','Table'[Group]),ALLEXCEPT('Table','Table'[Name])))
RETURN SUMX(FILTER(_table,[GroupCount]>1),[GroupCount])FruitBat
6 years agoFrequent Visitor
Nailed it. Thanks, Anonymous !