Hello Experts,
Im trying to write a piece of logic to aggregate balance but its overwriting on my target. I would like my results as below but its overwriting with last input value entered via input schedule. Is there an work around for this issue.
I always use account based business rule but this time I cannot as one of my dimension here is a User defined dimension so I am forced to script logic.
Script logic
*WHEN CATEGORY
*IS ACTUAL
*WHEN ICAUDITID
*IS INPUT
*WHEN CURRENCY
*IS LC
//*WHEN TRNCURRENCY.PARENTH1
//*IS ALL_TRNCURRENCY
*REC(FACTOR = 1,ICAUDITID = TP, TRNCURRENCY = NO_CURR)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
Example and expected results below but I am not getting last inputted value.
Source | ||||||
TIME | AUDITID | COMPANY | INTCO | TRNCURRENCY | CURRENCY | AMOUNT |
2012.01 | INPUT | A | I_B | GBP | LC | 1 |
2012.01 | INPUT | A | I_B | INR | LC | 2 |
2012.01 | INPUT | A | I_B | USD | LC | 3 |
2012.01 | INPUT | A | I_B | USD | LC | 4 |
TARGET | ||||||
2012.01 | TP | A | I_B | NO_CURR | LC | 10 |