Having issues getting the average for Parent TotalAverage (getting SUM instead) in SSAS
Should be 100 in TotalAverage but is the sum 300.
Any suggestions??
I have this already as a calculation:
Avg(Descendants([Product V].[Product].CurrentMember.Children),[Measures].[Avg Price])
But in this case the children values are not displayed - Item1, Item2, Item3 (100, 100, 100)
Whereas the correct TotalAverage is displayed (100).
I have a manual solution, but this should be a possibility in Visual Studio by standard?:
CASE
Avg([Product V].[Product].CurrentMember.Children,[Measures].[Avg Price])
WHEN NULL THEN [Measures].[Avg Price]
ELSE Avg([Product V].[Product].CurrentMember.Children,[Measures].[Avg Price])
END