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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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

 

 

6 REPLIES 6
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
Resident Rockstar
Resident Rockstar

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 

Aburar_123
Continued Contributor
Continued Contributor

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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