Hi
I have a financial collection which I want to iterate around :- Financial Year, CAPEX, OPEX
This collection has four entries :-
FY18/19, CAPEX = 1, OPEX=2
FY19/20, CAPEX = 10, OPEX=20
FY20/21, CAPEX = 100, OPEX=200
FY21/22, CAPEX = 1000, OPEX=2000
So I want to iterate around the collection and do some calculations on the OPEX and CAPEX amounts.
like add the CAPEX and OPEX to a value in a variable.
I cannot use ForAll(FYCollection, UpdateContext({vTotalCAPEX:vTotalCAPEX + CAPEX}); UpdateContext({vTotalOPEX:vTotalOPEX + OPEX});
); nor the Set() equivalent.
How can I achieve my Objective ?
Thanks
Nigel