on ‎2020 Dec 28 11:30 AM
Hello
Business users have a requirement where at parent Entities the logic of BPC script should be applied. It should not aggregate data at Parent Level rather it should also give the data which is getting calculated from BPC logic script.
Refer below screenshot for reference:
A-F are entities where if data is -ve then it goes to Y33014 and if it is +ve value goes to Y33015. In column Parent Entity the aggregated numbers are displayed but business users want that at Parent entity also the BPC logic script should check if value is -ve then it should show data in only Y33014. As per my understanding, Parent members cannot be included in scripts/member formulas. is there any alternate way to achieve this ?

Regards
Neha
Request clarification before answering.
"ENDWHEN ACCUMULATION: 4 RECORDS ARE GENERATED. Member (C_BIPL) of dimension (APL_ENTITY) is not a base member (parent or formula)"
Clear!
You are trying to WRITE to parent member, for sure this is not possible!
You have to write to some base ENTITY member, may be you have to create one under the same parent!
*REC(EXPRESSION= %VALUE% < 0 ? 0: %VALUE%,APL_ACCOUNT1=Y33014,ENTITY=DUMMY_ENT)P.S. I see that reading from parent is working fine!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Starting from some not very resent SP BPC script logic supports parent nodes in WHEN/ENDWHEN.
*XDIM_MEMBERSET ENTITY=SOME_PARENT // PARENT values in the loop
*XDIM_MEMBERSET ACCOUNT=Y33007
*WHEN ACCOUNT
*IS *
*REC(EXPRESSION=%VALUE% > 0 ? %VALUE% : 0, ACCOUNT=Y33015
*REC(EXPRESSION=%VALUE% < 0 ? %VALUE% : 0, ACCOUNT=Y33014
*ENDWHENIf you have very old BPC version then you have to create some dummy entity, aggregate base member entities in this dummy member, then same loop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"ENDWHEN ACCUMULATION: 4 RECORDS ARE GENERATED. Member (C_BIPL) of dimension (APL_ENTITY) is not a base member (parent or formula)"
Above is the warning message which I get.
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET RPTCURRENCY = %RPTCURRENCY_SET%
*XDIM_MEMBERSET APL_TIME = %APL_TIME_SET%
*XDIM_MEMBERSET APL_ACCOUNT1 =
*XDIM_MEMBERSET APL_ENTITY = %APL_ENTITY_SET%
*WHEN APL_ACCOUNT1
*IS BAS(Y33007)
*REC(EXPRESSION= %VALUE%, APL_ACCOUNT1 = Y33007_S)
*ENDWHEN
*WHEN APL_ACCOUNT1
*IS Y33007_S
*REC(EXPRESSION= %VALUE% < 0 ? 0: %VALUE%,APL_ACCOUNT1=Y33014)
*REC(EXPRESSION= %VALUE% > 0 ? 0: %VALUE%,APL_ACCOUNT1=Y33015)
*ENDWHEN
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.