Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello,
I have a data model in Power BI. I am having an issue that I have zero clue how to debug. I'm trying to figure out why a few of my measures (in this example, Mileage (Avg) ) do not match the source data. The calculation is a weighted average below:
Where are the other numbers coming from (158,100 and 4,100)? What could possibly cause this issue?
Solved! Go to Solution.
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
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 .
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 62 | |
| 42 | |
| 20 | |
| 18 |