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
simonxiao
Regular Visitor

Chart did not display decimal correctly

The actual data in database (Azure SQL Server) is 497.60; but when displaying on the chart, it shows as "497.5999999997".

This looks like happened ramdonly. The same set of data (data from the sam SQL data table column) will display correctly in other points.

 

1 ACCEPTED SOLUTION

Hi @simonxiao,

Please choose your field first on Fields Pane, and then in the modeling tab, you can choose how many decimal places you wanna show like the following screenshot(highlighted in red line).


Capture1.PNG

If you have any issue, please let me know.

Best Regards,
Angelia

 

View solution in original post

4 REPLIES 4
simonxiao
Regular Visitor

powerbi.png

Hi @simonxiao,

Please choose your field first on Fields Pane, and then in the modeling tab, you can choose how many decimal places you wanna show like the following screenshot(highlighted in red line).


Capture1.PNG

If you have any issue, please let me know.

Best Regards,
Angelia

 

Is this a bug? The data saved in database is correct stored; and the data show on the label is correct; why the data showing on the chart sometimes is not correct?

This is because of the floating point.

 

You can solve this by using the data type: Fixed decimal number instead of Decimal number

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.