Working on a use case to reproduce following psuedo code in Anaplan
Start
Recommendation_given=0
for tranche 1 to 6
if tranche =1
then tranch_contribuiton = 0
else if tranch recommendation <= recommendation_given or tranch_recomendation = 0
then tranch_contribuiton = 0
else
tranch_contribution = tranch recommendation - recommendation given
Recommendation_given = Recommendation_given + tranch_contribution
loop
End
Tranche here is a list, when trying to implement this in Anaplan. I get the circular reference for calcualting Recommendation_given.
Below are line item calc
Tranch Recommendation is a input from another module.
Tranch Contribution = IF Tranche Rank = Tranche #.'1'THEN Tranch RecommendationELSE IF Tranch Recommendation = 0 OR Tranch Recommendation <= Recommendation_given THEN 0 ELSE Tranch Recommendation - Recommendation_given
Also attach is equivalent of excel
Let me know if I can share more information, Any direction appreciated.