Forum Discussion
mellas_k
9 years agoHelper I
How to use a multiple filter on the same column
hello , I need your help to optimize my work … I will give you the below table to explain my problem Table : columnA columnB column A A A A B...
cs_skit
9 years agoResolver IV
you are right I seem to be too stupid to understand what you want to do
maybe this?
CountSpecialinAllCols =
COUNTROWS(FILTER(ALL(ABCtable);[ColumnA] IN{"A";"B"})) +
COUNTROWS(FILTER(ALL(ABCtable);[ColumnB] IN{"A";"B";"XYZ"})) +
COUNTROWS(FILTER(ALL(ABCtable);[ColumnC] IN{"B";"C";"uniquestuff"}))
mellas_k
9 years agoHelper I
hi cs_skit
Maybe you don’t understand me but with your example you give me what I need ..
Just I need to add {in}
measure= (CALCULATE(COUNT(Table [columnA ]);FILTER(Table; Table[columnA ] IN{"A";"B")))
And now I can do many filter on the same column
thanks :)
- Anonymous6 years agoNot applicable
Worked, but please write the code correctly
Measure = CALCULATE(COUNT(CoulmnName), FILTER(Table, ColumnName IN {"A","B","C"}))
- cs_skit9 years agoResolver IV
glad to be of help :)
also SWITCH statement can be nice for filters