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

scientific notation for 0 on bar chart

 have an issue where 0 shows as 1E-9 on both card visual and bar chart, however not in a table. What am I missing?

 

akos_skutovics_0-1648466160734.png

 

measure format

akos_skutovics_1-1648466160610.png

 

data column format:

akos_skutovics_2-1648466160649.png

 

data type in the dataflow is a decimal number with 2 decimal digits.

 

when the format is changed to a decimual number with 2 decimal digits, the measure shows 1E-11 instead of 1E-9

 

I have tried to change the format many different ways but that did not make a change. Also adding 0, 0.0, or multiplying the measure made no difference either.

 

Interesting that when the filter is applied in the table (by clicking on that row), then the data shows as 0.

 

akos_skutovics_3-1648466160845.png

 

 

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @akos_skutovics 

Have sumbitted this issue internal: ICM: 231504209

Have created an internal work item: Provide a way to disable scientific notation for values between -0.000001 and 0.000001".

 

As a workaround, user can use a calculated column/measure to round values between -0.000001 and 0.000001 to zero, then the automatic exponential notation format should not take place anymore.

And you can refer the solution in the following blog to fix it by customizing the display format of the related column or measure to #.###########; 0; #.########### in the model view as shown below. 

Getting rid of scientific format for decimal numbers in Power BI

vangzhengmsft_0-1648692085724.png

 

And please change the data type to Decimal, and set decimal places to special number as below screenshot. 

Remove Scientific notation in measure

vangzhengmsft_1-1648692085771.png

 

Refer:
https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-remove-Scientific-Notation/m-p/2281689

https://community.powerbi.com/t5/Desktop/Scientific-notations/m-p/1711141

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Try this

Measure 2 = coalesce([measure 1],0)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-angzheng-msft
Community Support
Community Support

Hi, @akos_skutovics 

Have sumbitted this issue internal: ICM: 231504209

Have created an internal work item: Provide a way to disable scientific notation for values between -0.000001 and 0.000001".

 

As a workaround, user can use a calculated column/measure to round values between -0.000001 and 0.000001 to zero, then the automatic exponential notation format should not take place anymore.

And you can refer the solution in the following blog to fix it by customizing the display format of the related column or measure to #.###########; 0; #.########### in the model view as shown below. 

Getting rid of scientific format for decimal numbers in Power BI

vangzhengmsft_0-1648692085724.png

 

And please change the data type to Decimal, and set decimal places to special number as below screenshot. 

Remove Scientific notation in measure

vangzhengmsft_1-1648692085771.png

 

Refer:
https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-remove-Scientific-Notation/m-p/2281689

https://community.powerbi.com/t5/Desktop/Scientific-notations/m-p/1711141

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

I noticed rounding the value in the measures solves this visual issue but I still find it interesting that without rounding, it showed 1E-9

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.