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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
powerbirino3
Frequent Visitor

Calculated column incorrect calculation

Hi guys,

 

I'm facing a problem which I've never seen using Power BI and I have no idea why.

 

The problem is that I have created a calculated column with a basic calculation like this: "Euros / Weight / Quantity" and results have no completly sense.

 

What I firstly 've done, is to create a calculated table using group by and addcolumns DAX functions, once I've had the desired format, I've added a calculated column called Quantity to the calculated table, and last step, I've added a calculated column called €/Kg (last column of the image).

 

Where is the problem? €/Kg column is wrong! Look at the results in the image

 

Sin título.png

 

For example, first row of the image:

1668,85 (EUROS) / 6600 (WEIGHT) / 0'03 (QUANTITY)

 

CALCULATOR

8'42

Result in Power BI10'11

 

I'm literally... WTF Smiley Frustrated

 

Thanks for any help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Working with decimals can be funny in places. Sometimes a number will display as rounded but systems will often keep the "true" figure.  An easy test might be to update your formula to something like

Round(Euros, 2) / Round(Weight, 2) / Round(Quantity, 2)

See if that changes the output any.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Is Quantity a rounded figure?  For example is the real figure on the first line 0.025 but its displaying as 0.03?

It's rounded to two decimals, yes, but in this case, "original" number is 0.03.

In my knowledge, this shouldn't affect, just decimals, right?

Anonymous
Not applicable

Working with decimals can be funny in places. Sometimes a number will display as rounded but systems will often keep the "true" figure.  An easy test might be to update your formula to something like

Round(Euros, 2) / Round(Weight, 2) / Round(Quantity, 2)

See if that changes the output any.

That did the trick.

 

Thanks

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors