I would like to have a diagram line with Birth Date, but configured in a way, where there is "YEAR PLACE" text only when date is precisely known and "YEAR1 - YEAR2 PLACE" where data is know approximately or given as a "between" period.
Example:
birth is entered as between 1850-1870 in City
or
birth is entered as 15 May 1866 in City
In the first case I should have text like this: "1850-1870, City"
in the 2nd case there should be text like: "1866, City".
I cannot do that for some reason. I get up to the formula:
Code: Select all
=TextIf(%INDI.BIRT.DATE:XDATE1%=%INDI.BIRT.DATE:XDATE2%,%INDI.BIRT.DATE:XDATE1%,Text(%INDI.BIRT.DATE:XDATE1%."-".%INDI.BIRT.DATE:XDATE2%))Code: Select all
=TextIf(%INDI.BIRT.DATE:XDATE1%=%INDI.BIRT.DATE:XDATE2%,%INDI.BIRT.DATE:XDATE1%,%INDI.BIRT.DATE:ABBREV4%)How to make this simpler and working?
INSTANT EDIT: I've found the formula:
Code: Select all
=TextIf(%INDI.BIRT.DATE:XDATE1% = %INDI.BIRT.DATE:XDATE2%,Year(%INDI.BIRT.DATE:XDATE1%),%INDI.BIRT.DATE:ABBREV4%)and my expression prints:Born: btw 1825 and 1835 in Ławaryszki
while for precise dates:1825-1835, Ławaryszki
and my exp:Born: Feb 18, 1919 in Ławaryszki
which seems to be working, but is it OK? Can't it be simpler?1919, Ławaryszki