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.

Count number of times text in single field

Featured Replies

I have a single field that contains a lot of text (its an output log from a computer system)

I want to set up a database that has several tables:

1 - output log (single field)

2 - table of lookup values (the actual text to count up in the log, and the part number that output refers to)

3 - Final list of part numbers and count of them

I want to do a loop for the table of lookup values - starting at the top - look for the specified text in the output log, and count up the number of times that text occurs in the log, if not move on to next part number

how would i do this?

Edited by Guest

The PatternCount function will tell you how many times a given string appears in another.

What I'd try is to create a calculation field in your lookup table:

_c_TermCount (number):)

PatternCount(Log::LogText; LookUpTerm)

[Log is your logfile name; LogText is the field with the log text in it; LookUpTerm is the field in the lookup table that has the term in it]

Now, place _c_TermCount and LookUpTerm on a list layout for the Lookup table. It should give you a summary of your lookup terms and their counts.

HTH,

David

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.