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
xuri
Frequent Visitor

How to avoid blank pie chart when no values are available

Hello,

I have a calculated measure, which I have set as value in a pie chart. When the measure is 0, the pie chart visualization is empty. For column charts I get at least the value names. How can I avoid getting a blank visualization?

I have tried to make use of a card with a warning which is created by a measure, but I have to use it multiple times for different calculated measures. In order to avoid creating multiple warnings with the appropriate IF-condition as a filter, I have tried to make use of one filter

I.e.:
WarningMeasure = "You do not have any values for this visualization!" (and then set the visualization to Show items when the value is 0)

instead of
WarningMeasure1 = IF([CalculatedMeasure1] = 0, "You do not have any values for this visualization!", "")
WarningMeasure2 = IF([CalculatedMeasure2] = 0, "You do not have any values for this visualization!", "")
WarningMeasure3 = IF([CalculatedMeasure3] = 0, "You do not have any values for this visualization!", "")
etc.

and set the calculated measure as the visualization filter. But I cannot set this visualization filter since it is not selectable.

Any hints and alternative solutions will be appreciated!
xuri

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

@xuri

 

Hi Xuri,

 

You can get the value names from a pie chart too. Turn on "legend" in the "Format" pane. You also can rename the title.How to avoid blank pie chart when no values are available.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Employee
Employee

@xuri

 

Hi Xuri,

 

You can get the value names from a pie chart too. Turn on "legend" in the "Format" pane. You also can rename the title.How to avoid blank pie chart when no values are available.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

@v-jiascu-msft

Thanks a lot!

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.