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.

Case(), when there are muliple related records - looking beyond the first record

Featured Replies

I'm a little stuck here. I'm trying to get a calculation to display a field from a particular related record, based on another field's content.

UR_NUMBERS(3 fields)

ur_id :( ur_hospital : ur_number

The ur_id = patient_id.

What the table could look like with one patient, but three hospitals and ur numbers:

1 : Hospital A : 123456

1 : Hospital B : abcdef

1 : Hostpial C : 654cba

I want to create a calculation, for where ur_hospital is Hospital A, display the corresponding ur_number (123456).

So far I have:

Case ( ur_numbers::ur_hospital = "Hospital A"; ur_numbers::ur_number)

However, this only works if Hospital A happens to have been created first. If I was to change this Case to "Hospital B", I get a blank result.

How can I make it look through all the records, instead of just going to the first related record only?

Define another relationship (using a second occurrence of the UR NUMBERS table), matching on both patient_id AND the hospital.

  • Author

Ahhh of course! Thank-you so much!

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.