Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Sorting Group Data Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 Dec 2008 at 12:30pm
Just in case for the future you can do what i was suggesting...
Don't use a SQL Expression field use a Formula Field (the one with the "x-1" icon).
Right click on it and select New.
When the Name box pops up you can put whatever but for now just use Last_Year_Sales_Sort.
Hit OK.
In the formula workshop find your Customers table and double click on the Last Year Sales field to bring it into the formula.
Click on save and close. All you did here was create a field that is exactly the same as the Last Year Sales field from your table. Nothing more.
You do not even have to put it into your report to sort by it but you can if you want to see what the field is doing.
from this point follow the last post ...
Go to the Record Sort Expert (the AtoZ button next to the select Expert).
Under Report Fields their should now be a field called "X-1 Last_Year_Sales _Sort". Click on it and then click on the over arrow to move it to the sort fields box. Under the Sort fields box you can choose Ascending or Descending.


Edited by DBlank - 29 Dec 2008 at 12:48pm
IP IP Logged
hdjim69
Newbie
Newbie


Joined: 29 Dec 2008
Location: United States
Online Status: Offline
Posts: 24
Quote hdjim69 Replybullet Posted: 30 Dec 2008 at 4:38am
what's the starting point?  that is, what screen do I start off by clicking the formula button to create this formula?
 
TIA
G
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Dec 2008 at 7:16am
Inside your report design, in your Field Explorer box you have your Database Fields, then Formula Fields then SQL Expression Fields, etc.
Right Click on the Formula Fields and select New to create a Formula Field.
IP IP Logged
<< Prev Page  of 2
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.047 seconds.