I am somewhat new to CR, but was able to create a formula successfully. the problem is I would like to find the maximum of the values found in that formula.
When I go to summarize, the @ variable is not listed. any ideas? here is my formula:
When I go to summarize, the @ variable is not listed. any ideas? here is my formula:
Code:
whileprintingrecords;
numbervar prev;
numbervar current;
numbervar formula;
prev:=previous({history_112004.inVal});
current:={history_112004.inVal};
if (prev=0 or (prev>current))
then formula:=0
else formula:=current-prev;