Forum Discussion

nirupreddy's avatar
nirupreddy
Frequent Visitor
7 years ago
Solved

Column Selection in matrix / table visualization

I have a table with columns a,b,c,d. Is there a way where I can show only columns selected based on a slicer?
Suppose if user chooses A and B only column a,b should be displayed on visualization.

  • Hi nirupreddy,

     

    Normally, if you create the slicer with A,B,C,D and select the value on the slicer, the other visual will be filtered by the value you selected.

     

     

    If you still need help, could you share your data sample and your desired output so that we could help further on it.

     

    Best Regards,

    Cherry

  • jthomson's avatar
    jthomson
    7 years ago

    You could try a bit of pivoting so that you get a model that looks something like this:

     

    week - column - value

    1 - a - 10

    1 - b - 30

    ...

    6 - d - 65

     

    Then you could try putting the column attribute into the columns in the matrix, and that ought to work in a filter?

  • nirupreddy This might be one way of doing this is...

     

    Unpivot your table as below (In power query editor)

     

     

    That's it, now you can see the result as expected.

     

7 Replies

  • v-piga-msft's avatar
    v-piga-msft
    Resident Rockstar

    Hi nirupreddy,

     

    Normally, if you create the slicer with A,B,C,D and select the value on the slicer, the other visual will be filtered by the value you selected.

     

     

    If you still need help, could you share your data sample and your desired output so that we could help further on it.

     

    Best Regards,

    Cherry

    • nirupreddy's avatar
      nirupreddy
      Frequent Visitor

      Hi cherry,

      Thank you for the clarification.
      I think framed my question wrongly.
      The columns a,b,c,d are not columns , they are  calculated measures on the report.

    • nirupreddy's avatar
      nirupreddy
      Frequent Visitor
      weekabcd
      110304025
      220407930
      340234785
      429417055
      5305690100
      636775165

      On, revisiting the solution Here a ,b,c,d are my column names. How  can i have slicer for column names.?

      This would be my sample data v-piga-msft

      • jthomson's avatar
        jthomson
        Solution Sage

        You could try a bit of pivoting so that you get a model that looks something like this:

         

        week - column - value

        1 - a - 10

        1 - b - 30

        ...

        6 - d - 65

         

        Then you could try putting the column attribute into the columns in the matrix, and that ought to work in a filter?