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

Problems with a tricky cross-tab!

Status
Not open for further replies.

jwoodland

Technical User
Oct 29, 2002
11
GB
Using Crystal 8.5 I'm having problems with the following situation:

Code(string) Index(#) Spec(string)
IC000009 1 501
IC000009 2 501
IC000009 3 502
IC000009 4 502
IC000009 5 501
IC000010 1 501
IC000010 2 501
IC000010 3 502

I need to pull, and eventually count the MAX index for each code and group by spec. i.e. Code IC000009 will be spec 501 and code IC000010 will be 502.
Using a distinct count cross-tab gives me a correct grand total but has incorrect group totals as it counts the non-MAX indices.
Maybe there is a simple way of actually pulling only the MAX indices from the database? If not is there a way of fiddling the cross-tab??

Any help would be appreciated.

jwood





 
What would the cross-tab to actually look like for these records? Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
- tek@kenhamady.com
 
There are hundreds of diffrent spec's and each record (index) has a start and end date (amongst other things).
The cross-tab in essence will have end date by month as the column headings and spec as the row headings (groups) with a count of distinct consultant episodes (codes).

Hope this makes it a little easier!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top