Solved

Sort Columns in Crystal Reports

Posted on 2011-02-28
2
470 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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. …
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

623 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