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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ferdiakinci
Frequent Visitor

matrix hide

There is a matrix where I bring foreign currency based amounts. If all columns are empty, the matrix should not display. how can I do that

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @ferdiakinci - you can achieve this with combination of flag measure and conditional formatting. 

Create a calculated column as below:

replace with your important metrics in below table and columns.

 

CheckEmptyColumns_m =
IF(
    ISBLANK(
        SUM('Sales'[Sales Amount]) +
        SUM('Sales'[Target Sales]) +
        SUM('Sales'[Cumulative Sales])),1,0)

rajendraongole1_1-1721803919784.png

 

Now set the conditional formatting on background based on the  checkemptycolumn_m measure. you can display the title as "Data Available" when the measure is 0 and "No Data" when the measure is 1.

 

Hope it helps

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 





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

Proud to be a Super User!





Thank you for your help. This doesn't work for me. What I want to do is to make the table not appear at all when it is empty.

power bi soru.png

 

Anonymous
Not applicable

Thanks for the reply from @rajendraongole1 , please allow me to provide another insight:

Hi, @ferdiakinci .

Thanks for letting us know your user experience.  According to your case description, I do understand how frustrated you are now.If you need to disappear when the matrix value is empty, you can't do that at the moment.

 

But you can try the following alternatives:

1.First, create a bookmark, and when the data is empty, manually click on the page that goes to no visualization.

vlinyulumsft_0-1722245367828.png

 

The following is the relevant documentation, I hope it will be helpful to you:

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn
 

2.Second, you can choose to duplicate the page, delete the visualization, and switch manually.

vlinyulumsft_1-1722245367830.png

 

The following are the documents for creating page and bookmark navigation, I hope it will help you:
Create page and bookmark navigators - Power BI | Microsoft Learn

 

If you feel that performance needs to be improved, you can also submit an idea on

https://ideas.fabric.microsoft.com/ and wait for users with the same needs as you to vote for you and help you realize the idea as soon as possible. Many features of our current products are designed and upgraded bed on customers’ feedback.  With requirements like this increase, the problem may well be released in the future.

 

Thanks for your understanding.

 

Best Regards,

Leroy Lu

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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