Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Grouping Multiple Fields Post Reply Post New Topic
Author Message
tdavenport
Groupie
Groupie
Avatar

Joined: 21 Oct 2008
Location: United States
Online Status: Offline
Posts: 41
Quote tdavenport Replybullet Topic: Grouping Multiple Fields
     Posted: 21 Oct 2008 at 12:11pm

I need a report that shows item numbers and quantities ordered over a period of time. Most of the data is on a single table. My challenge is that I'm not grouping on a single field. The order form contains 10 fields (Field1 - Field10). So, on one order, part number 1234  might be in Field1 and on a different order that same part might be in Field 8. If you look at the raw data, the same values can show up in any of the 10 fields.

 
I need to group on matching values. Is this considered grouping or something else? Can anyone help me here?
 
Thanks much.
Any and all suggestions are welcome.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 22 Oct 2008 at 11:30am
You didn't mention how you were getting your data, but it would seem that it is a grouping question, but it would seem that this doesn't yield a easy solution. 
 
It would seem that you would want to normalize your data based on some other field, like the invoice number and then take your fields one at time.  You will get more records, but the item number will be in the same spot.  This should be easy in a stored procedure. 
 
If you are joining straight to the tables, this probably won't work, and nothing comes to mind to get you around this issue.
 
You might try to create a formula that would group/order the values as you want and group on that.
 
Hope this helps
 
 
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum