Forum Discussion
Digger
4 years agoPost Patron
BUG dividing
How stupid PBI can produce this result? Sales = SUM(debsum) - SUM(CredSum) _F 11 EBITDA = m1 + m2 - m3 // does not matter, take for example 1 _MF 11 EBITDA = DIVIDE([_F 11 EBITDA]...
bcdobbs
4 years agoCommunity Champion
What value would you expect the total sales to be and how should it be aggregated?
_F 11 EBITDA Is also negative so I think your test further agrees with result you're seeing.
- bcdobbs4 years agoCommunity Champion
Ok!
Chsnge the data type of your Sales measure and the underlying columns to currency. I think you're getting issues from floating point arithmetic.- bcdobbs4 years agoCommunity Champion
Sorry slight update to the above now I'm at a computer.
Set the data type for columns and measure to fixed decimal:
Data types in Power BI Desktop - Power BI | Microsoft Docs
Rather than decimal number.