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 Value List Item

Featured Replies

Hello All,

I am new here and looking for a little help on a problem. I have a database with one table in it called "Leads V1.2".

I want to create a field with a calculation that will count how many times a value is selected from a drop down field called "Confirmed Results". IE. I have a field (drop down) that is called "Confirmed Results" That field is populated with a value list called "Confirmed Results". This value list has a value called "Confirmed". I then created a calculation field where I used the commands

Count ( "Confirm Result" ; ValueListItems ( "Confirmed Results" ; "Confirmed" ))

. But this is not working. I hope I provided enough detail to get the point across of what I am trying to do. So what am i missing here and how do I create a field that will count how many times "Confirmed" is entered into the field "Confirmed Results" TIA for any help.

Matt

Use Ugo's method instead:

http://fmforums.com/forum/showpost.php?post/266487/

--sd

  • Author

Thanks!

I don't think that achieves what I want though. I guess I should have been more specific in my OP. I need this to calculate for all records, for a summary of sorts I guess.

I'm not sure if this is what you're looking for or not.

1. Create text field with global storage (we call these globals) in your table.

2. Create a new table occurrence of your leads table, use the new global field in your original table occurance and link it to the "confirmed results" field.

3. Create a calculation field using the relationship you just created. For example:

CALC_confirmed_count

count(your_new_table_occurence_relationship_name::primary_key_of_table)

4. Type the value of whatever you want to "count" in your new global field (use a drop-down if you want), and the calculation field you just created should display the count.

If you upload a clone of your database we can fix this up real quickly for you.

  • Author

I think what you mentioned there just might work. Here is a clone of my DB.

Leads_V1.2_Copy.zip

Edited by Guest
Added File

Here you are. I noticed that you may only be interested in the "Confirmed" count, but this gives you a bit more flexibility, as you can search for the other confirmation types as well.

Leads_V1.2_Copy.zip

  • Author

That is awesome!! Thank you very much!

Is it? Two problems....

1) What happens if accidental scripting tampers with the global value?

2) Aggregate functions doesn't scale particular well, the rendering gets slow as molases if the number of records exceeds 2k ...

--sd

UgoTillYouDrop.zip

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.