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.

Calculation to return contents of different fields in dfferent records

Featured Replies

I have a table with field 1, field 2, field 3. I am trying to figure out a calculation to return either field 1, 2, or 3 based on other field values in another table. This is kind of like picking values out of matrix where the vertical is the records and the horizontal is the field 1, 2, 3 in each record.

Does anybody have any experience with this?

Have your tried the case or choose function? Assuming the two tables are related together and the expression returns an integer beginning with zero:

Choose( tableb::field1 ; tablea::field1 ; tablea::field2 ; tablea::field3 )

Note how difficult this is to understand then tables are fields d not relate to anything real. Next time use real entities please.

As Vaughan says, it would be best to describe what this is about. In general, a table with multiple fields for the same thing is poorly structured. It would probably be best to have a separate record for each value (perhaps in another table) and use a relationship with two predicates to pick the correct record.

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.