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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Rodi123
Frequent Visitor

Responsive button for Matrix diagrams

Hi there,

Does anyone know how to make a matrix diagram with one single button responsive to the width of a contrainer (Visual)?

I don't think the option is there, but maybe there is another way to do this.

Or if not, when is this coming?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Rodi123 ,

Please refers to the following steps.

There are two visuals in the example, the table and the card.

Select the table, go to the Format pane, and turn off "Auto-size width".

vdengllimsft_0-1733897481612.png

Enable the "Power BI Project(.pbib) save option" in the "Options" menu.

vdengllimsft_1-1733897750322.png

 

Create a new folder and save the report as .pbip.
Go to the .pbip folder where these files are stored and open the .Report folder.

vdengllimsft_2-1733897914346.png

Open the "visuals" folder using VS CODE.

vdengllimsft_4-1733898364953.png

There are two entries in the left directory under visuals, corresponding to the two visual objects.
Checking the visual.json of the first item indicates that the item is a table visual.

vdengllimsft_5-1733898602973.png


You can do CTRL + F to find the 'columnWidth' property. The 'Value' attribute is the width of the column.

vdengllimsft_6-1733899073771.png


You can set all columns to the same width as the longest width column. Then, save the changes.

vdengllimsft_7-1733899535139.png

 

Then, open the PBIP file and view it in Powe BI Desktop. All columns in the table should now be the same width.

vdengllimsft_8-1733899651379.png

vdengllimsft_9-1733899769111.png


Best Regards,
Dengliang Li

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

5 REPLIES 5
Anonymous
Not applicable

Hi @Rodi123 ,

To make all the columns of the matrix equal in width, you can refer to the following steps.

Create a measure by entering a string value equal to the length of the longest column heading.And add it to the matrix.

measure = "1111111111111111"

 

Then go to Format Pane->Column Headers->Disable Auto-size width.

Remove this measure from the matrix so that each column of the matrix is now equal in width.

How to make your matrix column widths all equal to each other in Power BI using DAX. - Purple Frog S...

Power BI matrix column width sizing

However, this process must be performed manually.
If you want to create a button to perform a similar process responsively.

It is recommended that you submit this idea and add your comments there to improve Power BI and make this feature coming sooner.
Microsoft Fabric Ideas

Best Regards,
Dengliang Li

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

And how about the table?

Anonymous
Not applicable

Hi @Rodi123 ,

Please refers to the following steps.

There are two visuals in the example, the table and the card.

Select the table, go to the Format pane, and turn off "Auto-size width".

vdengllimsft_0-1733897481612.png

Enable the "Power BI Project(.pbib) save option" in the "Options" menu.

vdengllimsft_1-1733897750322.png

 

Create a new folder and save the report as .pbip.
Go to the .pbip folder where these files are stored and open the .Report folder.

vdengllimsft_2-1733897914346.png

Open the "visuals" folder using VS CODE.

vdengllimsft_4-1733898364953.png

There are two entries in the left directory under visuals, corresponding to the two visual objects.
Checking the visual.json of the first item indicates that the item is a table visual.

vdengllimsft_5-1733898602973.png


You can do CTRL + F to find the 'columnWidth' property. The 'Value' attribute is the width of the column.

vdengllimsft_6-1733899073771.png


You can set all columns to the same width as the longest width column. Then, save the changes.

vdengllimsft_7-1733899535139.png

 

Then, open the PBIP file and view it in Powe BI Desktop. All columns in the table should now be the same width.

vdengllimsft_8-1733899651379.png

vdengllimsft_9-1733899769111.png


Best Regards,
Dengliang Li

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

 

Rodi123
Frequent Visitor

Now i had to manually drag column 'test12345' all the way to the end. So its kinda weird that there isn't a responsive button to do this. So a button that makes the diagram responsive but also make all the columns same width or something.

Rodi123_0-1733499106505.png

 

ExcelMonke
Super User
Super User

Hello,
Could you expand on what you mean by "One single button responsive to the width of a cont(r)ainer"?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors