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.

Using the closest match during a lookup not the next highest or lowest

Featured Replies

When i am doing a lookup how can use the closest match not the next higher or lower.

 

For example 

 

I have two fields:

 

1) Version

2) Service Pack

 

I run a lookup that takes the version number from one table and gets the match from the next table and copies the Service Pack.

 

In the case that there is no match i am forced to use either the next higher value or next lower value.

 

I want to choose the closest value be it higher or lower. How can i do that?

 

Thanks again!

 

-Erik

I want to choose the closest value be it higher or lower. How can i do that?

 

Use a calculation field, not a lookup. Get both the next higher and next lower values, using the LookupNext() function, and select the one that's closer to the original value.

 

IIUC, you want to get the closest version number first - then use that to lookup (or just display) the Service Pack, using a second relationship based on the calculation field.

 

Edited by comment

Create an account or sign in to comment

Important Information

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

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.