D
daniel.bash
Hi,
I have a long list looking like this:
Box number Ship
date Dealer code
343
2008-12-12 SE1212
344
2008-12-12 SE1212
345
2008-12-12 SE1212
346
2008-12-12 SE1212
348
2008-12-12 SE1213
349
2008-12-12 SE1213
350
2008-12-12 SE1213
351
2008-12-12 SE1213
352
2008-12-12 SE1213
All boxes that have the same ship date and dealer code are shipped out
with the same shipment:
Box 344-346 => one shipment 2008-12-12 to SE1212
Box 348-352 => one shipment 2008-12-12 to SE1213
What I am trying to do is to see how many times a dealer received a
shipment per month.
I have tried to make a pivot table, but soon realised that in the
pivot table I could only get the count of boxes per month. Not the
count of shipments per month.
I would like to remove all but one box per dealer per day in my data
in order to create the correct pivot table (shipments/dealer/month).
Above example would then be shown as:
Box number Ship
date Dealer code
343
2008-12-12 SE1212
352
2008-12-12 SE1213
Does anyone know how to do this? Or have a solution to my problem.
Much appreciated if I could get some help on this one (I have been
scratching my head for a while...)
I have a long list looking like this:
Box number Ship
date Dealer code
343
2008-12-12 SE1212
344
2008-12-12 SE1212
345
2008-12-12 SE1212
346
2008-12-12 SE1212
348
2008-12-12 SE1213
349
2008-12-12 SE1213
350
2008-12-12 SE1213
351
2008-12-12 SE1213
352
2008-12-12 SE1213
All boxes that have the same ship date and dealer code are shipped out
with the same shipment:
Box 344-346 => one shipment 2008-12-12 to SE1212
Box 348-352 => one shipment 2008-12-12 to SE1213
What I am trying to do is to see how many times a dealer received a
shipment per month.
I have tried to make a pivot table, but soon realised that in the
pivot table I could only get the count of boxes per month. Not the
count of shipments per month.
I would like to remove all but one box per dealer per day in my data
in order to create the correct pivot table (shipments/dealer/month).
Above example would then be shown as:
Box number Ship
date Dealer code
343
2008-12-12 SE1212
352
2008-12-12 SE1213
Does anyone know how to do this? Or have a solution to my problem.
Much appreciated if I could get some help on this one (I have been
scratching my head for a while...)