Solved

Crystal Reports CrossTab Sorting Columns

Posted on 2009-07-13
10
878 Views
Last Modified: 2012-05-07
I have a crosstab that I need to sort the columns so that the "Other" column is a always last.  Does anyone know if or how I can do this?

Any help will be greatly appreciated.
0
Comment
Question by:nobile00
  • 6
  • 4
10 Comments
 

Author Comment

by:nobile00
ID: 24844620
Any help will be very appreciated.

Thanks in advance.
0
 

Author Comment

by:nobile00
ID: 24852673
If anyone could let me know if this can be done and if so how.

Thanks
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24856186
How are you generating the values?

One way is to use a group and sort the group in specified order

mlmcc
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:nobile00
ID: 24858653
How do I group and sort by specified order?  The values are coming from a View.

Thanks for your help
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24861780
Right click the cross tab in the left corner
Click CROSS TAB EXPERT
Select the ROW field
Click the CHANGE GROUP
You should be able to set the order

mlmcc
0
 

Author Comment

by:nobile00
ID: 24862061
Thanks I did that.

Just one question will this hold true if more columns are added to the database?  
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24864383
What do you mean more columns?

If you are adding more values for the row then you will need to change the specified order to include the new values.

mlmcc
0
 

Author Comment

by:nobile00
ID: 24864461
If more data is added to the database.

Is there then another way to do this so that the report doen't need to updated all of the time?
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 24864688
Not that I am aware of.

How are you getting the OTHERS column?

Is OTHERS a valid data entry?
If so you could use a formula like

IF {GroupField} = 'Others' then
    'ZZZZZZZZOthers'
else
    {GroupField}

Use that field in the grouping of the crosstab
Modify the group
On the second tab use the field itself for the column header.

mlmcc
0
 

Author Closing Comment

by:nobile00
ID: 31602933
Thanks that worked!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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. …
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…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

791 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