Hi Brian, Thanks for the input. I'm an absolute beginner to reports & there must be something fundamental about reports & perhaps their evaluation time that I'm missing.
What I need is to sum all the rows (they are average values) with group names starting with IS & place this value in the row with the group name "Infrastructure Services". etc.
I tried applying what you recommended above but all group rows returned a value of 0.
Below is the code. (I assumed you meant Left when you used Len in your example):
Global NumberVar ISSum1;
Global NumberVar MSSum1;
Global NumberVar MCSum1;
// For the groupheader valued "Infrastructure"
if GroupName ({ResourceUsageReport.OrganizationName}) = "Infrastructure Services"
then
// Sum all group headers that start with "IS"
for the groupheader valued "Manged Services"
else if GroupName ({ResourceUsageReport.OrganizationName}) = "Managed Services"
then
// Sum all groupheaders that start with value "MS"
if Left(({ResourceUsageReport.OrganizationName}),2) = "MS"
then
MSSum1 := MSSum1 + (Sum ({ResourceUsageReport.Period1}, {ResourceUsageReport.OrganizationName})
// All groups starting with IS, MS etc (i.e. Not named "Infratructure Services" or "Managed Services")
else
* Currently I'm just summing them for test purposes. They will need to be averages but this is not an issue so disregard that. I'm just after *placement* of values at the moment.
Thank you very much for any assistance you can give on this.
Regards
Ant