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

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

Recommended Posts

Posted

There is a Calculation involving 6 Fields I do not seem to get the right combination to work.

I have a First Name and Last Name Field

A Spouse Field and a Spouse Deceased Field

and a Deceased Field.

Case ( Spouse > 0; First Name & " & " & Spouse & " " & Last Name;

Spouse > 0 and Deceased Sp = "" ;First Name & " & " & Spouse & " " & Last Name;

First Name > 0 ;Full Name

)

I cannot get it to display correctly

I need the first name last name if no spouse

First name & Spouse Name if there is a spouse

"I get this one to work right"

I then need a calc to give the first name last name if the spouse is deceased

I then need a calc to give spouse and last name if the person is deceased

Thanks in advance.

I do not seem to get the check boxs to change the out come of the calc.

The deceased fields are check boxes I am using "yes" as the value.

Posted

Try to think a little harder about the logical order. In your calc for example, [color:blue]Spouse > 0 and Deceased Sp = "" will never evaluate because when Spouse > 0 it will already have been handled by the first condition. I think what you want is this:


Case( 

/* I need the first name last name if no spouse */

  IsEmpty( Spouse ) ; First Name & " " & Last Name ; 



/* I then need a calc to give the first name last name if the spouse is deceased */

  Deceased Sp = "yes" ; First Name & " " & Last Name ; 



/* I then need a calc to give spouse and last name if the person is deceased */

  Deceased = "yes" ; Spouse & " " & Last Name ;



/* First name & Spouse Name if there is a spouse */

  First Name & " & " & Spouse & " " & Last Name

)

Posted

Try to think a little harder about the logical order. In your calc for example, [color:blue]Spouse > 0 and Deceased Sp = "" will never evaluate because when Spouse > 0 it will already have been handled by the first condition. I think what you want is this:


Case( 

/* I need the first name last name if no spouse */

  IsEmpty( Spouse ) ; First Name & " " & Last Name ; 



/* I then need a calc to give the first name last name if the spouse is deceased */

  Deceased Sp = "yes" ; First Name & " " & Last Name ; 



/* I then need a calc to give spouse and last name if the person is deceased */

  Deceased = "yes" ; Spouse & " " & Last Name ;



/* First name & Spouse Name if there is a spouse */

  First Name & " & " & Spouse & " " & Last Name

)

Thank you that is the best anyone has done to explain those calc

Thanks again.

This topic is 6068 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.