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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBI_V2
Helper IV
Helper IV

Power BI - How to show custom message in the chart when there is no data

Hello All,

 

We have a requirement to show a custom message over the chart if there is no data for the charts to display. E.g.

When SalesAmt is 0 for all the records then Chart should display some message. Our Customer do not want to show blank chart in case there is not there for a specific criteria:

we.png

Kindly suggest how to resolve the issue.

Thanks,

PBI V2

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @PBI_V2 You can use dax measure for the message like :

Zero_Mwssage = if([Total QTY]=0,"The value is 0" , "")
And put it on the card.
The card is blank when the value is not 0 , so you can put it on any visual that you want
I attached the file file the example
Ritaf1983_1-1698421082082.png

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

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @PBI_V2 You can use dax measure for the message like :

Zero_Mwssage = if([Total QTY]=0,"The value is 0" , "")
And put it on the card.
The card is blank when the value is not 0 , so you can put it on any visual that you want
I attached the file file the example
Ritaf1983_1-1698421082082.png

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

Hello @Ritaf1983 

 

Thanks for your solution. With this , we are able to show custom message.

 

Thanks,

PBI V2

@PBI_V2 
Glad to help 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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