Friends I have data this way
LPN SKU TYPE Date packs
123 231 PTS 10/7/2008 11:41:33 AM 1
123 141 CCS 10/9/2008 11:44:33 AM 2
123 221 BP 10/8/2008 11:44:33 AM 1
AS PTS type is having min date i wan tto sum the packs and show the count under it
like this way
PTS LPN COUNT PTS PACKS
1 4
Similarly if BP is having min date the count will go under it and so son
But in case dats is having type other those 3 types like this
LPN SKU TYPE Date packs
123 231 67 10/7/2008 11:41:33 AM 1
123 141 CCS 10/9/2008 11:44:33 AM 2
123 221 BP 10/8/2008 11:44:33 AM 1
I should not count this LPN or Packs in any of those, because 67 is having min date but if the data is like this
LPN SKU TYPE Date packs
123 231 BP 10/7/2008 11:41:33 AM 1
123 141 69 10/9/2008 11:44:33 AM 2
123 221 CCS 10/8/2008 11:44:33 AM 1
In this above case we should consider this count because BP has min dat, so basically if either of those 3 types(PTS,CCS,BP) have min date we should count or we should ignore it.
BP LPN COUNT BP PACKS
1 4
Any idea on this? how to achive this?. My optput will be like this
PTS LPNS PTS PACKS CCS LPNS CCSPACK BP LPNS BP PACKS
25 450 12 123 3 20
Thanks a ton.
V.
LPN SKU TYPE Date packs
123 231 PTS 10/7/2008 11:41:33 AM 1
123 141 CCS 10/9/2008 11:44:33 AM 2
123 221 BP 10/8/2008 11:44:33 AM 1
AS PTS type is having min date i wan tto sum the packs and show the count under it
like this way
PTS LPN COUNT PTS PACKS
1 4
Similarly if BP is having min date the count will go under it and so son
But in case dats is having type other those 3 types like this
LPN SKU TYPE Date packs
123 231 67 10/7/2008 11:41:33 AM 1
123 141 CCS 10/9/2008 11:44:33 AM 2
123 221 BP 10/8/2008 11:44:33 AM 1
I should not count this LPN or Packs in any of those, because 67 is having min date but if the data is like this
LPN SKU TYPE Date packs
123 231 BP 10/7/2008 11:41:33 AM 1
123 141 69 10/9/2008 11:44:33 AM 2
123 221 CCS 10/8/2008 11:44:33 AM 1
In this above case we should consider this count because BP has min dat, so basically if either of those 3 types(PTS,CCS,BP) have min date we should count or we should ignore it.
BP LPN COUNT BP PACKS
1 4
Any idea on this? how to achive this?. My optput will be like this
PTS LPNS PTS PACKS CCS LPNS CCSPACK BP LPNS BP PACKS
25 450 12 123 3 20
Thanks a ton.
V.