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
Bbrown44
Advocate II
Advocate II

How to Convert a "blank" decimal value to say "N/A"

I have a visual gauge this is configured to calculate the average by each case.

 

There are cases where there is no data, therefore those cases should be considered non-applicable.  How do I configure the visual to say if variable = Blank than show "N/A"?

Convert Numeric to say na.JPG

Please advise,

~Bryon

3 REPLIES 3
v-cherch-msft
Employee
Employee

Hi @Bbrown44 

It could not be changed in gauge visual.I would suggest you create a card visual to get 'N/A' measure and use it to cover 'blank' as below.For example:

Measure = IF(SUM(Table1[value])=BLANK(),"N/A",SUM(Table1[value]))

a1.png

Regards,

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

Thanks would work if I only had One Gauge to change.  I have over 50 gauges and this workaround would impact the performance of my report if I was to develop it for every time I use a gauge.  This seems to be an easy conditional formatting enhancement for the roadmap.

Hi @Bbrown44 

You may try to develop a custom visual as requested.

https://docs.microsoft.com/en-us/power-bi/developer/custom-visual-develop-tutorial

Regards,

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

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.