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.
Hi! Could someone help to fix this calculation or provide an advice?
There is a large table Production that has Date, Model, Part columns (among others). There is a measure TakeRate that calculates a historical ratio of part per model - this one is working properly. There is also another measure Plan to calculate a Model plan volume per Date that is located in another table, also working correctly. The calculation that fails is called Estimate and it multiplies TakeRate by Plan and aggregates within Production table - rows roll-up is needed as TakeRate produces wrong results at a higer level due to a nature of this calculation. Now, the problem is that Production table doesn't have records for all dates for each Part and Model combination, so Plan for these dates is not included into a calculation.
Estimate =
VAR PartModels =
//ADDMISSINGITEMS( 'Date'[MonthDate], 'Model'[model],
SUMMARIZE(
Production,
'Date'[MonthDate],
'Model'[model],
Production[part_no])
//, 'Date'[MonthDate], 'Model'[model])
VAR RollUp =
SUMX( PartModels,
[Plan] * [TakeRate]
)
RETURN RollUp
Solved! Go to Solution.
It turned out that when I do not include 'Date'[MonthDate] into SUMMARIZE, it works and aggregates as it should.
It turned out that when I do not include 'Date'[MonthDate] into SUMMARIZE, it works and aggregates as it should.
@olexi
I am not sure how the measures [Plan] and [RakeRate] are constructed but to create all combinations including the missing dates you can try using the either CROSSJOIN or GENERATE functions within your measure.
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |