Forum Discussion
Calculated field for Aggregated with Non Aggregated
- 5 years ago
Hi, Anonymous
You may need to replace sum with average.
Shortage = MAX ('Open Orders_BOM'[REQUIRED_QUANTITY]) - AVERAGE('Open Orders_BOM'[ON_HAND])Best Regards,
Community Support Team _ Eason
Anonymous try this measure
Shortage = MAX ( Table[On_Hand] ) - SUM ( Table[RequiredQty] )
✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
hi parry2k, not working.. i dont have the correct calculation for [On Hand] as well as it is showing 1240 instead of 32.
- v-easonf-msft5 years ago
Community Support
Hi, Anonymous
You may need to replace sum with average.
Shortage = MAX ('Open Orders_BOM'[REQUIRED_QUANTITY]) - AVERAGE('Open Orders_BOM'[ON_HAND])Best Regards,
Community Support Team _ Eason