Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Available fields in Record Sort Expert Post Reply Post New Topic
Author Message
martinbanks
Newbie
Newbie


Joined: 09 May 2012
Online Status: Offline
Posts: 18
Quote martinbanks Replybullet Topic: Available fields in Record Sort Expert
    Posted: 29 May 2012 at 11:15am
I am trying to sort a field by one of my Running Totals, so they decline in size, but the field does not exist in my Record Sort Expert. Any idea why?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 May 2012 at 11:26am
RTs are created after sorting occurs so they can not be used to sort.
IP IP Logged
martinbanks
Newbie
Newbie


Joined: 09 May 2012
Online Status: Offline
Posts: 18
Quote martinbanks Replybullet Posted: 29 May 2012 at 11:35am
Thanks DBlank.

So is there a workaround/alternative way i can sort them in descending order of total calls?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 May 2012 at 11:38am
you can sort groups on anything that can be derived via a summary function. Sometimes being creative in that process can give you a sorting result even if it is not the final dsiplay value.
Of course doing calcs in a stored proc give you values to sort on straight in your dataset
 
what is your data and how do you want it sorted?
IP IP Logged
martinbanks
Newbie
Newbie


Joined: 09 May 2012
Online Status: Offline
Posts: 18
Quote martinbanks Replybullet Posted: 30 May 2012 at 5:08am
OK, lets see if I can explain this...

(Please note I am very new to CR and have not had any training, so most likely attack things from completely the wrong angle!)
I have a report which totals daily calls for each client. It also sums each week and then the last month. The month total is what I want to sort on. I get each day's total by using this formula in a running total (count) field:
{CALLSTABLE.CALLDATE} = CurrentDate-(dayofweek(CurrentDate))-15
The 15 on the end changes for each field, and I have one for every day of the last month.

It is currently grouped by client master ID as some have more than one client ID but are the same client.

Edited by martinbanks - 30 May 2012 at 5:08am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 May 2012 at 5:23am
I can't quite 'see' your report but you can insert a group on the date field multiple times each group you can set the date grouping type to month, day week and then day and insert a count per group level.
using the insert summary would allow you to sort the groups on those values.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 May 2012 at 5:32am
NOTE: be aware that grouping at the month will break up weeks into partial weeks that still fall into each specific months

Edited by DBlank - 30 May 2012 at 5:32am
IP IP Logged
martinbanks
Newbie
Newbie


Joined: 09 May 2012
Online Status: Offline
Posts: 18
Quote martinbanks Replybullet Posted: 31 May 2012 at 4:56am
You're the MAN!!! Tanks DBlank
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.016 seconds.