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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jonny2615
New Member

Remove Secondary columns in Matrix Visual

I have a matrix where each column has two values - how do I remove the S_puts values from only the L_P1 columns? The column of data which I pull from is blank (and will always be blank) for any line that has L_P1

jonny2615_0-1769040781142.png

jonny2615_1-1769040797414.png

 

jonny2615_0-1769041147507.png

 

 

 

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @jonny2615 

That is the expected behaviour - you cannot dynamically hide a measure column when its value is blank. The workaround is to use a disconnected table containing the measure name and reference this disconnected table in a measure. Notice that in the image below, Latin America doesnt have a column for revenue

danextian_0-1769059199574.png

Please see the attached pbix.

 

 





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.

View solution in original post

4 REPLIES 4
cengizhanarslan
Super User
Super User

Simply drag the column border to the left for the speficif column you dont want to see in your visual and disable auto-size column width from the visual settings so that the visual would stay as same.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
Ritaf1983
Super User
Super User

Hi @jonny2615 

Generally, Power BI does not offer a native "hide column" feature for matrices like Excel; the structure is relatively rigid, similar to a Pivot Table.

However, there are workarounds to influence the structure:

Using Calculation Groups: https://www.youtube.com/watch?v=vMzkX6dHG34

 

Using a dynamic measure: https://community.fabric.microsoft.com/t5/Desktop/hiding-columns-in-Matrix/m-p/544289

 

The common factor between these two methods is that a hierarchy must be pre-defined in a side table (disconnected table), combined with a single measure designed to behave according to the specific hierarchy level and column context.

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
danextian
Super User
Super User

Hi @jonny2615 

That is the expected behaviour - you cannot dynamically hide a measure column when its value is blank. The workaround is to use a disconnected table containing the measure name and reference this disconnected table in a measure. Notice that in the image below, Latin America doesnt have a column for revenue

danextian_0-1769059199574.png

Please see the attached pbix.

 

 





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.
ryan_mayu
Super User
Super User

@jonny2615  could you pls paste the sample data here and also provide the expected output. 





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

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.