Ranking (tried a solution by John Spencer, but didn't work)

E

Emgee

This is my current table "allunitbatch". Want to automatically rank the
batch Ids within each MD Batch Id group so it gives the results shown in the
Rank column below.

Batch Id MD Batch Id Rank
APPL-MOM-309-07-01 APPL-MOM-309 1
BANA-HTL-120-06-01 BANA-HTL-120 1
BANA-HTL-120-07-01 BANA-HTL-120 2
CHER-INF-142-07-02 CHER-INF-142 3
CHER-INF-142-06-01 CHER-INF-142 1
CHER-INF-142-07-01 CHER-INF-142 2

Tried the following as a calculated field but it didn't work:
Rank: DCount("*","allunitbatch","MD Batch Id = """ & [MD Batch Id] & """ and
Batch Id >" & Batch Id) + 1
 
E

Emgee

Please disregard the below. I used a solution provided by John Spencer in
another thread (using my data) and it worked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top