on 2022 May 11 8:31 AM
Hi Team,
I have a requirement where data needs to be copied to old model for Geo Maps. We are doing this using Advanced scripts using link function. When we try to copy the data from new model to old model, i am able to map only 1 dimension with new model and when i try to add few more like account = newmodel.account.ID then it throws me error "There is violation of scope redirection in the calculation expressions". Is it that Link functionality allows only for 1 mapping. How can i copy data for other dimensions.
Thanks & Regards,
Pranav Vyas
Hi pranavvyas01,
With my experience, LINK formula definitely support mapping for multiple dimensions.
Just check below example from help page, I believe your error is not because of using more than one dimension, but due to other reasons.
MEMBERSET [d/Account] = "JetOilPrice"
MEMBERSET [d/Time] = [d/Version].[p/PlanFromDate] to [d/Version].[p/PlanToDate]
MEMBERSET [d/DataSrc] = "Input"
FOREACH [d/Time]
//first use the LINK function to calculate the indicator of each month by dividing the estimated jet oil price of Singapore Airline by the actual price, then multiple it by the actual oil price of each airport in May.
DATA() = RESULTLOOKUP([d/Time] = "201805", [d/Version] = "public.Actual")
* LINK([Airline_Indicator_AF] ,[d/Version] = "public.Plan201806", [d/Account] = "Singapore-Jet Oil Price" )
/ LINK([Airline_Indicator_AF] ,[d/Version] = "public.Actual", [d/Account] = " Singapore-Jet Oil Price ", [d/Time] = "201805" )<br>
Best regards, William
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jay,
Please find below sample of the code:
DATA( [d/material]=%materialold%,[d/comp]= [New Model].[d/comp].[p/ID],[d/Account]=%AccountOld%)=LINK([New Model],[d/Version]=%VersionNew%,[d/material]=%materialNew%, [d/Account]=%AccountNew%)
Here in the above example, i have mapped on the left side: Comp (old model) = Comp (new model). Same thing i want to do it for material and Account but unable to do so and gives error as mentioned.
Thanks & Regards,
Pranav Vyas
User | Count |
---|---|
68 | |
13 | |
10 | |
9 | |
9 | |
8 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.