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
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