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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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