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.

Sum Occurrence of Value Across Variables

Featured Replies

I am new to FMP7 and I am looking for a more elegant solution to the question below.

I have 3 variables with the values of a, b or c. I want to create a new variable that counts the number of times the value "c" occurs within a record.

I could create three new variables that issolate the "c" using the If and/or Case function and then create a variable that "counts" the number of "Cs" in the record but there must be a more effeicient way of doing this.

Also, is there a way to create mutiple new variables using scriptmaker so you don't have to "muscel" your way through the point and click menus, as you could using SPSS syntax?

Any help would be appreciated.

How is your database set up? These are fields you are referring to instead of variables?

P.S. Mod, can we move this to the appropriate forum?

Edited by Guest

  • Author

Its a single data base (table) with around 500,000 records. Sorry for the language confusion. Variable = Field.

Sorry for putting this up in the wrong forum.

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.