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 August 31st. Request your voucher.

Reply
yodha
Helper IV
Helper IV

How to Hide empty Columns in Matrix visual?

Hi, is there a way to hide empty columns in matrix visual ?

i wanted to hide highlighted columns,

 

Capture 1.PNG

Attached pbix for reference https://www.dropbox.com/s/qllt34kyfcy38gg/Power%20BI%20Example.pbix?dl=0

 

Thanks in Advance.

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @yodha ,

You can define the size of the column so you can hide then until is invisible just drag the border of the column, be aware that you may need to turn off word wrap on the options on column headers.

word wrap.pngmatrix.png

 

Best Regards,
Yingjie Li

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

 

View solution in original post

12 REPLIES 12
v-yingjl
Community Support
Community Support

Hi @yodha ,

You can define the size of the column so you can hide then until is invisible just drag the border of the column, be aware that you may need to turn off word wrap on the options on column headers.

word wrap.pngmatrix.png

 

Best Regards,
Yingjie Li

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

 

@v-yingjl : Thanks for the reply. This is not best way to do, atleast in my case. Many columns are there in my original PBIX and i do refresh daily this report. So when i refresh columns will come back to normal position. 

v-yingjl
Community Support
Community Support

Hi @yodha ,

If you've fixed the issue on your own please kindly share your solution. If the above posts help, please kindly mark it as a solution to help others find it more quickly. Thanks!


Best Regards,
Yingjie Li

amitchandak
Super User
Super User

@yodha , create a measure using allexpect and put that into the visual level filter

 

calculate([Measure],allexpect (Table[Month Year]) // is not blank

https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak : Thanks for the reply, i just tried this solution but it's not working.

 

Capture 1.PNG 

 

 

tex628
Community Champion
Community Champion

Do you have this setting applied? 

image.png


Connect on LinkedIn

@tex628 :Thanks for the reply. Yes,this setting is already applied.

@yodha ,

 

You can show 0  instead of empty row.

Total  = Sum(Table[Sales])+0

OR

Total = Your Measure+0

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@Tahreem24 :No, i can't do this. Thank you

tex628
Community Champion
Community Champion

Try this:

Measure = 
IF( (Calculate([Total Cost] ALLEXCEPT(Table ; Table[date])) + Calculate([Total Forecast]; ALLEXCEPT(Table ; Table[date])) = BLANK() ; BLANK() ; [Cumulative Total])


And replace the Cumulative total measure with this. 

/ J


Connect on LinkedIn

@tex628 : i have tried this, but this is removing entire month, but i want to remove only empty columns in the month. Thank you.

 

Capture 1.PNG

 

tex628
Community Champion
Community Champion

That is sadly not possible. When you're using several measures as values in a matrix the columns will always be present as long as there is atleast 1 value that isn't blank(). It's either hide the entire month because the two first measures are empty or show all 3 columns. 

/ J


Connect on LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors