Forum Discussion
Anonymous
6 years agoNot applicable
Filter Using Dax
Hi experts, quick question, I'm trying to write a measure to calculate a distinct count of a column when that column is either of two possible filters. So something like this; CALCULATE(DI...
- 6 years ago
Anonymous
you were almost correct
CALCULATE(DISTINCTCOUNT([Column A]),FILTER(Data,Data[Column B]="Red" || Data[Column B]="Blue"))
amitchandak
6 years agoSuper User
Anonymous , try like
CALCULATE(DISTINCTCOUNT([Column A]),FILTER(Data,[Column B] in{"Red" , "Blue"}))