cancel
Showing results for 
Search instead for 
Did you mean: 

SAP IBP - Adjusted key figure calculation definition isn't working

Daniele_Cuozzo
Discoverer
0 Kudos
131

Hi,

We need to create an editable key figure  ZZTESTACTQTY2(adjusted)  initialized with ACTUALSQTY if ZZTESTACTQTY2 has no value

Daniele_Cuozzo_2-1732113933160.png

Calculation definition --> ZZTESTACTQTY2@WKPRODLOCCUST = IF(ISNULL("ZZTESTACTQTY2@WKPRODLOCCUST"), "ACTUALSQTY@WKPRODLOCCUST", "ZZTESTACTQTY2@WKPRODLOCCUST")

Daniele_Cuozzo_1-1732113676824.png

In this case the calculation work correctly, we did an adjustment only on TW42  2023. For this example we use standard IBP Key figure.

We tried to replicate the logic that you can see above, using a new planning level with a different time attribute (month)

Daniele_Cuozzo_3-1732114045091.png

with the same calculation definition-->ZZADJTEST@ZZMTHPRODLOCCUST2 = IF(ISNULL("ZZADJTEST@ZZMTHPRODLOCCUST2"), "ZZUSCITETEST@ZZMTHPRODLOCCUST2","ZZADJTEST@ZZMTHPRODLOCCUST2")

As you can see on the screenshot below , the new key figure isn't working

Daniele_Cuozzo_4-1732114132946.png

We need to know how to create this logic correclty , and we want to know the reason of the malfunction despite the logics being identical , as you can see it.

 

View Entire Topic
vincentverheyen
Active Participant

Hi @Daniele_Cuozzo ,

The reason is because your Key Figure ZZADJTEST in its @Request level calculation does not reference its Calculated Value, instead it references its Stored Value (see the cube icon 🧊) in your screenshot of ZZADJTEST. 

This is different in the your Key Figure ZZTESTACTQTY2:where the @Request level calculation does reference the Calculated Value instead of the Stored Value.

Solution: please edit Key Figure ZZADJTEST in its @Request level calculation by clicking on 'Edit' next to REQUEST, and subsequently click on 'Inputs' and subsequently select 'Calculated' instead of 'Stored' next to ZZADJTEST@ZZMTHPRODLOCCUST2 .

Please let me know if there is anything which remains unclear. If not, you may mark this as a correct answer.

Kind regards,

Vincent Verheyen