custom dates for btw and non btw combination
Posted: 12 Sep 2018 00:44
Hi,
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:
But it doen't work; however, the simpler, single formula in the "false" part of TextIf works:
but it works as I like only when dates are entered only with year. Precise dates like in the example above show full date which is not desired.
How to make this simpler and working?
INSTANT EDIT: I've found the formula:
now, the default birth for date and place prints:
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