Jump 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 specific records in a Portal

Featured Replies

My portal lists all accounts owned by a specific customer. I want to create a field that will total the number of the ACTIVE accounts (elimiating the CLOSED ones).

The result I'm looking for is a number of ACTIVE accounts that I can use for billing.

In your related file create a calculation looks at whatever criteria are required for an account to be active and returns a value of 1 if those criteria are met. For simplicity's sake, let's assume your only criterion is a status field that has "Active" or "Inactive", your calculation, cFlag, would look like:

(fieldname="Active")

If the above condition is true, the calculation will return a 1, if not, a 0.

In your main file, create a calculation that looks through the relationship back to the related file and sums all the records whose cFlag equals 1. That calculation looks like:

Sum(relationship::cFlag)

  • Author

Thanks, John. I'll take a stab at implementing this later today.

~Shoil

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.