Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Find only one record amonst duplicates

Featured Replies

Hi all,

I want to find/keep only one record of recurring duplicates-please see attatched.

In column RF node, the first 3 records are all the same-I want to get to a point where I only keep the first one of the 3.The next 3 again are all the same-I only want to keep one.The next 8 are the same-I only want to keep one-and so on.

Could somebody advise me on the best way to do this-the aim is to have an exportable summary file that contains only one record of each, rather than multiples.

Thanks

Sandy

testfile.zip

  • Author

Ok-I've found out what my mistake was.Thanks for the help :-)

Sandy

What if you choose the last of the 3 identical records instead??? Then could this be used:

http://www.fmforums.com/threads/download.php?Number=133778

The problem with the other method is that the search is unindexed due to the involved relation, and if you tag every record in the file, is it definately going to take some time. The method I suggest works best when the number of dupes are large, since my script only handles the record on both sides of the break values - But often are you not allowed to make scripted replaces in a networked solution!

--sd

the aim is to have an exportable summary file that contains only one record of each

Ah I've just figured out, that Export summaries STILL exists with 7 (called group by) but you're on 6 so it's probably called Summarize by..., if you have a summary field in you file like I have - will the export dialog have an extra feature if the data to get exported has been sorted - So the recipee is make a summaryfield Count( on the RF node field. I made a test and it boils you data of 200 records down to 52 records.

So Ugo excellent solution ....unfortunaly is it to the wrong task!

--sd

  • Author

Soren,

Many thanks for the response-I've been playing with the solutions offered above and it all seems to work.But I'd like to throw down a challenge-is it possible to use or adapt any of these to get, where possible, 2 duplicates, rather than the one? The reason is , as you've mentioned, the " boil" number can be quite low, especially on those sheets where the original record number is low to start with.And I only have FP6 so I dont know if the above file will work for me :-(

Thanks

Sandy

Relationship::field refers to the first related field according to a relationship's sort order. So if you define a relationship to sort in a specific order, say by boil number descending, then the record marked as unique will be the one with the largest boil number value. Perhaps this will help you.

The solution works the same in 6 as it does in 7. serial = selfrelationship::serial is the calculation for both.

  • Author

Fenton,

Works like a charm-thank you very much.Thanks to all who responded.

Sandy

I could imagine the thrill it is to make a bunch of crafty developer jumping hoops, but what the h... is the purpose?? ....and what if no dupes exists - is it the idea to dupe the singled out record?? a sync'ing of the two is an apparent problem. Is this a system like the one Jon Rosen had up in Advisor several years ago, to prevent recordlocking ...say when a collegue leaves his computer for lunchbreak with the cursor right in a records field???

--sd

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.