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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How do I use a slicer to display data from 3 different columns?

Am new so let me know if this is possible

 

Nameagegendercountry eyes
person a1ffinlandblue
person b2mfinlandwhite
person c2faustraliared

 

how do I make the slicer, so the it gives me columns as options. So i can pick age, gender, country, eyes, name.

My end goal

so when i click on country in the slicer the donut chart will show that there are 2 people from finland and 1 from australia.

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I think one of the good ways to solve this is to unpivot the table like the sample pbix file attached down below.

 

Picture1.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

The method mentioned by other , unpivot table, is quite correct. I will provide a method which may be tedious to operate, you may refer to it. It mainly uses bookmark and selection.

vchenwuzmsft_0-1634087970044.png

By creating a bookmark, the columns you don't need are hidden. The bookmark is then linked via a button to achieve the slicer effect.

vchenwuzmsft_1-1634087970051.png

 

My pbix file attached in the end you can refernec.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I think one of the good ways to solve this is to unpivot the table like the sample pbix file attached down below.

 

Picture1.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


YukiK
Impactful Individual
Impactful Individual

I think you're looking to do something like this: https://community.powerbi.com/t5/Desktop/Dynamically-add-or-remove-columns-from-table-visual-using-s...

 

It'll make a slicer by unpivoting your table.

 

One workaround I thought of is to have as many bookmarks as the number of columns. And you create a table for each case and you'd toggle visual by the bookmarks you create.

 

Hope that helps!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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