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
operez901028
New Member

Multiply in DAX does not Match

Hi, can you help with one issue in PowerBi i create a report and i this report i see the scrap, and total cost of production, i use the next dax for calculate the cost of production

 

 
= SUMX(lizventas,lizventas[Quantity Invoiced] * RELATED(COSTO[Cost] ))
 
but when Bi make the operation the result is worng for example.
 
 
bi1.PNG
 
 

in all rows the result is worng, for example

 

first row 

360 * 36.27 = 13,056.83

 

 

and the correct result is

13,057.2

 

 and this is with all multiply in this dax.

 

Thank you

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @operez901028 

its better to create topics like this in another part of community: https://community.powerbi.com/t5/Desktop/bd-p/power-bi-designer

So, anyway. everything is saying that you have a round-problem

13056.83/360 = 36.269

 

so, try to click left mouse on your field Cost then go to Modelling pane or Column tools pane (in the new version of pbi desktop) and set number of decimal as 3

860040.png

do not hesitate to give a kudo to useful posts and mark solutions as solution
Linkedin


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
marcelsmaglhaes
Super User
Super User

Hi,

The "error" seems a rounding problem.

I suggest you use the same precision in your all numbers to see the exact value.

Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to give Kudos and mark my post as a solution!
Imagem de fundo



az38
Community Champion
Community Champion

Hi @operez901028 

its better to create topics like this in another part of community: https://community.powerbi.com/t5/Desktop/bd-p/power-bi-designer

So, anyway. everything is saying that you have a round-problem

13056.83/360 = 36.269

 

so, try to click left mouse on your field Cost then go to Modelling pane or Column tools pane (in the new version of pbi desktop) and set number of decimal as 3

860040.png

do not hesitate to give a kudo to useful posts and mark solutions as solution
Linkedin


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

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