Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 .
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
76 | |
59 | |
36 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |