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 a field with the same text.

Featured Replies

I am trying to set up a field that will count how many times the same text in one field shows up in number of records in the data base.

Ex. In field "bldg ID" the field has "TGE-HWD" and then in another record there is the same type "TGE-HWD". I want a field that will count this a "2 times" and show that in one record.

  • 2 weeks later...

Hi!

1. Create a relation between bldg ID::bldg ID and name it selfrelation_1

2. Create a new field called ex. cal_occurr

Count(selfrelation_1::bldg ID)

This way you count all occurrencys of whatever content you have in bldg ID.

//thomas

this is actualy quite helpful for the survey I am trying to tabluate.

But here's MY question...

will his work for 466 different records? say I need to know how many times "macy's" shows up in "best department store" as well as "target" "goldsmith's" "Sears"

Thomas's solution will work for as many records as Filemaker can support.

Jerry

Hi!

QuinTech have a point, but with my solution you have to flip between records to find all totals of your possible entrys.

If you have a survey that you configured eg. voters can choose between "macy's", "target", "goldsmith's" and "Sear's" it's better to create a new layout called statistics (or something) and then you create 4 global (text) fields. Fill them (with server down) with the options, "macy's", and so on. Then create the relation between the global field and the text field (that containes the option you want to count. Then create cal_occur_macy, cal_occur_target and so on, same as before. These 4 cal_ fields you place on the new layout.

Rgds

thomas

Madapple,

It would be easier to use sub-summary parts with a summary count field, especially if you don't know ahead of time all the possible values.

i definately don't know ahead of time what the possible values are going to be.

So what exactly do you mean by sub-summary parts?

In layout mode, drag a part onto the screen and select Sub-summary when sorted by Best Department Store. Put the field for Best Department Store into that part, plus another field called CountOfStores. This field is a Summary field, count of StoreID (or whatever you're calling your ID field).

Now, go to Browse mode, find all records, and sort by Best Department Store. In Preview mode (and ONLY Preview mode) or on a printout you should see the stats you're looking for.

J

WONDERFUL!!!!!

Thank you very very much!

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.