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.

Conditional Counting of Portal Rows

Featured Replies

Hi,

I have a portal which tracks client sessions by date. The portal is within a client details layout. One of the field on this layout is "health plan date" (a date field).

What I would like to do is have a calc field which displays the number of sessions a client has had since the health plan date.

Another words how many portal rows display sessions dated at or later than the date displayed in the "health plan date" field

Can this be done with the count function?

Thanks

  • Author

O.K. - figured it out via a relationship.

Still would like to know if there is a way of doing this with a calc field.

With two calc fields:

One in the Sessions table (result is Number) =

SessionDate ≥ Clients::health plan date

The other in the Clients table, using Sum ( Sessions::calcField )

Or you could write a custom function to recurse over the child records, using the GetNthRecord() function.

  • Author

Comment - Thanks for taking the time to answer my question.

Seems obvious with hindsight :

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.