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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Julian_H
Helper II
Helper II

Slicers and OR statement

Hi,

 

I have had a request to set up a report in PBI that would require a slicer that always "OR".

 

For example , I have a data set that has Name 1 and Name 2 in it. I want th user to be able to filter the data in the visuals to show if the data is in Name 1 or Name 2

 

Can this be done in PBI ?

1 ACCEPTED SOLUTION
11 REPLIES 11
Padycosmos
Solution Sage
Solution Sage

Hope this helps:

Padycosmos_0-1678181002664.png

 

Thank you for coming back.

 

Sorry that not it thats just selecting item in a row

 

I have two columns and I need the user to be able to check in both columns and bring back the data if their selections are in either column.

 

Thank you again

 

Could you paste some sample data or share the pbix file, if the data is not sensitive?

Sorry the data is sensitive but here's a mock up

Account Name 1Name 2
123JohnPeter
456MaryDavid
789PeterPaul

 

So from the slicer(s) the user for example wants all data where Name 1 = John and Name 2 = Paul

 

So in this instance you would get a list showing account no's 123 and 789

Hope this helps:

Padycosmos_0-1678199044609.png

 

Cool Thank you so Much.. I'll give it a go

 

Slicers Name1 and Name2 are created from the columns in the newly created Tables Name 1 and Name 2

Table: 

Name1 = VALUES('Table'[Name 1])

Table: 

Name2 = VALUES('Table'[Name 2])

Thank you I have used the Union solution in the blog it works really well. I ahve also extended to three slicers 🙂

Thank you , I will take a look 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.