Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 selected
Solved! Go to Solution.
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)
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)
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
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
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
60 | |
54 | |
38 | |
27 |
User | Count |
---|---|
86 | |
61 | |
45 | |
41 | |
39 |