Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Duplicates within multiple Groups 1

Status
Not open for further replies.

mainmandeano

IS-IT--Management
Jun 3, 2009
2
GB
Group 1
Storecode

Group 2
OrderNumber

Group 3
ProductCode

Hi I'm hoping someone can help me.
My problem is that there are sometimes multiple orders for each store on the same date.
Duplicate products are sometimes ordered when this happens.
The report is planned to show duplicate usage of the product codes for each store.
The part I think it's falling short is getting the formula to work across two or more order numbers.

For example:
Store 23, order number 2, orders product x
then
Store 23, order number 3, orders product x

Maybe because of the different order number it does not pick up as a Duplicate value?


//Dupes placed in Group 3 Footer
if Count ({ProductCode}, {ProductCode}) > 1 then "Faults!!" else "Fine!"
 
I would use a distinct cout RT and then compare with your count in store footer.

if Count ({ProductCode}, {Store}) <> {distinctproductcountstore} then "Faults!!" else "Fine!"

If that is not precise enough you will need to remove your order number group.

And place this in product code group footer.

if Count ({ProductCode}, {Productcode}) <> {distinctproductcountprod} then "Faults!!" else "Fine!"

Ian

 
That's great Ian, I'm now getting alerted to Duplicates.

Many Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top