Forum Discussion
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 second matrix(Hide) I reduced the matrix columns.
What I want is, if I click on the + in the group row, example here "Alcohol free" and click after that on the Hide button, it should pop up the same row "Alcohol free", without necessary clicking on the plus.
There are both the same Rows, only the values in the matrix are different.
Or maybe I don't need 2 matrix and there is a better solution?
Here is a sample for better understand:
Thank you for help
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 _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- v-yanjiang-msftCommunity Support
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 _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.