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

View all the Fabric Data Days sessions on demand. View schedule

Reply
shaikhzdandg
Helper I
Helper I

How to hide column in matrix visual in PBI Desktop

PBi Desktop Version 2.146.1026.0 64-bit (August 2025) 

 

I would like to hide 1 column named PlanNo on MATRIX VISUAL in PBI desktop. How do I achieve this.

 

What I have already tried

 

1 Used the strectch column so that it's not visible anymore by dragging the column so that the width size becomes 0

The disadvantage of this trick is you then disturb the column header for rest fo the column and theres no way to get the column header back to normal sizing (unless you remove the PlanNo column from visualistion) for eg: see below snip

 

shaikhzdandg_0-1756694535548.png

shaikhzdandg_1-1756694647319.png

 

You can see bu hiding the PlanNo column (be dragging using mouse click to make its width size zero 0, is not a good option as this then disturbs the entire header for the rest fo the column and makes it very huge and theres no option available to get this to normal size

 

Is there a way or tric in PBI Desktop so that I can hide this column (I cant remove this as other measure depends on this column for calculation etc) so that the entire column header stays as is

 

 

1 ACCEPTED SOLUTION

Hi @shaikhzdandg ,

 

I understand your concern. At the moment, Power BI does not provide a direct option to hide a column inside a Matrix while still keeping it in the visual. If the column is placed in the Matrix, it will always try to render. The trick of dragging the width to zero or renaming the column only hides it cosmetically and, as you noticed, disturbs the header alignment.

 

The cleaner workarounds are either to replace the column with a measure that returns Black() so it looks hidden but can still be used for your dependent calculations in the model), or to apply conditional formatting that makes the values transparent and rename the header to a space to keep the layout intact. Apart from these, there isn’t a native setting to fully hide such a column without removing it.

 

Thank you,

Tejaswi.

View solution in original post

10 REPLIES 10
danextian
Super User
Super User

Hi @shaikhzdandg 

 

If that is a dimension and a number, create another column that returns a no width space repeated by the number in that dimension. For example:

REPT ( UNICHAR ( 8203 ), 'table'[your column] )

Rename the column for the visual to a space and reduce the width. If the width of the column headers are set to auto, the calculated column will still occupy a very small space as its values have no width. 

 

Another alternative is  to conditionally format the text color to transparent uising a measure

Transparent = 
"RGBA ( 0, 0, 0, 0 )"

. The column values in the image below are transparent. The column name in the visual renamed to a space. 

danextian_1-1756704570848.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Shahid12523
Community Champion
Community Champion

To hide a column in a Power BI matrix without breaking layout:
Best method: Use a measure with SWITCH() logic that returns BLANK() for PlanNo, so it doesn’t render but still supports dependent calculations.


-Advanced: Use Calculation Groups via Tabular Editor to toggle column visibility dynamically.
-Avoid: Shrinking column width to zero—it messes up headers and layout.
-Hacky workaround: Overlay a white shape to visually block the column (cosmetic only).

Shahed Shaikh
Ashish_Mathur
Super User
Super User

Hi,

Rename that measure to make it of a very short length.  Turn off wrap text for that header.  Reduce the width of that column to 0.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
shaikhzdandg
Helper I
Helper I

Thanks for your reply, No I dont want to calculate anything using Visual calculation. however I want to hide that PlanNo column from the matrix visaul withut removing it from the visullisation and without disturbing the column headers 

Hi @shaikhzdandg ,

 

I understand your concern. At the moment, Power BI does not provide a direct option to hide a column inside a Matrix while still keeping it in the visual. If the column is placed in the Matrix, it will always try to render. The trick of dragging the width to zero or renaming the column only hides it cosmetically and, as you noticed, disturbs the header alignment.

 

The cleaner workarounds are either to replace the column with a measure that returns Black() so it looks hidden but can still be used for your dependent calculations in the model), or to apply conditional formatting that makes the values transparent and rename the header to a space to keep the layout intact. Apart from these, there isn’t a native setting to fully hide such a column without removing it.

 

Thank you,

Tejaswi.

Hi  @shaikhzdandg ,

 

I wanted to follow up and see if you had a chance to review the information shared. If you have any further questions or need additional assistance, feel free to reach out.

 

Thank you.

 

Hi  @shaikhzdandg ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

 

Thank you,

Tejaswi.

 

Hi  @shaikhzdandg ,

 

Just checking in have you been able to resolve this issue? If so, it would be greatly appreciated if you could mark the most helpful reply accordingly. This helps other community members quickly find relevant solutions.

 

Thank you.

 

 

Aburar_123
Solution Supplier
Solution Supplier

Hi @shaikhzdandg ,

 

Please follow the below solution.

Suppose i would like to hide Shipmode column from the below table

Aburar_123_0-1756696751067.png

 

Rename the Shipmode column name to '.' and turn off the Wrap text option then reduce the shipmode column width to hide.

Aburar_123_1-1756696971768.png

 

Thanks.

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please try using "hide fields from the visual" feature in visual calculation.

Please check the link down below whether it helps.

 

Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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
Top Kudoed Authors