Forum Discussion
PshemekFLK
Helper IV
5 years agoSUMX weighted average doesn't work
Hi,
I can't figure out why sumx doesn't result in the correct weighted average:
Formula for Funnel Speed (Months) =
IF( HASONEVALUE('Funnel Data'[Opportunity Closed Mo No]),
SUM('Funnel Data'[Funnel Speed])/30,
DIVIDE(SUMX('Funnel Data','Funnel Data'[Funnel Speed]/30*'Funnel Data'[Opportunities Won Value USD]),
SUM('Funnel Data'[Opportunities Won Value USD])))
The correct result for Total should be ((15,561*1.9)+(17,999)*0.4)+(47,335*3.9))/80,895 = 221,337/80,895 = 2.7 instead of 1.2
There are visual filters applied on that matrix. Is that the issue?
3 Replies
- amitchandak
Super User
PshemekFLK , try a measure like
Formula for Funnel Speed (Months) =
IF( Sumx(values('Funnel Data'[Opportunity Closed Mo No]),calculate(
SUM('Funnel Data'[Funnel Speed])/30,
DIVIDE(SUMX('Funnel Data','Funnel Data'[Funnel Speed]/30*'Funnel Data'[Opportunities Won Value USD]),
SUM('Funnel Data'[Opportunities Won Value USD]))))- PshemekFLK
Helper IV
When I try to fix the brackets in this formula I still get 1.2 as Total not 2.7.
I see you've changed the first part of the formula. I thought it's the second DIVIDE part that produces a wrong result.
- PshemekFLK
Helper IV
Can anyone give it a try? I still can't get to the right result