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
Please help me to write this WAVG Price formula using DAX
Sum( Price * ABS(MV) ) / Sum( CASE(Price = 0 , 0 ,ABS(MV) )
Assume Price and MV come from table "Sales"
Thanks
Solved! Go to Solution.
hello @PPerera
maybe something like this (not sure if this works since i dont test this DAX).
DIVIDE(
SUMX(
'Sales',
'Sales'[Price]*ABS('Sales'[MV])
),
SUMX(
FILTER(
'Sales',
'Sales'[Price]>0
),
ABS('Sales'[MV])
)
)
Hope this will help.
Thank you.
hello @PPerera
maybe something like this (not sure if this works since i dont test this DAX).
DIVIDE(
SUMX(
'Sales',
'Sales'[Price]*ABS('Sales'[MV])
),
SUMX(
FILTER(
'Sales',
'Sales'[Price]>0
),
ABS('Sales'[MV])
)
)
Hope this will help.
Thank you.
Thank you very much Irwan. It worked. This forum is full of great experts. This was my second question and got the answer almost immediately. Thanks again.
| User | Count |
|---|---|
| 24 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 5 |