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

Ranking Records

Status
Not open for further replies.

bernie10

Technical User
Sep 13, 2004
219
US
Hello all,
I have a report that looks as follows:

Commodity Manufacturer Price
1 Company1 $5.00
Company2 $6.50
2 Company2 $3.50
Company3 $7.00
Company5 $7.50
3 Company2 $3.20
Company1 $4.50

(so forth...)

I need to add an additional column called rank which will rank each manufacturer's price for each commodity. So my new table needs to look like:

Commodity Manufacturer Price Rank
1 Company1 $5.00 1
Company2 $6.50 2
2 Company2 $3.50 1
Company3 $7.00 2
Company5 $7.50 3
3 Company2 $3.20 1
Company1 $4.50 2

I am not sure how to get the number in the rank column to start over after each new commodity. Records are grouped by commodity and then sorted by price. Any help or suggestions would be appreciated.

Thanks,
CM
 
My apologies, I figured it out myself.

I put a textbox on the report with a running sum over group.

Thanks,
CM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top