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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
spaturu3234
Frequent Visitor

How Do I Filter Multiple Values

I Need to filter on 100 values in dataset, How can I do that in DAX

 

Data:

ID Column1  Column 2 etc...

1     A1

2     B1

3     C1

4     D1

 

so on ..

 

How Can I filter records which are in (A1,B1,C1,D1...........Z1) ?

 

I have 100 categories to filter and there are 900 categories 

 

 

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@spaturu3234

 

In DAX, to filter table with "IN" condition, you can only make Column1 match each value and apply OR logic between them. 

 

FILTER(Table,Table[Column1] = A1 || Table[Column1] = B1 || Table[Column1] = C1 || Table[Column1] = D1)

Please also refer to this blog: From SQL to DAX: IN and EXISTS

 

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@spaturu3234

 

In DAX, to filter table with "IN" condition, you can only make Column1 match each value and apply OR logic between them. 

 

FILTER(Table,Table[Column1] = A1 || Table[Column1] = B1 || Table[Column1] = C1 || Table[Column1] = D1)

Please also refer to this blog: From SQL to DAX: IN and EXISTS

 

 

Regards,

Greg_Deckler
Community Champion
Community Champion

First, are the categories really A1, B1, etc. or are you just using that as an example? Second, what are the other categories (like actual names?

 

A brute force way would be to create a column using nested IF statements (yuck!) or a SWITCH statement (cleaner) that simply returned 1 for included categories and 0 for categories you do not want included. You could then simply filter on that column for all values equal to 1.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.