Solved

Crystal Sort Direction on multiple string field formula

Posted on 2009-04-07
3
888 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

816 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

9 Experts available now in Live!

Get 1:1 Help Now