Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
azaterol
Helper V
Helper V

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:

https://easyupload.io/yt5gqp

 

Thank you for help

 

 

sample1.PNG

 

sample2.PNG

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community 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:

vkalyjmsft_0-1659948726550.png

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.

vkalyjmsft_1-1659948889016.png

Select the color measure in the dialoge.

vkalyjmsft_2-1659948978680.png

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

vkalyjmsft_4-1659949562661.png

vkalyjmsft_5-1659949577240.png

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.

 

 

 

 

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community 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:

vkalyjmsft_0-1659948726550.png

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.

vkalyjmsft_1-1659948889016.png

Select the color measure in the dialoge.

vkalyjmsft_2-1659948978680.png

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

vkalyjmsft_4-1659949562661.png

vkalyjmsft_5-1659949577240.png

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.

 

 

 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.