Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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


This topic is 5586 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

This topic is 5586 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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