Hi Everyone I have a crystal report. I have a grouping in a report. The grouping is called household and the typical value is something like this:
Mr & Mrs John and Jane Doe or something like that.
I want the sort to be as such though on a different field called lastname in alpha asc order.
Right now because I have my grouping household which I do need so I can group like records it puts them in all kinds of order.
Crystal Reports
Last Comment
James0628
8/22/2022 - Mon
Mike McCracken
Is there a field called lastname?
If so try this
Put the lastname field on the report in the detail section
Right click it
Click INSERT --> SUMMARY
Choose MAXIMUM or MINIMUM
Put the summary in the GF1
Delete the LASTNAME FIELD from the detail section
CLick REPORT --> GROUP SORT EXPERT
Click the dropdown and change NO SORT to ALL
Choose the SUMMARY field presented in the right box
Click OK
You can then delete the summary field from the group footer
It will work and is useful if you want to sort by a summary like total sales which isn't a field in the data.
mlmcc
James0628
You're welcome.
FWIW, yeah, the group sort would work too, and it can be very useful. It wasn't necessary in this case, but it's something to keep in mind. You may need it later.
If so try this
Put the lastname field on the report in the detail section
Right click it
Click INSERT --> SUMMARY
Choose MAXIMUM or MINIMUM
Put the summary in the GF1
Delete the LASTNAME FIELD from the detail section
CLick REPORT --> GROUP SORT EXPERT
Click the dropdown and change NO SORT to ALL
Choose the SUMMARY field presented in the right box
Click OK
You can then delete the summary field from the group footer
mlmcc