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.
I would like to calculate the average of materials ordered in the same day by customers.
I was able to create an average that gives me the number of orders per customer:
However, when I try to create the average, it is not working. The measure I used is:
I created a power bi example with a dummy data that you can find here:
Dummy Power BI
Thanks in advance for helping me!
Solved! Go to Solution.
Hi,
I do not know how you arrived at your denominator (7) for your test measure but you can simplify your existing measure to
I consider a order the combination from customer and date. Thus, I want to do an average of how many products are sold per order.
So, it is necessary to count the IDNR per group (customer and date) and then average in the end.
The 7 comes because I have 7 rows in the table. 7 different combinations of customers and dates.
@lbendlin achieved that by using summarize and it works!
so thank you anyway.
Kind regards,
Jéssica
@lbendlin thank you! exactly what I wanted. and much simpler that I was thinking 😄
I did not know summarize yet. thanks!
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.