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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MikePowerBI
Helper II
Helper II

Show/Hide Matrix Columns When Collapsed or Expanded

Hi there,

 

In my Power BI file I have a matrix with a site name and record number in the rows of the matrix. In the values of the matrix I have various fields. Is there a way within Power BI to hide specific columns in the values section of the matrix depending on if a row is expanded or collapsed? 

 

For example: when the matrix is collapsed, the No. of Records columns great. 

MikePowerBI_0-1652124737276.png

But I would like to hide this column when the matrix is expanded, since it is not as useful. 

MikePowerBI_1-1652124804096.png

 

5 REPLIES 5
Anonymous
Not applicable

Try using this formula 

No. Records = IF( ISINSCOPE( [INV RECORDS #), BLANK(), SELECTEDVALUE( [No. Recrods]) )


Anonymous
Not applicable

Hi @MikePowerBI ,

 

Agree with @PC2790 that your requirement could not be realized currently.

My workaround is : firstly reduce the width and then disable the "Text wrap" option to achieve a similar output as shown below:

Recording 2022-05-12 at 14.28.02.gif

 

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

Hi @Anonymous 

 

Thank you for your input! That's a good trick to have for some other scenerios. 

PC2790
Community Champion
Community Champion

I don't think that is a provision in Power BI currently.

However you can put this as an idea in Ideas Portal of Power BI.

I think there is a related one already present- https://ideas.powerbi.com/ideas/idea/?ideaid=2e2e91df-b512-4887-a7a7-6b0615570578ideas.powerbi.com/i...

 

 

 

Hi @PC2790 

 

Thanks for your input, I appreciate it! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.