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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors