Forum Discussion

azaterol's avatar
azaterol
Helper V
4 years ago
Solved

Keep opened rows after click on button

Hey all, I have a matrix with groups of products and products. I used bookmarks to hide columns, so I used the matrix twice(copied and paste). In the first matrix I have all columns(Show), in the se...
  • v-yanjiang-msft's avatar
    4 years ago

    Hi azaterol ,

    In your scenario, I'm afraid it can't be achieved that when you expand a row, the copied visual will expand at the same time. This does not like highlight or filter, it can only be done manually.

    Here's my workaroud.

    1. Create a slicer table like this:

    2. Insert a blank button, then create a color measure for the backgroud color of the button.

    Color =
    SWITCH ( MAX ( 'Slicer'[Column] ), "Show", "#FFFFFF00", "Hide", "#FFFFFF" )
    

    In the Format button>General>Effects, turn on the Backgroud color and click fx.

    Select the color measure in the dialoge.

    3. Put the button on top of the table visual, the color will change by the value in the slicer changed. Get the result:

    In this way, no matter you select Hide or Show, the expand of the visual will be consistent.

     

    I attach my sample below for reference.

     

    Best Regards,
    Community Support Team _ kalyj

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