Here's a problem I can't seem to get my head around.
I am creating a two lists of the orders placed each day, for the Shipping Dept. to pull the stock and send it.
For the overview version, I need to show just a count of products ordered, as in:
Item # Ordered (across all invoices)
ABC 3
EFG 14
MNO 10 etc.
So I've been grouping by Item#, counting on Item#, and hiding the details for the overview version of the report.
The detailed version looks like this: (Each invoice is allowed only one item)
Item Invoice No. Date
ABC 10009 12.13.01
ABC 10026 12.13.01
ABC 10028 12.13.01
total: 3
EFG 10014 12.13.01 etc……
HOWEVER. An Item# can represent a kit. An Item called XXK, which is a kit, may consist of one ABC and one EFG, for example. When this kit is ordered, my report is showing this:
Item Invoice No. Date
ABC 10012 12.13.01
total: 1
EFG 10012 12.13.01
total: 1
XXK 10012 12.13.01
total: 1
……which of course isn't accurate. I want to show just the XXY and show the count as one XXK. However, someone can also order an ABC or EFG on its own, so I can't just ignore invoices with those Item#'s attached to them.
Basically, what I need to say is that "if there is more than one record for Invoice No. 10012, only show me the one that has an Item# with a K at the end" (this is the only distinguishing feature of the kits). It would be easier if I was grouping on Invoice No., but grouping on Item# allows me to lay out the report as Shipping wants, and provides a neat way to do the overview report.
Maybe I'm missing an obvious solution? It seems so simple on paper …
I am creating a two lists of the orders placed each day, for the Shipping Dept. to pull the stock and send it.
For the overview version, I need to show just a count of products ordered, as in:
Item # Ordered (across all invoices)
ABC 3
EFG 14
MNO 10 etc.
So I've been grouping by Item#, counting on Item#, and hiding the details for the overview version of the report.
The detailed version looks like this: (Each invoice is allowed only one item)
Item Invoice No. Date
ABC 10009 12.13.01
ABC 10026 12.13.01
ABC 10028 12.13.01
total: 3
EFG 10014 12.13.01 etc……
HOWEVER. An Item# can represent a kit. An Item called XXK, which is a kit, may consist of one ABC and one EFG, for example. When this kit is ordered, my report is showing this:
Item Invoice No. Date
ABC 10012 12.13.01
total: 1
EFG 10012 12.13.01
total: 1
XXK 10012 12.13.01
total: 1
……which of course isn't accurate. I want to show just the XXY and show the count as one XXK. However, someone can also order an ABC or EFG on its own, so I can't just ignore invoices with those Item#'s attached to them.
Basically, what I need to say is that "if there is more than one record for Invoice No. 10012, only show me the one that has an Item# with a K at the end" (this is the only distinguishing feature of the kits). It would be easier if I was grouping on Invoice No., but grouping on Item# allows me to lay out the report as Shipping wants, and provides a neat way to do the overview report.
Maybe I'm missing an obvious solution? It seems so simple on paper …