Solved

Sort Columns in Crystal Reports

Posted on 2011-02-28
2
465 Views
Last Modified: 2012-06-27
Hi all,

I have a table in Oracle  with columns like this

Location,
Time,
error code 1
error code 2
error code 3
...
Error code 15.

 columns error codes 1 .. 15 etc show  counts for particular error code. I want to be able to
sort the columns grouped by location and time.

for example data might be like this

location 1 , Feb 1 2011, 10,20,30 etc etc
locatin2    , feb 2 2011, 20,30,40 etc etc


I want to be able to sort them descending
for example

Location 1
        feb   1 2011     30    //error code three  description...
         feb   1 2011     20    // Error code 2  descriptionl...
         feb    1 2011    10   // Error Code 1


Is there a way to sort columns for a date   in crystal reports?
 
0
Comment
Question by:maverickxx
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 35001360
Not really with the data you have

You could put the fields into an array and sort them then print them line by line.

Another idea would be to  use a command to select each field in turn and union the results

Select Location, Date, COlumn1 FROM table
UNION
Select Location, Date, COlumn2 FROM table
UNION
Select Location, Date, COlumn3 FROM table
etc

You can then group by location then date and sort by the column value

mlmcc
0
 

Author Closing Comment

by:maverickxx
ID: 35017902
thanks mlmcc
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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