Remove Duplicates in Crystal Reports (1 Viewer)

cybermatrix

New member
Local time
Today, 06:46
Joined
Oct 23, 2012
Messages
5
I need to be able to remove duplicates in a report. I have tried the different features such as Suppress if duplicated.

The report is showing everything to do with the client and I only want to show what is the current service the client is receiving.

Data looks like
CID, CName, CAddress, CService, CRoute, CBilling, CBalance
123, Bill, 123 Main, Mon3, 200, 39,0
123, Bill, 123 Main, Mon3, 200, 39,0
123, Bill, 123 Main, Mon3, 200, 39,0
123, Bill, 123 Main, Mon3, 200, 39,0
123, Bill, 123 Main, Mon3, 200, 39,0
123, Bill, 123 Main, Tue1, 200, 39,0

Want to only show only the last value as shown for each client
123, Bill, 123 Main, Mon3, 200, 39,0

You would think that Suppress if duplicated would work but it does not. And the value that might change could be the price or balance. It is not always the
CRoute that might changed.

The report shows over 150K rows of data and it really is only about 6K rows of data. The customer data is updated often and values can change. Some customer may have 2 - 3 current services but only started with 1 when they started.
 

kevlray

Registered User.
Local time
Today, 03:46
Joined
Apr 5, 2010
Messages
1,046
You need to find a way of grouping and put the data in the Group Footer and suppress the details. If the CID is unique, then that might be the best way to group.

I hope this helps.
 

cybermatrix

New member
Local time
Today, 06:46
Joined
Oct 23, 2012
Messages
5
Grouping did not work I tried that for this and I was able to figure it out. I went into the database table linking area and removed some of the links to different tables and created a few new ones and it worked like a charm.

Thanks for the reply.
 

kevlray

Registered User.
Local time
Today, 03:46
Joined
Apr 5, 2010
Messages
1,046
Getting the links right will take care of a lot of issues. Glad you were able to find a solution.
 

Mohanbabu.Pandari

New member
Local time
Today, 16:16
Joined
Apr 26, 2013
Messages
3
Enable "select Distinct Records" option in File >>Report Options.

Thanks
Mohanbabu Pandari
 

Users who are viewing this thread

Top Bottom