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 Dupes, display top ten

Featured Replies

I have a DB that has duplicates in it. I need to be able to display the top ten records with most duplicates. Not sure if this enough info. Working on other issues right now, just trying to get a jump for when I dive into this one.

Create a calc field (cDupKey) to concat all the fields that you want to check what at a duplicate is.

Create a Self Join relationship based off this new calc field. 'SelfJoin::cDupKey'

Have a new calc field (cDupNum) with formula Count (SelfJoin::cDupKey).

Then you can create a script that does the following:

Show All Records

Sort cDupNum by Descending Order

Go to Record/Request [First]

Omit Multiple Records [10]

Show omitted Only

  • Author

Cool, sounds good. will try that. Thank you.

  • 2 weeks later...
  • Author

Ok, started to actually work on this issue, not really sure how to set up the pervious suggestion. I have users that submit recipes, I need to be able to display the top 5 submiters. So I need to figure out how to check for dupes, sort according to hightest dupes. and omit all after. I need to display all 5 in a window.

So I need to figure out how to check for dupes, sort according to hightest dupes. and omit all after. I need to display all 5 in a window.

What, of John's suggestions, did you try? And what didn't work for you? The only thing not explained was the new window and that would be adding the following to the beginning of John's script of:

New Window [ bla bla ]

  • Author

Create a calc field (cDupKey) to concat all the fields that you want to check what at a duplicate is.

Basically, I am having problems understanding the very first part. If I can get a handle on what "concat" means and get this done, then I believe I understand the rest. I have only one field that I need to check for dup.

Easier then ... just join that field to itself. A concatenated field means combining all the fields which make up the duplicate into a text calculation thus: Field1 & " " & Field2 etc. But since you only have one field, just use IT instead (in your join). :wink2:

From the Online Help. Keywords [color:blue]Text operators

& = Concatenate

Appends the text string on the right to the end of the text string on the left. Text strings can be fields, constants enclosed in quotes, or certain functions.

HTH

Lee

  • 1 month later...
  • Author

Making Progress, Here is what I have done;

Created following Fields:

Created a Self Join relationship "URL Staging Area::Domain Name"

cDupDomain = Calc, Unstored, From URL Staging Area, = Sum (Domain Dupes::One)

One = Calc, from URL Staging Area, = 1

SumOne = Summary = Total of One

I will just attach jpg's of both the scripts and result.

Just want one of each record to display, and would like to have in a portal.

If this sounds incohent.. due to major lack of sleep..

Dupe_Script.JPG

Dupe_result.JPG

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.