Forum Discussion
mrothschild
Continued Contributor
6 years agoSUMPRODUCT IFS?
I am using the following expression to get a SUMPRODUCT measure, which gives me the weighted average [Interest Rate] based on [Capital]. In some cases, [Interest Rate] = 0 because there's no lo...
- Anonymous6 years ago
mrothschild - The following Measure should work. It first removes the 0-interest rows and then performs the weighted average.
Weighted = var _desired_rows = FILTER(Rates, Rates[Interest Rate] > 0) return DIVIDE( SUMX(_desired_rows,[Interest Rate] * [Capital]), SUMX(_desired_rows,[Capital]) )I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Anonymous
6 years agoNot applicable
mrothschild - The following Measure should work. It first removes the 0-interest rows and then performs the weighted average.
Weighted =
var _desired_rows = FILTER(Rates, Rates[Interest Rate] > 0)
return DIVIDE(
SUMX(_desired_rows,[Interest Rate] * [Capital]),
SUMX(_desired_rows,[Capital])
)
I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
I also appreciate Kudos.
- mrothschild6 years ago
Continued Contributor
Thanks so much - works perfectly!