Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group by one field, sort by another field 1

Status
Not open for further replies.

lesleycampbell

Technical User
Jun 21, 2013
59
US
I have a report that groups by the employee ID. I need the records returned to be in alphabetical order based on the employee name field. Help?
 
Hi Lesley

Create a formula that concatenates the ID and Name fields, something like:

Code:
{Table.Employee_LastName} + '/' + {Table.Employee_FirstName} + '/' + {Table.Employee_ID}

The inclusion of the ID field ensures unique groups even if two or more employees have the same First and Last names

Change the grouping to use this new formula, suppress/remove the Group Name and replace it with the Name fields.

Hope this helps

Cheers
Pete
 
Always include a delimiter in concatenated fields, like the slash in Pete's example.

Without delimiter ADAMSONJACK comes before ADAMSMICHEAL.

With the delimiter ADAMS/MICHAEL is before ADAMSON/JACK
 
Oops, too early in the morning. For that example to make sense Micheal should be Tom.
 
Charily

I adopted the use of delimiters after seeing one of your previous posts. I had not been caught out by circumstances you describe but it certainly could happen so is worth being prepared for. Have a star!!

Pete.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top