Forum Discussion
Anonymous
6 years agoNot applicable
Weighted average in dax
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.
2 Replies
- FowmySuper User
- amitchandakSuper User
Anonymous , Try like
divide(sumx(Table,Table[Volume]*Table[Yield]),sum(Table[Volume))
In case you need % , mark column as % from measure tools