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 records

Featured Replies

Hi , the following is very simple just can't to the bottom of it

i have a field which has a value of a color.

i want to get the found count of the record but it should only count every color once meaning 

record 1 - red

record 2 - green

record 3 - blue

record 4 - green

 

my result should be 3

i would appreciate if someone could help me out on this.

Edited by H

If you created a summary field (sListColor), 'list of' with your color field (YourTable::color field) you would get:

red

green

blue

green 

for your summary field based on your found set.

Then the expression, once again based on your found set of records:

valuecount(UniqueValues (YourTable::sListColor ))

would return 3.

You could also do this with a one row, one field self join portal, or if you wanted to skip all that, you could use a SQL statement (which I couldn't figure out, but probably easy for one of the developers).

Edited by Steve Martino
additional info

@bcooney  Barbara, can you (how would you) use the statement on a found set?

ValueCount(ExecuteSQL ( "SELECT DISTINCT yourField 
FROM YourTable "; "" ; "" ))

Steve

Edited by Steve Martino

Op didn't mention a a found set. If so, I wouldn't use sql. 

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.