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 the individual words using index

Featured Replies

  • Newbies

Hello,

I am having trouble in getting FM5.5 to count the individual words in a field for a number of records, ie:

If I have a field called colours and the first four records looked like this....

Red, Blue, Green, Grey

Red

Red

Purple, Green, Brown

Now if I use the "Index" function I get a list of all the individual words and I can get a field count for each record but what I need is how many times each word appears even separated by a comma.

Therefore, I would like to do is count each of the words that appear so that I get something that looks like this:

Red 3

Blue 1

Green 2

Grey 1

Purple 1

Brown 1

Any help would be greatly appreciated

Thank you smile.gif

Put the individual colours into related fields (through a portal) so each related record has one colour entry, then make a summary report to get the totals out.

It can be done with multiple values in a field (as you have above) but the calculations needed to get the numbers out are ugly, partly because the names of the colours need to be hard-coded. You might also need one calc field per colour, which means adding colors is major surgery.

  • Author
  • Newbies

Thanks for your help Vaughan smile.gif,

I used colours as an example, two date I have created a field that stores a variety of names, some being one offs but the majority are in comma separated lines. To date for instance I have 3200 separate records with a large variety names. The names are related to photographs in each record, thus containging more than one name sometimes.

I had hoped this would be relatively simple, as I can get a list real easy using the index mode and was hoping FileMaker had a command that would return the result with a quick formula. tongue.gif

Michael

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.