i have a dimension hierarchy:
B - C - D - E
and one measure:
measures.eur
If i make calculated member:
AVG([hierarchy].[All],[Measures].[eur])
i can get single average from all hierarchy members in the top level of hierarchy. But i want to have different average calculated from every level of the hierarchy.
So that when selecting hierarchy member C it shows the AVG of all the C's in the hierarchy, when selecting B it's AVG of all B's and so forth..
I tried:
AVG(
[HIERARCHY].PARENT,
[Measures].[eur]
)
But it's not giving the average for all the members on the hierarchy levels, but it's very close to what i want.
您可以使用level函数尝试以下表达式:
AVG ( [selected-member-of-c].level.members, [Measures].[eur] )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.