Solved

Create a user defined Sort Order in Crystal Reports 11

Posted on 2008-06-10
4
518 Views
Last Modified: 2012-06-22
Hi

I am trying to create a sort order by financial week numbers (April - March) starting with 14 and ending with 13 e.g. 14, 15, 16 ... 52..1, 2, ...13. Can anyone suggest how to create a sort order by this sequence of numbers?

regards
DGI
0
Comment
Question by:dgi001
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 21753225
You could group by the week number then use a specified sort where you specify the order.

mlmcc
0
 
LVL 28

Accepted Solution

by:
bdreed35 earned 500 total points
ID: 21753495
I actually would recommend that you sort or group on the date of the week, if that is available, but display the week number on the report itself, instead of the date.  This would give you the correct order and the correct display.  I don't think specified order sorting would work in this scenario as every week you are going to start with a different week number as your first week.  It is also a pain to set up for 52 weeks.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 21754908
Maybe a bad assumption on my part.  I thought he had the week number available and this was basically a fiscal year type report that wouldn't change the start and end date.

Also I wasn't sure if the date was avaialble.  If it is then by all means use it since that will always sort correctly and is much easier to setup.

Another idea that just occurred to me is use a formula like this as the sort key.  Again show the rela field.

If ({FinancialWeek} <= 13) then
   {FinancialWeek} + 52
else
   {FinancialWeek}

mlmcc
0
 

Author Comment

by:dgi001
ID: 21768970
thanks
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now