Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Sorting ADP Report

Sorting ADP Report

Sorting ADP Report

I have an Stored Procedure that I am using to gather variables and use them as criteria for my report.  My Stored Procedure is looking at invoice level data, meaning a record for each line on an invoice.  The Stored Procedure is working great.  

When I get to the report I want to the report I want to group the records into Customer Groups, Customers and them Items.  I can do this by using the Group/Sorting option and mark the "Detail" section as not visible.  So far not a problem...

I need to soft the report by Customer Group's total sales.  I don't think it should be too hard but I can not figure out how to group by Customer Group, but sort these groups by sales.

Any Suggestions?

RE: Sorting ADP Report

In the Grouping/Sorting dialog, place the Sort before the Group...

However, if you have totals calculated in the report, that won't work and you'll need them calculated somehow in the stored proc.


Daniel Vlas
Systems Consultant


RE: Sorting ADP Report


Thank you.  I was able to get the stored procedure to calculate the totals so I can sort on them.  Looking at the Sorting and Grouping dialog box I am not sure how to "place the sort before the group".

Thanks Again,


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close