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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all, I need a formula to determined a weighted average as follows:
Volume | Yield |
152,549,311.48 | 3.00% |
122,854,908.9 | 4.50% |
35,234,814.97 | 4.50% |
Volume | SumProduct |
310,639,035.35 | 11,690,516.92 |
In excel is simple, I just use a Sumproduct formula between both columns and the divided it between the total sum of the Volume, but I need to do the exact same thing with DAX.
=11,690,516.92/310,639,035.35 = 3.76%
Thanks a lot.
Solved! Go to Solution.
@bsolano
Use Measure below:
W Avg =
DIVIDE(
SUMX(
'Table',
'Table'[Volume] * 'Table'[Yield]
),
SUM('Table'[Volume])
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click the Thumbs-Up icon if you like this answer 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous , Try like
divide(sumx(Table,Table[Volume]*Table[Yield]),sum(Table[Volume))
In case you need % , mark column as % from measure tools
@bsolano
Use Measure below:
W Avg =
DIVIDE(
SUMX(
'Table',
'Table'[Volume] * 'Table'[Yield]
),
SUM('Table'[Volume])
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click the Thumbs-Up icon if you like this answer 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
98 | |
75 | |
74 | |
49 | |
26 |