Custom Sort in Crystal Reports

crystal-reportsgrouping

We have a report that has one group. The group header is based on a (rather extensive) formula which says if the item number is equal to "AAAAAA" then the header should read one of the following:

Conduit
Metal Flex
Copper Wire
Aluminum Wire
Aluminum SE
SO Cord
SQ D
Breakers
etc.

Currently, the groups are sorted in alphabetical order when the report is run. How can we change this so it prints in the order we want (for example as above)?

On the "Use a Formula as Group Sort Order" formula, it says we can only return the group sort order constants as Ascending, Descending or Original order. I tried Original Order seeing as how the group formula is set up in the order wanted, but it still does it in alpha order.

Best Answer

If you are using the field from database to group then you can use option "Group in Specified order" and there provide the order you want to view.

You can get the option if you go to change group.

Related Topic