cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Jan_Trummel
Helper III
Helper III

Measure with fixed decimal number shows a lot more decimal places

Hello community,

I have the coumn Total price in my table Sales. It's fixed decimal number:

Screenshot 2022-11-16 134426.jpg

Now, I create a measure called Total sales:

Total sales = SUM(Sales[Total price])
I didn't changed the formatting for this measure. The number of decimal places is still set to Auto:
Screenshot 2022-11-16 134852.jpg

I create a report with a matrix and show Total sales per Customer number. And now you see a strange behavior: For customers 21 and 24, my measure shows more than 4 decimal places - like this: 9.283,79999999999999

Screenshot 2022-11-16 135257.jpg

Does anyone know why this happens? Fixed decimal number means, that there should be maximum 4 decimal places. 

Greetings

 

1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @Jan_Trummel,

 

Since you are calculating Total Price by multiplying total other columns which are decimals, it is possible that you get more than a fixed a number of decimal places. To maintain consistency in your report, I suggest that you set the decimal places to 2 (or 4, whichever you want) instead of Auto.

 

Did I answer your question? Mark this post as a solution if I did!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

View solution in original post

3 REPLIES 3
chris_kelley
Frequent Visitor

I would check the fields [unit price] and [quantity].  If you change those to Fixed Decimal Number, that should clear up the issue.  

Shaurya
Memorable Member
Memorable Member

Hi @Jan_Trummel,

 

Since you are calculating Total Price by multiplying total other columns which are decimals, it is possible that you get more than a fixed a number of decimal places. To maintain consistency in your report, I suggest that you set the decimal places to 2 (or 4, whichever you want) instead of Auto.

 

Did I answer your question? Mark this post as a solution if I did!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

Hi @Shaurya  and sorry for really late answer!

 

It seems like if Power BI would store the values not as fixed decimal numbers, isn't it? Or is it a display error?

 

Greetings

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors