Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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

  • 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"

    Add "value" from Table2 in a slicer.

    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.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

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

    Product IDCategory1Category2Revenue
    3JacketsSport300
    4Sport 400
  • v-juanli-msft's avatar
    v-juanli-msft
    Icon for Community Support rankCommunity 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"

    Add "value" from Table2 in a slicer.

    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.

  • v-juanli-msft's avatar
    v-juanli-msft
    Icon for Community Support rankCommunity 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