Jump to content
Sign in to follow this  

Two calculations for one field

Recommended Posts


I have a field, that returns a calculated value for a person’s age, using the calculation:

(Date of procedure - Date of birth) / 365

I would like the number in the age field to turn (for example) red if the persons age is over 70 yrs old, or under 1 year old.

I have tried adding:

Case (persons age>70; TextColor (persons age ; RGB (255 ; 0 ; 0 ) ); Evaluate ( persons age ) )

But my attempts fail, mostly FileMaker says there is a “operator missing”

Could someone please help with the next step to follow my existing calculation?


Share this post

Link to post
Share on other sites

How about simply:

Let (

age = ( Date of procedure - Date of birth ) / 365


Case ( age < 1 or age > 70 ; TextColor ( age ; RGB ( 255 ; 0 ; 0 ) ) ; age )


BTW, to calculate the approximate age you should use 365.2425 instead of 365 (leap years!) - or use the formula here to determine the exact age:


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

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