Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create a user defined Sort Order in Crystal Reports 11

Posted on 2008-06-10
4
Medium Priority
?
566 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 101

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 1500 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 101

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

824 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