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

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

Reply
Anonymous
Not applicable

Any better ways to hide blank columns in a matrix?

Hi all,

 

I have a very nice matrix that i can filter by both "market type" and "position". However there are alot of values which causes blank columns. I have read everyone's suggestions to remove word wrap and manually hide these columns. However in my case, the gaping between the data looks sily:

Capture 2.PNG

Any ideas?

 

Thanks,

 

Brian

5 REPLIES 5
Anonymous
Not applicable

I figured it out! It isnt difficult to do, just takes a few steps! To be able to filter a matrix however you want and have no annoying spacing in between values, the key is UNION. Check it out!

 

Unfiltered:

Capture 2.PNG

Filtered:

war5sige meter data.PNG

Works as expected! How you can make this work:

 

Step 1: Create individual tables with the filter variables that you want to be able apply to the common value ('Pricing' in this case). You can have as many filters applied to the common value as you want! Example:

Capture v3.PNG Build as many of these tables as you need!

 

Step 2: Create your filter tables. These should match your column headers of the individual tables. The filter tables i created was: 

1. Calendar

2. Position

3. Market Type

4. Product

 

Step 3: The majic is taking all those individual tables and creating a new aggregated table using UNION. After theUNION table is created, link that puppy up with your filter tables and you will see this:

Capture.PNG

 

The last step is to fill out the columns/ value for the matrix table in the visual and then drill down on columns using the "expand all down" button.

Capture 2.PNG

Enjoy!

Greg_Deckler
Community Champion
Community Champion

@Anonymous See if this works for you: https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

And to add insult to injury, if i use a table and format my columns differently then i am able to remove the gaps but then get blank columns when filtering:

Capture.PNG

Seems like i cant win either way.

Hi ,  @Anonymous 

It looks like you dragged a lot of duplicate fields into the matrix Values .

You may take a try  the option "show item with no data"

54.png

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

I changed the "show items with no data" for both 'unchecked' and 'checked'. Nothing changed. It would seem to make sense to me that if "show items with no data" was 'unchecked' that the blank columns ought to disappear? 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.