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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Slicer from 3 different columns

Hi,

I have 3 different status from the table and I want a slicer from all the columns.

"Avaliable_Status" , "Active_Status" and "Not Active_Status".

Here is the sample data.

image.png

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

The formula is to create a slicer table.

If you want the slicer to filter the visual, you will need to create a measure as below.

IF(SELECTEDVALUE('TABLE'[PCI])=SELECTEDVALUE('SLICER'[COLUMN])||SELECTEDVALUE('TABLE'[SOC])=SELECTEDVALUE('SLICER'[COLUMN])||SELECTEDVALUE('TABLE'[SOC FC])=SELECTEDVALUE('SLICER'[COLUMN]),1,0)

Then put this measure to visual level filter measure = 1.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Check the formula.

Table 2 = DISTINCT(UNION(SELECTCOLUMNS('Table',"slicer",'Table'[column1]),SELECTCOLUMNS('Table',"slicer",'Table'[column2]),SELECTCOLUMNS('Table',"slicer",'Table'[column3])))

4.PNG

5.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

@v-jayw-msft ,

I tried the same way but this is not working .

image.png

image.png

Hi @Anonymous ,

 

The formula is to create a slicer table.

If you want the slicer to filter the visual, you will need to create a measure as below.

IF(SELECTEDVALUE('TABLE'[PCI])=SELECTEDVALUE('SLICER'[COLUMN])||SELECTEDVALUE('TABLE'[SOC])=SELECTEDVALUE('SLICER'[COLUMN])||SELECTEDVALUE('TABLE'[SOC FC])=SELECTEDVALUE('SLICER'[COLUMN]),1,0)

Then put this measure to visual level filter measure = 1.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , You can create a new table like

distinct(union(distinct(Table[Avaliable_Status]) ,distinct(Table[Active_Status]), .distinct(Table[Not Active_Status])))

 

Join with all three columns and create measure using use relationship

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

 

Another option is unpivot table

https://radacad.com/pivot-and-unpivot-with-power-bi

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak ,

I have created a seperate table for distinct values.

image.png

When I am trying to establish the relaptionship I am getting error.

image.png

Helpful resources

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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