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.

How to compare values of same field in different portal rows

Featured Replies

Did not see anything addressing this, so I'll ask. I have a portal that is sorted on one field (Field1). I want to compare the values (dates) in Field2 between the first and second row in the portal and determine which is the earlier date. I don't use portals often enough to know if you can do calculations between fields on different rows. Any and all help is appreciated.

You can use GetNthRecord to compare the first and second rows, in a calc field, like this:

GetAsDate (

Max (

GetNthRecord ( [related date field] ; 1 ) ; GetNthRecord ( [related date field] ; 2 )

)

)

That will show you the later of the dates. Of course you can modify it to display something if the first is greater than the second, and so on. Does that help?

Why not sort on both fields in the portal setup, is it because the field actually is a typecast? But by and large are your questioning style not fully embraced, since it leaves too much place for various interpretations - what we need is context and purpose, otherwise will you arbitrary stabs of which might be what you need but can't be organized as proper learning...

--sd

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.