I have a table from which I would like to group on values in 3 different fields. The structure of these fields i same but the values may same as in other 2 or different. Is there any way to group on values from these 3 fields?
So you want one record to be part of three different groups. No that won't work.
If you know SQL well, you could write a stored procedure that reads each 2-column pair as a separate 'table', and then appended each pair's records, in turn, to the others. Crystal can't do a union query like this directly.
If the number of items that occur in these three fields is not huge, you could hard code a conditional total or each item and then sum the items using a running total for each.
If you really want a challenge, I suppose you could create a pair of variable arrays, one to keep track of the items, and the other to maintain a corresponding counter for each item, but that would test the limits of Crystal's variable arrays. Ken Hamady
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.