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
Bokazoit
Continued Contributor
Continued Contributor

How to remove columns when measure returns BLANK ? Old school financial report / table

I am trying to build this old school finance report that show actual for the years 2022, 2023 and 2024 and then Estimate (budget) for 2024 and 2025

 

Since there is no data for the Estimate measure in 2022 and 2023 the columns are empty.

 

Is there a way to remove those columns (marked with red color)?

 

Bokazoit_0-1738069607810.png

 

This is the table setup:

 

Bokazoit_0-1738069726138.png

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Bokazoit 

 

Power BI does not natively provide an option to hide a measure if a specific slice, for example year =2022 in your case, returns blank for all rows.  The measure needs to become sort of a column by materializing it using a disconnected table.

danextian_0-1738070459894.png

Note: in the example above, I added a condition so Transactions show only if the year is 2024.

danextian_1-1738070654718.png

Please see the attached sample 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

2 REPLIES 2
Bibiano_Geraldo
Super User
Super User

Hi @Bokazoit ,

Unfortunately, Power Bi does not support hidding a specif column or delete like in Excel, what you can do is resizing the column width till this column "hide" from the view. this is not the perfect way, but it can help when the auto size of column was disabled.

 

danextian
Super User
Super User

Hi @Bokazoit 

 

Power BI does not natively provide an option to hide a measure if a specific slice, for example year =2022 in your case, returns blank for all rows.  The measure needs to become sort of a column by materializing it using a disconnected table.

danextian_0-1738070459894.png

Note: in the example above, I added a condition so Transactions show only if the year is 2024.

danextian_1-1738070654718.png

Please see the attached sample 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.

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.