I have data that shows me Product ID, Date appeared on report and quantity of product. I want to understand that if the product appeared on the report for X days (excluding weekends) then there was a break in the date trend (ie a weeks gap), then appeared again, how I can count the amount of times that item has appeared?
So the product may appear (repeat) on the report 10 times but the date trend has only happened once, twice or more occasions. This would show if I have a problem with a product continually being identified as "out of stock".
[TABLE="width: 211"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Item Code[/TD]
[TD]CurrentDte[/TD]
[TD]Σ In Market BO Qty[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]06/08/2018[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]07/08/2018[/TD]
[TD="align: right"]581[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]08/08/2018[/TD]
[TD="align: right"]688[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]09/08/2018[/TD]
[TD="align: right"]641[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]10/08/2018[/TD]
[TD="align: right"]647[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]13/08/2018[/TD]
[TD="align: right"]674[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]14/08/2018[/TD]
[TD="align: right"]703[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]15/08/2018[/TD]
[TD="align: right"]730[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]16/08/2018[/TD]
[TD="align: right"]743[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]17/08/2018[/TD]
[TD="align: right"]765[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]31/08/2018[/TD]
[TD="align: right"]44[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]03/09/2018[/TD]
[TD="align: right"]181[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD="align: right"]265[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD="align: right"]539[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]06/09/2018[/TD]
[TD="align: right"]601[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]06/08/2018[/TD]
[TD="align: right"]897[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]07/08/2018[/TD]
[TD="align: right"]1266[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]08/08/2018[/TD]
[TD="align: right"]2353[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]09/08/2018[/TD]
[TD="align: right"]1699[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]10/08/2018[/TD]
[TD="align: right"]3124[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]13/08/2018[/TD]
[TD="align: right"]3523[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]14/08/2018[/TD]
[TD="align: right"]3696[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]15/08/2018[/TD]
[TD="align: right"]3960[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]16/08/2018[/TD]
[TD="align: right"]3967[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]17/08/2018[/TD]
[TD="align: right"]4436[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]23/08/2018[/TD]
[TD="align: right"]167[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]29/08/2018[/TD]
[TD="align: right"]325[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]30/08/2018[/TD]
[TD="align: right"]2009[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]31/08/2018[/TD]
[TD="align: right"]2089[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]03/09/2018[/TD]
[TD="align: right"]2609[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD="align: right"]3890[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD="align: right"]4480[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]06/09/2018[/TD]
[TD="align: right"]4507[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD="align: right"]4972[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]11/09/2018[/TD]
[TD="align: right"]5480[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]12/09/2018[/TD]
[TD="align: right"]5960[/TD]
[/TR]
</tbody>[/TABLE]
So the product may appear (repeat) on the report 10 times but the date trend has only happened once, twice or more occasions. This would show if I have a problem with a product continually being identified as "out of stock".
[TABLE="width: 211"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Item Code[/TD]
[TD]CurrentDte[/TD]
[TD]Σ In Market BO Qty[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]06/08/2018[/TD]
[TD="align: right"]1000[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]07/08/2018[/TD]
[TD="align: right"]581[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]08/08/2018[/TD]
[TD="align: right"]688[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]09/08/2018[/TD]
[TD="align: right"]641[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]10/08/2018[/TD]
[TD="align: right"]647[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]13/08/2018[/TD]
[TD="align: right"]674[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]14/08/2018[/TD]
[TD="align: right"]703[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]15/08/2018[/TD]
[TD="align: right"]730[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]16/08/2018[/TD]
[TD="align: right"]743[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]17/08/2018[/TD]
[TD="align: right"]765[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]31/08/2018[/TD]
[TD="align: right"]44[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]03/09/2018[/TD]
[TD="align: right"]181[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD="align: right"]265[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD="align: right"]539[/TD]
[/TR]
[TR]
[TD="align: right"]7456[/TD]
[TD="align: right"]06/09/2018[/TD]
[TD="align: right"]601[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]06/08/2018[/TD]
[TD="align: right"]897[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]07/08/2018[/TD]
[TD="align: right"]1266[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]08/08/2018[/TD]
[TD="align: right"]2353[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]09/08/2018[/TD]
[TD="align: right"]1699[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]10/08/2018[/TD]
[TD="align: right"]3124[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]13/08/2018[/TD]
[TD="align: right"]3523[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]14/08/2018[/TD]
[TD="align: right"]3696[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]15/08/2018[/TD]
[TD="align: right"]3960[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]16/08/2018[/TD]
[TD="align: right"]3967[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]17/08/2018[/TD]
[TD="align: right"]4436[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]23/08/2018[/TD]
[TD="align: right"]167[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]29/08/2018[/TD]
[TD="align: right"]325[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]30/08/2018[/TD]
[TD="align: right"]2009[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]31/08/2018[/TD]
[TD="align: right"]2089[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]03/09/2018[/TD]
[TD="align: right"]2609[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]04/09/2018[/TD]
[TD="align: right"]3890[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]05/09/2018[/TD]
[TD="align: right"]4480[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]06/09/2018[/TD]
[TD="align: right"]4507[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]10/09/2018[/TD]
[TD="align: right"]4972[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]11/09/2018[/TD]
[TD="align: right"]5480[/TD]
[/TR]
[TR]
[TD="align: right"]7457[/TD]
[TD="align: right"]12/09/2018[/TD]
[TD="align: right"]5960[/TD]
[/TR]
</tbody>[/TABLE]