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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
kipi_bi
Frequent Visitor

OR Filter with Power BI

I have a task to create a OR Slicer, Means if I pick any Region and City , the output should be OR type, I get all the rows with either Selected City or Region, in order to solve this problem I created 2 tables using values (one for region and one for city, tables starting with the word slicer ) and after that I have used below DAX, BUT I am not able to get the OR effect, it gives me AND effect,

I should be able to see other states with East region but it gives me the only one which is selectedOr Filter.pngOr Filter.png

1 ACCEPTED SOLUTION
kipi_bi
Frequent Visitor

This helped me 

 

I had to make unconnected tables here, Slicer Region and City tables with only column

 

OR Solution = IF( SELECTEDVALUE('Slicer Region Table'[Region])= MAX(Orders[Region])||SELECTEDVALUE('Slicer city Table'[city])= MAX(Orders[City]),1,0)

View solution in original post

4 REPLIES 4
kipi_bi
Frequent Visitor

This helped me 

 

I had to make unconnected tables here, Slicer Region and City tables with only column

 

OR Solution = IF( SELECTEDVALUE('Slicer Region Table'[Region])= MAX(Orders[Region])||SELECTEDVALUE('Slicer city Table'[city])= MAX(Orders[City]),1,0)

kipi_bi
Frequent Visitor

Basically in my case I am trying to slice the detail table on the basis of condition rather than acting on a single measure, hope I am clear @TomMartens ,thanks again

TomMartens
Super User
Super User

Hey @kipi_bi ,

 

implementing OR filtering is explained by the people from sql.bi in this article: Using OR conditions between slicers in DAX - SQLBI

 

Hopefully, this provides you with some ideas of how to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

hi @TomMartens 
I had seen this link already but could not get the answer, here is my file https://drive.google.com/file/d/1BQSu5XEM7yaaYCDcY1KmepbSaAe73ies/view?usp=sharing , it will be great if you can see what went wrong, thanks in advance 

 

Ritz

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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