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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group one field sort on another

Status
Not open for further replies.

huddy33

Technical User
Jan 24, 2011
24
US
I have a report that is first grouped by type (i.e. speaker, client, etc). Once that grouping is performed, the end user wants the report to sort by email if the type is a client or to sort by affiliation if the person is a speaker.

I cannot figure out a way to force the sort by a non-grouped field and grouping by that field doesn't seem to work either.

Ideas?

it needs to look like this:

Speaker (group header - ordered by Last Name)

Bob Jones Private Practice
Sarah Thomas Zane Dental


Client (group header - ordered by email, ascending)
Amy Parker amyparker@email.com
Hannah Boden hboden@email.com
 
Just create a formula {@sort2} that will be something like:

if {table.type} = "Speaker"
then {table.LastName}
else
if {table.type} = "Client"
then {table.email}
 
Well holy cow, Charliy, that worked perfectly. I must have been making it harder than it seemed. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top