on 07-09-2010 1:23 AM
Hi All,
Under 'INCOME' i have 3 accounts.
account1
account2
account3
i want to add the value of these 3 account then i want to multiply with 3
the result i want to display in "account4"
What is the required script logic for this?
Regards,
Phanikumar.
Hi Phani Kumar,
BPC 7.0 NW doesnt support GET, so you cannot have the script as
*WHEN ACCOUNT
*IS "ACCOUNT1"
*REC(EXPRESSION=(%VALUE% + GET(ACCOUNT="ACCOUNT2") + GET(ACCOUNT="ACCOUNT3"),ACCOUNT="ACCOUNT4")
*ENDWHEN
Instead you can modify the script to
*WHEN ACCOUNT
*IS "ACCOUNT1","ACCOUNT2","ACCOUNT3"
*REC(FACTOR = 3, ACCOUNT="ACCOUNT4")
*ENDWHEN
If you want to go with MDX, then you can use as suggested earlier
[ACCOUNT].[#account4]=([ACCOUNT].[account1]+[ACCOUNT].[account2]+[ACCOUNT].[account3])*3
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Phanikumar, below is a sample BPC SQL script for adding the 3 values and storing them in Account4.
I hope this helps.
Sean
*WHEN ACCOUNT
*IS "ACCOUNT1"
*REC(EXPRESSION=(%VALUE% + GET(ACCOUNT="ACCOUNT2") + GET(ACCOUNT="ACCOUNT3"),ACCOUNT="ACCOUNT4")
*ENDWHEN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use,
[ACCOUNT].[#account4]=([ACCOUNT].[account1]+[ACCOUNT].[account2]+[ACCOUNT].[account3])*3
here, ACCOUNT is the name of the dimension where the members account1,account 2 etc are present.
Hope this helps,
Regards,
G.Vijaya Kumar
Edited by: G.Vijaya Kumar on Jul 9, 2010 6:38 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
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.