Solved

Create a user defined Sort Order in Crystal Reports 11

Posted on 2008-06-10
4
527 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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