Skip 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.

Counting identically-populated fields

Featured Replies

A tale of two tables.....

Table #1 has a number of fields in it, including one called "Software Link" (number field) which is relevant to this question.

Table #2 has two fields in it, one called "Software Connection" (number field) and the other called "Software Count" (calculation field).

Table #1 has a few hundred records. The "Software Link" field on each record is populated by a number with up to three digits (and it's not unreasonable to think that it'll go up to four or maybe even five in the future).

What I need is a calculation for the "Software Count" field that will tell me how many times the value in "Software Connection" appears in "Software Link".

I tried doing a patterncount but it didn't work. When "Software Connection" was set to 5, "Software Count" would count records such as 5, 15, 52, etc. That's not what I want.

I *know* this is simple but I'll be damned if I can't figure it out.

I could be wrong, but this seems simple. If you had a relationship between the two tables, based on Software Connection to Software Link, you could just count the relationship:

Count ( relationship::Software Link) // or any field that always has data

A relationship is always an "exact" match for (any line of) the key. The calculation would be an unstored field.

  • Author

There's no direct relationship between the two tables; there's one table between them.

Happily, however, I found a formula that works. :P

If ( (Software Connection = Software Link) ; Count ( Software Link) ; "" )

Works like a charm.

There's no direct relationship between the two tables; there's one table between them.

Happily, however, I found a formula that works. :

If ( (Software Connection = Software Link) ; Count ( Software Link) ; "" )

Works like a charm.

Case is better, you do not need the final no-match term.

case (

Software Connection = Software Link ;

Count ( Software Link)

)

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.