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
Solved

Crystal Sort Direction on multiple string field formula

Posted on 2009-04-07
3
889 Views
Last Modified: 2013-11-28
I have a formula field that is used for sorting.  One of the fields inside of the formula field needs to be sorted desc, but the rest asc.  Is there anyway for me to change my sort field in the crystal formula editor window?
0
Comment
Question by:jdonaghe
3 Comments
 
LVL 7

Expert Comment

by:PCIRichard
ID: 24091967
You can only sort alpha numericaly on the formula as a whole.

One possible solutiion would be to create several groups, one for each of the fields in the formula. in group expert select the correct sort order for each one.

Then supress all the group headers and footers.

The details sections will be sorted as you require.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24093602
Agree.

If you need further help, please provide the formula  and what you want the sorting to be.

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 24095908
If you're only sorting by these fields and not grouping, then you don't need groups.

 Change your original formula so that if you're sorting by the descending field, that formula outputs just a space (instead of that field).

 Create an additional formula for the field that you want to sort descending.  Set that formula so that it only outputs that field when you want to sort by it, otherwise it just outputs a space.

 Change the report so that it's sorting by both formulas (it doesn't matter which is first), and make the sort by the new formula descending.  Since only one of the formulas will produce "real" output on a report (the other formula will be blank), the report will actually be sorted by one formula or the other.

 That should do it.

 James
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
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…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

856 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