ElementParent rule in Hierarchies
Posted: Tue Jul 14, 2020 8:22 am
Hi,
I am trying to write a "% of Parent" -type of rule in an alternative/virtual (not sure what's the official term...) Hierarchy. Here below is a simplified code of this
The rule for the primary/base dimension looks like this, and works fine:
Then I have a Hierarchy, called "By Bucket1", here is my try:
The rule returns only 0s. Then I created a test S measure, called TestParent:
This measure correctly displays the element parents in the By Bucket1 hierarchy, and so I am a bit puzzled on what I'm doing wrong in my % of parent rule?
Any help appreciated,
Thank you
Matyas
I am trying to write a "% of Parent" -type of rule in an alternative/virtual (not sure what's the official term...) Hierarchy. Here below is a simplified code of this
The rule for the primary/base dimension looks like this, and works fine:
Code: Select all
[Measures: '% of Parent'] = [Measures: 'Gross Sales'] \ DB('Sales',!Version,!Time,ELPAR('Products',!Products,1),'Gross Sales');
Code: Select all
[Measures: '% of Parent in Bucket1'] = [Measures: 'Gross Sales'] \ DB('Sales',!version,!Time,ElementParent('Products','By Bucket1',!Products,1),'Gross Sales');
Code: Select all
[Measures: 'TestParent'] = S:ElementParent('Products','By Bucket1',!Products,1);
Any help appreciated,
Thank you
Matyas