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

Beyond Cross-Tab in Crystal X

Status
Not open for further replies.

CarolCook

IS-IT--Management
Mar 7, 2003
158
0
0
US
I have what amounts to a complicated cross tab report in Crystal X that exceeds the capabilities of Crystal default-cross tab. I have a table that has invoices by customer and job (multiple jobs on a single invoice but each invoice has its own record). So what I need follows. Can this be done via an array? Thanks!

Inv 1 Inv 2 Total
3/4/07 3/23/07
Customer X
Job 1 $100 $300 $400
50% 50%
Job 2 $100 $300 $400
50% 50%
Total $200 $600 $800
 
I am trying to work out what the % values relate to??? Might help with what responses you get.
 
You should build a manual crosstab.

Group by Customer, then Job, then manually create formulas for the invoicesums/percents.

Customer group
stringvar array invoices;
numbervar array invamts;

details
if not({table.invoice}) in invoices then
redim preserve invoices[ubound(invoices)+1]
redim preserve invamts[ubound(invoices)+1]
invoices[ubound(invoices)] := {table.invoice}
invamts[ubound(invoices)] := {table.invoice}

group footer:
display here

Can't really work it out right now as I don't have the time, but those are the basics.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top