Forum Discussion
Anonymous
6 years agoNot applicable
Filter out multiple value
Hi Guys Any easier way to filter multi value in the same column in dax? I have more than 20 values that consist of %CSH% and %CRT% which i want to filter out. Currently I'm using Calculate(Count)...
- 6 years ago
Hi Anonymous ,
You could try to add filter condition like this: && NOT ( 'Table'[Column] IN { 1000005,1000006,1000007 } )
My sample:
Measure 2 = CALCULATE ( SUM ( 'Table'[Sales] ), FILTER ( 'Table', NOT ( 'Table'[Product] IN { "Paseo", "Velo", "VTT" } ) ) )
Anonymous
6 years agoNot applicable
Thanks! I have another question. in SQL where have where IN and NOT IN operator, how can it apply it dax? if i want to exclude below 1000005,1000006,1000007 in my filter. Appreciate your help!
Anonymous
6 years agoNot applicable
Thanks! I have another question. in SQL they have where IN and NOT IN operator, how can we apply it in dax? if I want to exclude below 1000005,1000006,1000007 in my filter. Appreciate your help!
** Sorry for the previous message typo.
- v-xuding-msft6 years ago
Community Support
Hi Anonymous ,
You could try to add filter condition like this: && NOT ( 'Table'[Column] IN { 1000005,1000006,1000007 } )
My sample:
Measure 2 = CALCULATE ( SUM ( 'Table'[Sales] ), FILTER ( 'Table', NOT ( 'Table'[Product] IN { "Paseo", "Velo", "VTT" } ) ) )- Anonymous6 years agoNot applicable
Hi XueDing,
Thanks alot! Cheers!