Forum Discussion
Displayed Numbers Do Not Match Source
- 6 years ago
Hey rawiswarden ,
without having the data, it's almost impossible to guess where the data is coming from (at least for me), but I'm pretty sure that Power BI does not "invent" data.
Besides that, I would recommend to re-write the measure like this, as it iterates across the table Facts_PortStats just once:
Mileage (Avg) = sumx( Facts_PortStats , calculate( divide( Facts_PortStats[PortStats.Mileage] * Facts_PortStats[PortStats.DiscountedLoanAmount] / Facts_PortStats[PortStats.DiscountedLoanAmount] ) , userelationship(Facts_PortStats[PortStats.BookedDate], Calendar_Dates[Date]) ) )But maybe this is already some kind of solution.
Regards,
Tom
Hey rawiswarden ,
without having the data, it's almost impossible to guess where the data is coming from (at least for me), but I'm pretty sure that Power BI does not "invent" data.
Besides that, I would recommend to re-write the measure like this, as it iterates across the table Facts_PortStats just once:
Mileage (Avg) =
sumx(
Facts_PortStats
, calculate(
divide(
Facts_PortStats[PortStats.Mileage]
* Facts_PortStats[PortStats.DiscountedLoanAmount]
/ Facts_PortStats[PortStats.DiscountedLoanAmount]
)
, userelationship(Facts_PortStats[PortStats.BookedDate], Calendar_Dates[Date])
)
)
But maybe this is already some kind of solution.
Regards,
Tom
- rawiswarden6 years agoHelper I
Thanks for the tip! I will use it.
I decided to roll back Power BI file to an older version and the issue is gone away. I don't know what happened, but a few buggy things happened in my file (M query statements that have worked for months started to fail on refresh, the data mapping was all incorrect for all but a subset of accounts). Now my file is back to showing the correct data .