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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mahdouchsfaq
Frequent Visitor

undefined value in DualGauge when current value is 0

undefined_value_GAUGE_BI.JPG

Hi everyone, i use the dualgauge visual to display the sales amount per year. When sales are equal to 0 , the current value is displayed as undefined on the visual . Any help?

4 REPLIES 4
mahdouchsfaq
Frequent Visitor

Hi,

i found what causes the problem: Toggle format to display numbers with K and M letters ( ex: 1000 = 1k).

when the number is lowert than 1000, it displays undefined,

Is there a way to format the numbers manullay with a function ? i tried Format function but it does not work as the return value is a string and i need a number. thanks !

mahdouchsfaq_0-1671503984785.png

 

v-mengzhu-msft
Community Support
Community Support

Hi @mahdouchsfaq ,

 

In your data table, what is the corresponding value when sales is 0? Maybe you can check if the data is wrong? Also, is this "DualGauge"  visual added from the custom visual ? I'm sorry I didn't find this visual and I couldn't test it. If it's convenient, can you send me a PBIX file without private data?

 

Best regards,

Community Support Team Selina zhu

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

mahdouchsfaq
Frequent Visitor

@amitchandak it did not work. However, i noticed when the sales are above 1000$ the current value is diplayed right. I added a minim value of 0 but it did not solve the problem!

amitchandak
Super User
Super User

@mahdouchsfaq , add +0 to your measure and try

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors