Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7999

BPC NW 10: getting wrong amounts on ALLOCATION (script logic)

$
0
0

Hi BPC gurus:

 

I have a situation with my script logic ALLOCATION code.

 

I have been testing step-by-step the amounts of WHAT, USING and TOTAL and then writing the correct amounts under the WHERE filter, but when i run the complete script logic the results does't match.

 

ALLOCATION FORMULA (standard formula)

WHERE = WHAT * USING/TOTAL

 

Example:

1.1595 = 39.2(44.01/1,487.78) (Result im expecting - CORRECT)

 

Result:

0.1243 = 39.2(44.01/1,487.78) (BPC final result - INCORRECT)

 

CODE:

 

*SELECT(%INGRESOS%, "[ID]", CUENTA, "[DISTR]=INGRESOS")

*SELECT(%SEGCEBE1%,"[ID]",SEGCEBE,"[ID]='B','C'")

*SELECT(%SIN_SEG%,"[ID]",SEGCEBE,"[ID]='SIN_SEGCEBE'")

*SELECT(%SEGCEBE2%,"[ID]",SEGCEBE,"[ID]='0','1','A','B','C','D','I','P','SIN_SEGCEBE'")

*SELECT(%FLUJO1%,"[ID]",FLUJO,"[ID]='F99'")

*SELECT(%FLUJO2%,"[ID]",FLUJO,"[ID]='F83'")

*SELECT(%GRUPO1%,"[ID]",GRUPO,"[ID]='G_CONSOLIDADO'")

 

*XDIM_MEMBERSET PERIODO = %PERIODO_SET%

*XDIM_MEMBERSET VERSION = REAL

*XDIM_MEMBERSET MONEDAREPORTE = MXN

*XDIM_MEMBERSET FUENTEDATOS = BAS(CONSOL)

 

*FOR %SEGMENTOS% = %SEGCEBE1%

     *FOR %COENTA% = %INGRESOS%

 

          *RUNALLOCATION

          *FACTOR = USING/TOTAL

          *DIM SEGCEBE WHAT = %SEGMENTOS%  ; WHERE = %SEGMENTOS% ; USING = %SEGMENTOS% ; TOTAL = %SEGCEBE2%;

          *DIM CUENTA WHAT = %COENTA% ; WHERE = %COENTA% ; USING = %INGRESOS%; TOTAL = <<<;

 

          *DIM PERIODO WHAT= %PERIODO_SET% ; WHERE = <<< ; USING = <<< ; TOTAL = <<<;

          *DIM GRUPO WHAT= %GRUPO1% ; WHERE = <<< ; USING = <<< ; TOTAL = <<<;

          *DIM SOCIEDAD WHAT= MX01 ; WHERE = <<< ; USING = <<< ; TOTAL = <<<;

          *DIM MONEDAREPORTE WHAT= MXN ; WHERE = <<< ; USING = <<< ; TOTAL = <<<;

          *DIM FLUJO WHAT = %FLUJO1%; WHERE = %FLUJO2%; USING = %FLUJO1%; TOTAL = <<<;

          *ENDALLOCATION

     *NEXT

*NEXT

 

Does any one knows why the results are not what im expecting??? is there some internal calculation BPC do with the USING, WHAT or TOTAL amounts???

 

best regards


Viewing all articles
Browse latest Browse all 7999

Trending Articles