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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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

 

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 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.

October NL Carousel

Fabric Community Update - October 2024

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