Avatar of szadroga
szadroga
Flag for United States of America asked on

SSRS sorting or SQL order by a column by another column value

i am looking to filter data on 2 columns but one column sort would be based on another columns value.

For example, i want to filter by Severity ASC, then by lastname but want these results not alphabetical but by the values of hours worked in another column.  So the first lastname to appear would be the one that has worked the most hours.
Microsoft SQL Server 2008SSRS

Avatar of undefined
Last Comment
Brian Crowe

8/22/2022 - Mon
Brian Crowe

Why can't you just sort by the "hours worked"?  Why does lastname come into it at all?
szadroga

ASKER
looking for a "grouping" for lastname.  this way all the lastnames are together so you can see quickly how many tasks a person has charged time to.
ASKER CERTIFIED SOLUTION
Brian Crowe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes