on 05-06-2015 6:05 AM
Hi,
I am using BPC 10.1 on HANA Engine: Javascript
How can I get the sum of the values of all the base members of a particular hierarchy in Script logic. For example my customer dimension has a Group / Hierarchy - VERY_LOYAL and the base members are A,B , C, D... Q How can I get the sum of the sales of all the base members dynamically rather than just adding them up?
Sincerely,
Nicky
Hi Nicky,
The question is: WHAT FOR?
"How can I get the sum of the values of all the base members of a particular hierarchy"...
In case of multiple hierarchies for single dimension (let it be CUSTOMERS) you need to have a root parent (even artificial) for this hierarchy. For example VL_ROOT
Then:
*XDIM_MEMBERSET CUSTOMER=BAS(VL_ROOT)
*WHEN CUSTOMER
*IS *
*REC(EXPRESSION=%VALUE%,CUSTOMER=SOMETARGETBASEMEMBER)
*ENDWHEN
In some cases you can directly use:
*REC(EXPRESSION=...*[CUSTOMERS].[VL_ROOT]...)
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nicky,
have you tried to use that parent node, it should return the sum of the hierarchy.
Or what are you trying to do? maybe you need to multiple with each base member.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.