Solved

Crystal Sort Direction on multiple string field formula

Posted on 2009-04-07
3
893 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
[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
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 101

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 35

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

632 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