Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Can you override a Group Sort? Post Reply Post New Topic
Author Message
Ariel
Newbie
Newbie


Joined: 10 Jun 2010
Location: United States
Online Status: Offline
Posts: 33
Quote Ariel Replybullet Topic: Can you override a Group Sort?
    Posted: 09 Oct 2013 at 3:46am
I have a complex report that is grouped by ID and therefore sorted by ID.  We would like it to be sorted by Company name so we can match them up with invoices (that are sorted by company).  Is there a way to do this?  Someone mentioned a staging table, but I'm not sure what that means.
Thanks!
Ariel
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Oct 2013 at 4:17am
i assume that each invoice ID is only related to one company.
either add another group above the ID level using the company name and group on that and suppress it.
Or you could possible change your ID grouping to use a concantenated combination of the comapany name and then the ID
table.companyname + "-" + totext(table.ID,0,"")
 
Keep a copy of your origianl report in case the grouping changes causes calculation issues


Edited by DBlank - 09 Oct 2013 at 4:18am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 09 Oct 2013 at 4:53am
Twisting what DBlank said, I would assume that in the record that there is a company as well as the Invoice ID.

You can easily create a formula like:
{table.company} + "-" + {table.invoiceID} (adjusting for converting to string if needed) and group on that, which will sort as you desire...

Depending on how it adds to the complexity, you could just add a group above the invoice that is based on Company...then you would see the company and could run totals etc.

And we all know that sometimes, something that souunds as simple as adding another group, is way more complex and undoable.

HTH
IP IP Logged
Ariel
Newbie
Newbie


Joined: 10 Jun 2010
Location: United States
Online Status: Offline
Posts: 33
Quote Ariel Replybullet Posted: 09 Oct 2013 at 4:56am
Thank you so much!  I think DBlank's solution will work, I just need to have the user compare the data and make sure everything is there.
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.