Skip to main content

Find age at given time from lookups

  • July 9, 2018
  • 2 replies
  • 31 views

Forum|alt.badge.img+3

I am working on a movie database. One of the things I would like to do is show the age of the actor at the time of each film. I currently have a lookup that pulls the film year to the actor from the film table, and the actor age on their table. The issue is some actors obviously have done films in multiple years.

Any thoughts of a way to get the age at each film?

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+17
  • Inspiring
  • July 9, 2018

I’m not sure how your table is structured but it as long as you can get the movie’s {Date of Production} and the actor’s {Date of Birth} into the same table, the formula would be as follows:
DATETIME_DIFF({Date of Birth}, {Date of Production}, 'years')
If you only list the {Year of Production}, then formula would be as follows:
DATETIME_DIFF({Date of Birth}, DATETIME_PARSE({Year of Production},'YYYY'), 'years')


Forum|alt.badge.img+17