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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Duplicates

Status
Not open for further replies.

ADB1

Programmer
Aug 24, 2001
235
GB
I am trying to remove some duplicates from a list report. The actual row isn't duplicate but a part number columns shows multiple instances of the same part number. I want to only take the first row where the part number is the same, therefore removing trailing duplicate part number records.

I have used the formula below to identify duplicates:

=If Previous(<Part Number>) = <Part Number> Then "Dup" Else <Part Number>

But after this has ran you are not able to filter on the variable.

Has anybody found a workaround to this problem?

THanks.
 
Try to identify which instance you want to select, for example with the first date (orderdate, changedate, etc)
=If (<date>) = (max(<date> in <partnumber>)) Then "Dup" Else <Part Number>

You will not be able to use this as a filterm because this is an agregation function. As a work-around you can adjust the formula:

<user_variable>=If (<date>) = (max(<date> in <partnumber>)) Then 1 Else 0
after this apply a ranking on partnumber, with top <user_variable> values

or use create an variable in the universe to identify the first row an apply a filter on this.

 
Can you not apply a break on the report using the part number?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top