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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Base Slicer Selection on two columns

Hello,

 

I've got following problem:

 

I have a table that looks a bit like this:

Product IDCategory1Category2Revenue
1Dresses 100
2Dresses 200
3JacketsSport300
4Sport 400
5Shoes 500

 

Now, I have a Slicer through which I only visualise the Revenue for Products from one Category. Now I basically want to find a way to select "Sport" and visualise Product 3 and 4.

 

Thankful for every workaround idea!

 

Leon

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Go to Edit queries,

create a duplicate table Table2,

In Table2, unpivot columns "category 1" and ""category 2",

filter "Value" column to remove empty,

close&&apply.

 

Create relationship between Table1 and Table2 on "Product ID"

5.png

Add "value" from Table2 in a slicer.

3.png

Best Regards
Maggie

 

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

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Is this problem sloved? 

If it is sloved, could you kindly accept it as a solution to close this case?

If not, please let me know.

 

Best Regards

Maggie

v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Go to Edit queries,

create a duplicate table Table2,

In Table2, unpivot columns "category 1" and ""category 2",

filter "Value" column to remove empty,

close&&apply.

 

Create relationship between Table1 and Table2 on "Product ID"

5.png

Add "value" from Table2 in a slicer.

3.png

Best Regards
Maggie

 

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

Anonymous
Not applicable

So that if I visualised the table, it would only be

Product IDCategory1Category2Revenue
3JacketsSport300
4Sport 400

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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