Forum Discussion
Anonymous
6 years agoNot applicable
Distinct count based on another column
I have a table, which contains column name IDNR and other columns, I want to count IDNR based on column TYPE, where TYPE= ABC.
- Anonymous6 years ago
Anonymous
Measure 2 = CALCULATE(DISTINCTCOUNT('Table'[IDNR]),'Table'[Type]="ABC")do you want to count number of rows where type= "ABC"?
2 Replies
- AnonymousNot applicable
Anonymous
I think you mean the TYPE column contains A, B, C.
Result = CALCULATE(DISTINCTCOUNT('Table'[IDNR]),ALLEXCEPT('Table',Table[TYPE]))
Best,
PaulIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- AnonymousNot applicable
Anonymous
Measure 2 = CALCULATE(DISTINCTCOUNT('Table'[IDNR]),'Table'[Type]="ABC")do you want to count number of rows where type= "ABC"?