Forum Discussion
Anonymous
7 years agoNot applicable
Weighted Average Total Measure
I am working with weighted averages. I have read through the forums and found a lot of helpful answers about calculating the correct value at a row level and aggregate level. See the following posts ...
- 7 years ago
Hi Anonymous
You may refer to below measure:
Total of DailyWeightedAvg = SUMX ( SUMMARIZE ( ForumData, ForumData[AsOfDate], "a1", [#DailyWeightedAvg] ), [a1] )#DailyWeightedTotal = IF ( HASONEFILTER ( ForumData[HoldingID] ), CALCULATE ( [Total of DailyWeightedAvg], ALL ( ForumData[HoldingID] ) ) )Regards,
Cherie
v-cherch-msft
7 years agoMicrosoft Employee
Hi Anonymous
You may refer to below measure:
Total of DailyWeightedAvg =
SUMX (
SUMMARIZE ( ForumData, ForumData[AsOfDate], "a1", [#DailyWeightedAvg] ),
[a1]
)#DailyWeightedTotal =
IF (
HASONEFILTER ( ForumData[HoldingID] ),
CALCULATE ( [Total of DailyWeightedAvg], ALL ( ForumData[HoldingID] ) )
)Regards,
Cherie
Anonymous
7 years agoNot applicable
Cherie thank you so much! The calculations are working as expected.