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

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
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.