* Full Dates vs. Year Only

Questions about creating, customising and using diagrams and charts
Post Reply
avatar
denisedmd
Newbie
Posts: 3
Joined: 18 Mar 2024 16:40
Family Historian: V7

Full Dates vs. Year Only

Post by denisedmd »

Is it possible to display full dates of birth/dates of death for deceased people only. For living, show only birth year?
User avatar
tatewise
Megastar
Posts: 28486
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Full Dates vs. Year Only

Post by tatewise »

Welcome to the FHUG.

Yes, that should be possible by creating a custom Diagram Text Scheme.
The crux decision is how to determine whether a person is living or not.
The easiest way is to ensure all the living people have a Living Record Flag attached.
The reason that makes it easy is that each Diagram Text Scheme Item has a built-in test for Record Flags.

So the basic process is to use the Diagram > Options > Text tab, select the most appropriate Text Scheme, and click the Clone... button to create a custom copy, then use the Edit Text Scheme... button.
Create a copy of the Birth Item and make one conditional on the Living Flag being set and the other on the Living Flag not being set.
Finally, adjust the Date of the first one to only display the Year.

If you need more specific details then ask again.

If you need to know how to add the Living Record Flag to all living people then ask again.

If you want to avoid using the lIving Record Flag and just test whether a Death Event exists instead then ask again.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
denisedmd
Newbie
Posts: 3
Joined: 18 Mar 2024 16:40
Family Historian: V7

Re: Full Dates vs. Year Only

Post by denisedmd »

Thank you for the quick response. It makes sense. However, I'm not a computer programmer and can't find/understand the syntax to do the conditional formula as you suggest.

I'm assuming it's something along the lines of IF (Living) display (Birth Year), ELSE, display (Birth full). At current, I don't understand the operators being used in this software. Does anyone have an example of what this should look like in the custom text scheme?

Many thanks, I've been spending hours trying to sort this out, and can't get there ...
User avatar
tatewise
Megastar
Posts: 28486
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Full Dates vs. Year Only

Post by tatewise »

No computer programming is required. Don't spend so long struggling - just ask.

As I said, the Items have a built-in test for Record Flags.
You need two Birth Items one for flag set and one for not set.
In the Template replace the C in CT by Y to display the Year instead of a Compact date.
See the Help for the =FactText(...) function for that explanation.

image.png
image.png (57.22 KiB) Viewed 212 times
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
denisedmd
Newbie
Posts: 3
Joined: 18 Mar 2024 16:40
Family Historian: V7

Re: Full Dates vs. Year Only

Post by denisedmd »

Thank you so very much! I'm certain I wouldn't have figured this out on my own. Appreciate your help immensely.
Post Reply