Hi,
I have a workflow used for financial budget analysis of a mining company over a period of 12 years. I'm trying to produce a summary sheet which contains both physical and financial variables.
I'm looking to summarise the variables over time periods, i.e. [FYQ1] - the first quarter of the current financial year which covers the first three periods of data. Some variables, such as grades, need to be averaged over this period whilst others, such as costs, should be summed.
I have written the following IF statement to try achieve this (here [Name] is the variable name):
IF Contains([Name],"Grade")
THEN [FYQ1]=Average([Period_1],[Period_2],[Period_3])
ELSE [FYQ1]= [Period_1]+[Period_2]+[Period_3]
ENDIF
However, the output is "0" where the first condition is met and "-1" where the second condition is met.
Unsure what I am doing wrong. Hope that someone can spot my mistake.
Thanks
Alastair