Filter people by birthday.

Started by hamishr, May 13, 2024, 07:52:21 AM

Previous topic - Next topic

hamishr

I would like to be able to see which people in my IMatch database were born on a particular day of the year (i.e. People birth month and birth day are the same but birth year might vary). How can I do this?

mopperle

Where/how are the birth dates stored?

Mario

If the OP has entered the birthday for persons in the Person Editor, the birthday is available in the {File.Persons.DOB} variable. See Persons. Variables for a list of all Person variables.

You can e.g. use a variable like {File.Persons.DOB|substr:5,5} to group persons in a data-driven category by the month and day thy were born. For example:

1950-06-11 => 06-11
2004-05-21 => 05-21

A category based on this variable produces one entry for each unique combination of month and day (aka birthdays).

If you are only interested in specific values, you can use the filter option for the data-driven category to remove unwanted entries.

See Data-driven Categories Based on Variables for more information.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hamishr

Thank-you Mario, this is helpful. From what you have written, I have successfully created data-driven birthday categories (e.g. 05-13) and this then shows the images that are linked to people that match that birthday. It is usually relatively easy to work out from this who has a birthday on that date, although it gets confusing when multiple people are indexed for images or where a specific person has hundreds of images and swamps any other people who might also have the same birthday. 

I could index a specific portrait image for each person, e.g. Category: Main_portrait = 1, and then filter to show only images with Main_portrait = 1 but this would involve a lot of work. 

If there was a variable for the image used for the cover image of the person this could work as a filter, provided this image was only of one person. 

The ideal would be to filter listed people in the People tab to only show those with a specific birthday.

One work-around would be to include the birthday in one of the People text fields and then find it in the filter field. This works well and also pulls out other anniversaries like marriage dates - but it does involve duplication of information.

I would be grateful for any further suggestions.

Mario

Feel free to add a feature request. This will show us, if this would be of interest for a wider audience.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook