Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Averaging Data in an Array

Status
Not open for further replies.

James1963

Technical User
Jun 3, 2009
7
AU
I am using Crystal XI and I am am trying to average the array I have built in a main report and is passed to a subreport. I am spliting the data in the subreport to graph employee sick leave. I have tried to average the split data but no luck. I have tried a couple of loop formulas but no luck as well. Any ideas would be appreciated.

@ShowValue
if isnumeric(split({?Pm-@StrShowValue},"^")[groupnumber])
then tonumber(split({?Pm-@StrShowValue},"^")[groupnumber])
Works beaautifully but now I want to avearge these figures that are being graphed for a rolling twelve month average.
the data looks like this(0.89^1.77^2.25^2.77....)

James
 
You could average them on the main report and pass that.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 10 & 11.5 with Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top