If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Ranking (tried a solution by John Spencer, but didn't work)
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 -- Emgee truly grateful... for help and to help |
#2
|
|||
|
|||
Ranking (tried a solution by John Spencer, but didn't work)
Please disregard the below. I used a solution provided by John Spencer in
another thread (using my data) and it worked. -- Emgee truly grateful... for help and to help "Emgee" wrote: 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 -- Emgee truly grateful... for help and to help |
Thread Tools | |
Display Modes | |
|
|