cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

*RUNALLOCATION can't generate the correct result

Former Member
0 Kudos
617

*RUNALLOCATION can't generate the correct result. The example and script is:


*XDIM_MEMBERSET ACCOUNT = 6601002

*RUNALLOCATION

*FACTOR = USING/TOTAL

*DIM ACCOUNT WHAT = 6601002; WHERE = <<<; USING = <<<; TOTAL= <<<;

*DIM CATEGORY WHAT = BUDGET; WHERE = <<<; USING = ACTUAL_IN; TOTAL= <<<;

*DIM TIME WHAT = 2021.INP; WHERE = BAS(2021.TOTAL); USING = BAS(2020.TOTAL); TOTAL= <<<; *ENDALLOCATION

But the result of 2021.01 should is 2000*500/(500+200+300)=1000, how could to correct the script to generate the right data ?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Kudos

May be the issue is related to the order of TIME members as a result of BAS(YYYY.TOTAL)

I have tested allocation with the list of TIME members defined manually:

*XDIM_MEMBERSET ACCOUNT=PL110
*XDIM_MEMBERSET ENTITY=DE
*XDIM_MEMBERSET AUDITTRAIL=Input
*XDIM_MEMBERSET PRODUCT=ProductA
*XDIM_MEMBERSET INTERCO=ThirdParty
*XDIM_MEMBERSET RPTCURRENCY=LC

*RUNALLOCATION
*FACTOR=USING/TOTAL
*DIM CATEGORY WHAT=Budget;WHERE=<<<;USING=Actual;TOTAL=<<<
*DIM TIME
WHAT=2017.INP;WHERE=2017.01,2017.02,2017.03;USING=2016.01,2016.02,2016.03;TOTAL=<<<
*ENDALLOCATION

Test is based on ENVIRONMENTSHELL Planning model

Result

Everything is correct!

Former Member
0 Kudos

Thanks for your reply!

Pls see the TIME dimension screenshot:

Thanks.

former_member186338
Active Contributor
0 Kudos

837488533

Sorry, but your 2021.INP member is incorrectly configured (missing mandatory property values etc) This may result in unpredictable system behavior!

Correct setup will be:

2021.INP 001 MONTH 1 JAN 10210100 1021 2021.INQ

2021.INQ 003 QUARTER 3 Q1 <empty> 1021 2021.INY

2021.INY 012 YEAR 12 TOTAL <empty> 1021

Use artificial year 1021 and TIMEID 10210100

Also test script with list of time members like in my sample.

Former Member
0 Kudos

HI,Vadim Kalinin

The 2021.INQ and 2021.INY was created,but the result didn't change when we run the allocation again!

Maybe it‘s not the problem of 2021.INP member which cause this .

Thanks!

former_member186338
Active Contributor
0 Kudos
837488533

Post again your script! Have you tested list of periods?