Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not 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)). Below is an example of what i did.

 

FILTER(TableA,TableA[ColumnA] <> "%CSH%"),FILTER(TableA,TableA[ColumnA] <> "%CRT%"))

 

 

1 ACCEPTED SOLUTION

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" } ) )
)

 

 1.PNG

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , You need to use search find or containsstring

 

Like

FILTER(TableA,search("CSH",TableA[ColumnA],,0)<=0 && search("CRT",TableA[ColumnA],,0)<=0)

 

Here =0 means it does not have that string

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you! I have another question. in SQL where they have where in and NOT IN operator, how can dax be applied? if I want to exclude below 1000005,1000006,1000007 in my filter. Appreciate your help!

Anonymous
Not 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
Not 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.

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" } ) )
)

 

 1.PNG

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi XueDing,

 

Thanks alot! Cheers!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.