Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi All,
We need to calculate the average number of weeks that are passed before 80% of the sales are reached. So first we need a calculation to get this measure per product (KMM_Name), then we need the average of that. We want this per product, but those have subproducts as well, these do not to be taken into account. The source is a tabular cube, so we are not able to create additional tables/columns. The tests we did are the following:
1) measure to calculate the cumulative sales %:
2) measure to calculate the number of weeks before 80% has been reached:
In the above picture we would expect 33. With 11 movies this would result in an average of 3. The 3 is our wanted end result.
I hope the explanation is clear enough to give us some tips.
Kind regards,
Lise
Solved! Go to Solution.
Hi @lbraeckman ,
Try the measure below:
sumx(values(Movies[KMM_Name]), [OLD - Avg Week GBO > 80%])
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Thanks for the suggestion, but this gives me 0 as result
Hi @lbraeckman ,
Try the measure below:
sumx(values(Movies[KMM_Name]), [OLD - Avg Week GBO > 80%])
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Super, this solves it, thank you!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.