PatchesPete
Technical User
I need to know the first bin location a part was put in. Part can have multiple detail lines. Sample detail:
DETAIL
PART NAME DATE LOCATION
1 PART_1 1/1/2012 BIN_4
1 PART_1 2/1/2012 BIN_4
1 PART_1 4/1/2012 BIN_4
1 PART_1 6/1/2012 BIN_5
1 PART_1 7/1/2012 BIN_6
2 PART_2 4/1/2012 BIN_1
2 PART_2 5/1/2012 BIN_3
3 PART_3 1/1/2012 BIN_4
3 PART_3 2/1/2012 BIN_12
3 PART_3 4/1/2012 BIN_4
3 PART_3 6/1/2012 BIN_1
3 PART_3 7/1/2012 BIN_6
I created one group when PART changes and took the minimum of the DATE to produce a GH1 similar to this that shows the first bin that part was ever in:
PART NAME DATE LOCATION
1 PART_1 1/1/2012 BIN_4
2 PART_2 4/1/2012 BIN_1
3 PART_3 1/1/2012 BIN_4
Now I want to count how many PART numbers are in each first bin to get results similar to this:
BIN_4 2
BIN_1 1
TOTAL 3
I can't use Running Total Fields because there could be hundreds of bins. I have tried many things and always come up with totals that also count the detail lines.
Any suggestions on how I can just get:
BIN_4 2
BIN_1 1
TOTAL 3
Any assistance is appreciated.
Thanks.
DETAIL
PART NAME DATE LOCATION
1 PART_1 1/1/2012 BIN_4
1 PART_1 2/1/2012 BIN_4
1 PART_1 4/1/2012 BIN_4
1 PART_1 6/1/2012 BIN_5
1 PART_1 7/1/2012 BIN_6
2 PART_2 4/1/2012 BIN_1
2 PART_2 5/1/2012 BIN_3
3 PART_3 1/1/2012 BIN_4
3 PART_3 2/1/2012 BIN_12
3 PART_3 4/1/2012 BIN_4
3 PART_3 6/1/2012 BIN_1
3 PART_3 7/1/2012 BIN_6
I created one group when PART changes and took the minimum of the DATE to produce a GH1 similar to this that shows the first bin that part was ever in:
PART NAME DATE LOCATION
1 PART_1 1/1/2012 BIN_4
2 PART_2 4/1/2012 BIN_1
3 PART_3 1/1/2012 BIN_4
Now I want to count how many PART numbers are in each first bin to get results similar to this:
BIN_4 2
BIN_1 1
TOTAL 3
I can't use Running Total Fields because there could be hundreds of bins. I have tried many things and always come up with totals that also count the detail lines.
Any suggestions on how I can just get:
BIN_4 2
BIN_1 1
TOTAL 3
Any assistance is appreciated.
Thanks.