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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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

 

Anonymous
Not applicable

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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