Forum Discussion
WEIGHTED AVG
- 10 years ago
SUM([Net_Active_Balance])
not SUM('Analytics_SourceDat',[Net_Active_Balance])
perhaps?
Need to see your data. You should just be able to do something like:
SUM([balance]*[int rate])/COUNT([balance])
Methinks I got it...
WAC = SUMx('Analytics_SourceDat',[Net_Active_Balance]*[INTEREST_RATE]) / SUMx('Analytics_SourceDat',[Net_Active_Balance])
- leonardmurphy10 years ago
Skilled Sharer
You're welcome.
You also don't need a SUMX for the divider since that's a straightforward SUM of the Net_Active_Balance.
(SUMX works row-by-row, so performs slower than a straightforward SUM)
- allmana10 years agoRegular Visitor
Good point- appreciate the support!
- allmana10 years agoRegular Visitor
Just modified to SUM, but got error msg- is this a syntax error in formula?
"Too many arguments were passed to the SUM function. The maximum argument count for the function is 1."
- leonardmurphy10 years ago
Skilled Sharer
SUM([Net_Active_Balance])
not SUM('Analytics_SourceDat',[Net_Active_Balance])
perhaps?