×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!

*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

Top X report including Current and Prior Year

Top X report including Current and Prior Year

Top X report including Current and Prior Year

(OP)
What I need is a Top N report that shows the following:

Ship-To Name   CY Units  PY Units CY Dollars PY Dollars

where CY is Current Year and PY is Prior Year.  I have the report now where I have all of the data I need in the Group Footer but I want to only include the Top 200.  Since I have to originally group by Ship-To Name to get the totals I now want to subsequently sort by total fields that are the CY Dollars descending.  

I use the YearToDate and the LastYearYTD functions to get the proper values in the right buckets.  Can I perform a Top N sort by a subtotal field in the Group Footer or am I going about it the wrong way...

Thanks,
Bessebo

RE: Top X report including Current and Prior Year

To order groups by summary value:
Click Top N Expert on the Supplementary toolbar.
The Top N/Sort Group Expert dialog box appears with a tab for each of the groups in the report that has a summary.

Click the tab for the Ship-To group you want to sort by.
Select the All option from the drop-down list on the left.
Choose the summary that you want to base your selection on from the summary drop-down list on the right.

When you run the report, the program will order the groups based on the summary value you specified.

RE: Top X report including Current and Prior Year

(OP)
Yeah thanks.  I figured it out right after I posted it and it works like a charm...

Thank You,
Bessebo

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