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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR9-Cross Tab Running Total/Average

Status
Not open for further replies.

JoyCR9

MIS
Jan 13, 2004
70
CA
My Crystal Report (v9) is a distinct count of service call ids per month.

Group Name 1 is Service_Call.Create_Dt
Group Name 2 is @Vendor
@Vendor is:
if {PART.PART_VENDOR_ID}=109
then "NETWORK"
else "UNIX"
Group Name 3 is Service_Call.Service_Call_ID

In the Cross Tab I use a formula to break calls out by geographical location with the final two columns being TOTAL and AVERAGE. The row is Service_Call.Create_Dt grouped by month. Within that row is the Distinct count of service call ids per geographical region based on @Vendor.

This gives me the following output:

Calgary Canada USA Total AVG
Jan calls 1 1 1 3 1
Feb calls 2 2 2 6 2
Mar calls 3 3 3 9 3
and so on

What my boss really wanted was
Calgary Canada USA Total AVG
Jan calls 1 1 1 3 1
Feb calls 2 2 2 9 3
Mar calls 3 3 3 18 6
and so on

How do I achieve this?

Thanks,
Joy
 
Do you mean, you want January, Jan-Feb, Jan-Feb-March etc.?

If so, I don't think you can do that in a crosstab. You may need to write a 'mock crosstab', a grid of running totals that look like a crosstab, but you have to create every single one of them yourself.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top