Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
In my query, I am multiplying 2 columns.
One of the rows has values:
Column A = 4.0797
Column B = 353
If we multiply we should get 1440.1341
But I am Getting 1440.1383, this is happening for each row generally the 3rd decimal point is coming wrong. I am not sure how to handle this scenario or fix it.
All columns have data type as Decimal and it shows 4 decimal points.
Thank you
Thank you
Hitesh
Solved! Go to Solution.
Hi @hitesh160790 ,
Try to use ROUND to keep two decimal places. Then, the values of other decimal places will not affect subsequent calculations.
For example,
Measure = SUM('Table'[Column1])*SUM('Table'[Column2])Measure 2 = ROUND(SUM('Table'[Column1]),2)Measure 3 = ROUND(SUM('Table'[Column2]),2)Measure 4 = [Measure 2]*[Measure 3]
BTW, .pbix file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hitesh160790 ,
Try to use ROUND to keep two decimal places. Then, the values of other decimal places will not affect subsequent calculations.
For example,
Measure = SUM('Table'[Column1])*SUM('Table'[Column2])Measure 2 = ROUND(SUM('Table'[Column1]),2)Measure 3 = ROUND(SUM('Table'[Column2]),2)Measure 4 = [Measure 2]*[Measure 3]
BTW, .pbix file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can you do it with a measure instead?
Amount = SUMX( 'Table' , 'Table'[Column1] * 'Table'[Column2] )
Thank you @jdbuchanan71 for replying.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 45 | |
| 35 | |
| 30 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 56 | |
| 38 | |
| 21 | |
| 21 |