Hi Experts,
I have a scenario where I have to lookup the records from different model and push the same in current model.
My script logic works if I put a fact value 0 or something else. But if I don't have any fact value the *rec statement does not write a new record.
*REC(EXPRESSION = 1* LOOKUP(RM) , CPA_ACCOUNTS="RAW")
*REC(EXPRESSION = LOOKUP(RM) , CPA_ACCOUNTS="RAW")
*REC(EXPRESSION = %VALUE% + LOOKUP(RM) , CPA_ACCOUNTS="RAW")
I have tried all the above combinations but didn't find a solution. My question is how can i write a new record using *REC when there is no fact record available in the cube?
Regards
Hi Sami,
WHEN/ENDWHEN loop process ONLY existing records with default settings.
You have 2 options:
1. *WHEN_REF_DATA = MASTER_DATA before WHEN - it will process master data members! But the performance is very slow - affects all dimensions.
2. Scope data you want to LOOKUP and push it to new destination. Better!
Vadim
Add a comment