Thank you LB,
Your array formulas do actually work, thank you. I did change the datatype to numbervar to hold "array allocated gb".
then i am able to see the differences when i place the 2nd formula in report footer.
The reason i was asking for arrays, is that i want to calculate the daily difference for the "array allocated gb" the way i am currently doing this is :-
numberVar difference;
numbervar Totaldifference;
numbervar previousvalue;
if onfirstrecord then
(
difference :=0;
Totaldifference :=0;
previousvalue :=0;
)
else
if {SRMARRAY.ARRAYALIAS} = previous({SRMARRAY.ARRAYALIAS})
then
(
previousvalue := previous({SRMARRAYMETRICS.ARRAYALLOCTOTAL})/1024/1024;
difference := {SRMARRAYMETRICS.ARRAYALLOCTOTAL}/1024/1024 - previousvalue;
totaldifference := totaldifference + difference;
difference;
)
else 0
But because i use PREVIOUS in the formula, i am unable to summarize this formula, so am wanting a way to do this.
Currently i cannot attach a screenshot as i am behind a firewall, sorry. So maybe this will help you, 6 coluns in details, and then 2 rows in report footer :-
10/19/2011
ARRAYALIAS Array Allocated GB Daily Difference Growth DATEKEY Array for alocated
PHX_T123_3520 117,489.05 0.00 0.00 20,111,014.00 117,489.05
PHX_T123_3520 117,489.05 0.00 0.00 20,111,015.00 0.00
PHX_T123_3520 117,489.05 0.00 0.00 20,111,017.00 0.00
PHX_T123_3520 117,523.09 34.03 0.00 20,111,018.00 117,523.09
PHX_T123_3520 117,523.09 0.00 34.03 20,111,019.00 0.00
PHX_T3_3747 158,056.93 0.00 0.00 20,111,014.00 158,056.93
PHX_T3_3747 158,056.93 0.00 0.00 20,111,015.00 0.00
PHX_T3_3747 158,056.93 0.00 0.00 20,111,017.00 0.00
PHX_T3_3747 158,124.93 68.00 0.00 20,111,018.00 158,124.93
PHX_T3_3747 159,148.93 1,024.00 1,092.00 20,111,019.00 159,148.93
Total growth for all clusters 1,126.03
Daily values for array allocated from array 117,489.05, 117,523.09, 158,056.93, 158,124.93, 159,148.93