Forum Discussion

operez901028's avatar
operez901028
New Member
6 years ago
Solved

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.
 
 
 
 

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

  • 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

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

2 Replies

  • az38's avatar
    az38
    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

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

  • Hi,

    The "error" seems a rounding problem.

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