Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Identify Duplicate order numbers Post Reply Post New Topic
Page  of 2 Next >>
Author Message
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Topic: Identify Duplicate order numbers
     Posted: 13 Jul 2011 at 11:29pm
Hello,
 
Im having trouble with a report. I have tried the 'search' but nothing relates to my question.
 
I have a report which at the moment is laid out like this:
 
GROUP1 - CUSTOMER
DETAILS - Invoicenumber -  Inv Date - Stockcode - Quantity - Ordernumber
 
 
for example it will produce:
 
CUSTOMER A
I123456 - 13/07/2011 - PART01234895BVC - QTY x2 - ON/123456
 
 
Simple enough but the report has over 1000 lines, and I need to identify any duplicated order numbers?
 
 
the report is for one customer, and his orders comer through automatically from his website.
We are having a few teething problems with the datalinks, and sometimes he will get a confirmation saying that the ORDER HAS NOT REACHED US. but it actually has, therfore, he sends a manual order by email, which will result in 2 identical orders being delivered the next day.
 
this then causes us more work, in collecting the duplicated order from the customer, raising a credit note etc etc..
 
So, my aim here is to build a report that will identify these duplicate orders at the end of each working day, BEFORE they get loaded onto the vans by the night shift.
 
 
Any ideas?
 
 
Thanks in Advance!
 
Mike
 
 
Regards,

Michael Jones
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 14 Jul 2011 at 1:51am
you can create a 2nd group under customer by order number
then do a count on the order number- dont do distinct
then in the section expert you can supress
if count<=1
it should only display customers with the same order number 2x or more
sharona
IP IP Logged
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Posted: 14 Jul 2011 at 2:05am
Hey Sharona,
 
Thanks for the reply!
 
While I understand what you mean, and it seems like that is the answer,
 
How do I do a count? LOL, sorry for the newby question!!
 
I have never used the count function before!
 
 
Thanks
Regards,

Michael Jones
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 14 Jul 2011 at 2:43am
right click on the order number field
insert summary
select count on the customer group
 
right click on the order number section
section expert
in the formula box next to surpress
enter
count <=1
sharona
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 14 Jul 2011 at 2:43am
count will actually be your count summary
sharona
IP IP Logged
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Posted: 14 Jul 2011 at 2:56am
Hi, im getting somewhere!!!

ok,
 
if I count by the CUSTOMER GROUP, and supress as suggested, then it will return this data:

CUSTOMER A
on/123456
on/246810
on/789101
count = 3
CUSTOMER  B
on/36912
on/45154
count = 2
CUSTOMER C
CUSTOMER D
CUSTOMER E
 
etc etc...
 
do you think I should do the count on the ORDERNUMBER GROUP?
 
because if I do that way,
 
I get
 
CUSTOMER A
CUSTOMER B
CUSTOMER C
CUSTOMER D
CUSTOMER E
on/2345434
CUSTOMER F
 
 
and this order number is a duplicated one
 
 



 
Regards,

Michael Jones
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 14 Jul 2011 at 3:02am
yes, you can just drag the count summary to the order group
remove the surpression, check the data
and the add the surpression to the order group.
good catch!
sharona
IP IP Logged
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Posted: 14 Jul 2011 at 3:09am
brilliant! I think I have it sussed now!! (thanks to your wonderful help!!)
 
2 issues now:
 
1) If the customer orders more than 1 part on the same invoice, it will show as a duplication. ie;
 
on/123456
Part 2468    qty 2
part 3564    qty 2
 
this is easy to solve i think though, I can simply do a summary of QTY, and write a formula to say LINE TOTAL <> INVOICE TOTAL
 
2) How do I supress the CUSTOMERS who do not have a duplicate?
 
ie:
 
CUSTOMER A
CUSTOMER B
CUSTOMER C
CUSTOMER D
on/123456
CUSTOMER E
 
 
How do I just show CUSTOMER D in the report.?
 
 
Again, many thanks for your help on this!
 
 
Regards,
Regards,

Michael Jones
IP IP Logged
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Posted: 14 Jul 2011 at 3:12am
dont worry. solved it.. just simply use the same supression on the CUSTOMER GROUP
 
:D
 
You're a star!
 
If you wasn't so far away, id send you a box of chocolates!!!
 
Regards,

Michael Jones
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 14 Jul 2011 at 3:22am
thanks. glad i can help.
sharona
IP IP Logged
Page  of 2 Next >>
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum