* Unknown Relations

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
avatar
Johnwrosser
Famous
Posts: 128
Joined: 31 Aug 2022 10:36
Family Historian: V7

Unknown Relations

Post by Johnwrosser » 21 Feb 2023 11:09

I have like probably most people a lot of unknown named ancestors/relations. When I go to Individual records listing, the Unknown's show as first in the list. How can they be relegated to either the bottom of the list or at U?

User avatar
tatewise
Megastar
Posts: 27074
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Unknown Relations

Post by tatewise » 21 Feb 2023 12:26

The easiest solution is to give them the Surname Z, i.e. enter /Z/ in their Name: box.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Gowermick
Megastar
Posts: 1629
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Re: Unknown Relations

Post by Gowermick » 21 Feb 2023 12:27

When I have an unknown, like a wife of John Brown, I enter her as “?? /Brown Nee ??/“, that way she sorts with the other Browns.Also if you click or Alt-click on any column heading, you can sort them in the order/reverse order of that column.
Mike Loney

Website http://www.loney.tribalpages.com
http://www.mickloney.tribalpages.com

User avatar
Mark1834
Megastar
Posts: 2145
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Unknown Relations

Post by Mark1834 » 21 Feb 2023 12:29

When FH sorts data, it considers blank values as lower than any defined value. Blanks are therefore at the top when sorting in ascending order but at the bottom when sorting in descending order.

There are more sophisticated ways of defining a sort in other software. For example, Excel will always put missing values at the bottom (but not null values that result from a calculation). For "proper" databases, the treatment of null data varies by implementation, as it is not defined in the SQL ORDER BY statement, and not all implementations support the later NULLS FIRST/LAST qualifier.

Personally, I would like to see an option in FH to always place null data at the end of a sorted list, but it would be a new program feature that would need a New Wish List Request. I strongly dislike entering false data just to overcome a software limitation.
Mark Draper

User avatar
Mark1834
Megastar
Posts: 2145
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Unknown Relations

Post by Mark1834 » 21 Feb 2023 12:35

tatewise wrote:
21 Feb 2023 12:26
The easiest solution is to give them the Surname Z, i.e. enter /Z/ in their Name: box.
That wouldn't always work - in my old day job, our small statistics group of four people had two with the initials PZ (Zemroch and Zyman) :D
Mark Draper

User avatar
tatewise
Megastar
Posts: 27074
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Unknown Relations

Post by tatewise » 21 Feb 2023 12:45

Gowermick wrote:
21 Feb 2023 12:27
When I have an unknown, like a wife of John Brown, I enter her as “?? /Brown Nee ??/“, that way she sorts with the other Browns.Also if you click or Alt-click on any column heading, you can sort them in the order/reverse order of that column.
I think John is talking about completely blank names that are listed as [unamed person] which is why he suggested sorting amongst the U surnames.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
tatewise
Megastar
Posts: 27074
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Unknown Relations

Post by tatewise » 21 Feb 2023 12:48

Mark1834 wrote:
21 Feb 2023 12:35
tatewise wrote:
21 Feb 2023 12:26
The easiest solution is to give them the Surname Z, i.e. enter /Z/ in their Name: box.
That wouldn't always work - in my old day job, our small statistics group of four people had two with the initials PZ (Zemroch and Zyman) :D
True, but easily solved by using /ZZ/ which I agree is not ideal but the simplest that I can think of other than using the Alt key reverse sort, which unfortunately cannot be customised. Has anyone got a better idea?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Mark1834
Megastar
Posts: 2145
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Unknown Relations

Post by Mark1834 » 21 Feb 2023 12:56

New Wish List Request - a Tools > Preferences > General option to "always place null data at the end of sorted lists throughout FH". Easy to define, so onto the list for voting and consideration by CP...
Mark Draper

avatar
Gowermick
Megastar
Posts: 1629
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Re: Unknown Relations

Post by Gowermick » 21 Feb 2023 13:06

tatewise wrote:
21 Feb 2023 12:45
Gowermick wrote:
21 Feb 2023 12:27
When I have an unknown, like a wife of John Brown, I enter her as “?? /Brown Nee ??/“, that way she sorts with the other Browns.Also if you click or Alt-click on any column heading, you can sort them in the order/reverse order of that column.
I think John is talking about completely blank names that are listed as [unamed person] which is why he suggested sorting amongst the U surnames.
I realise that Mike, but was simply suggesting that they are rarely truly unknown, without a link somewhere (Like the wife of John Brown). I’m sure a suitable and relevant name can be thought up. If not, then /ZZ/ would fit the bill :D

BTW when I first started adding ‘unknown’ wives, I used ‘?? /??/‘, but quickly realised, like OP, that they
1. all sorted together and
2. I couldn’t easily identify who was who.
Hence my use of husbands surname as part of their surname.
The added bonus is that by searching for ‘Nee ??’, I can quickly identify which marriages still need to be found.
Mike Loney

Website http://www.loney.tribalpages.com
http://www.mickloney.tribalpages.com

User avatar
Robert Jacobs
Famous
Posts: 111
Joined: 21 Mar 2015 18:03
Family Historian: V7
Location: Ellensburg, Washington, U.S.A.
Contact:

Re: Unknown Relations

Post by Robert Jacobs » 21 Feb 2023 13:16

I've found a technique for unknown maiden names which seems to work well with FH. I use the husband's surname enclosed in brackets, thus: [Cooper]. I add "Mrs." as the name prefix which clarifies the relationship in reports.

The bracketed names sort at the beginning of the list in the project window and serve as a useful (sometimes reproachful) reminder of what still needs to be done. :D

Robert

avatar
Johnwrosser
Famous
Posts: 128
Joined: 31 Aug 2022 10:36
Family Historian: V7

Re: Unknown Relations

Post by Johnwrosser » 21 Feb 2023 14:03

Interesting replies. Preferred Robert Jacobs method but without the brackets.
:D :D

avatar
jelv
Superstar
Posts: 359
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: Unknown Relations

Post by jelv » 21 Feb 2023 19:47

Where I have a wife and I don't know the maiden name I also use the husbands name in square brackets.

If I know the maiden name but not the first name (e.g. I've found the mother's surname from a child's birth registration in the GRO index) I use [x].
John Elvin

User avatar
trevorrix
Famous
Posts: 228
Joined: 17 Nov 2002 20:27
Family Historian: V7
Location: Suffolk, England

Re: Unknown Relations

Post by trevorrix » 22 Feb 2023 11:17

I would have thought that the easiest solution would be to leave the field/information blank when something is unknown. That's what I do.
Trevor Rix

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Unknown Relations

Post by ColeValleyGirl » 22 Feb 2023 11:23

I agree with Trevor on this -- if I don't know somebody's name, I'll leave it blank.

avatar
jelv
Superstar
Posts: 359
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: Unknown Relations

Post by jelv » 22 Feb 2023 11:34

Blank is fine in the focus window and diagrams where you can see the context in which the individual exists. But I find blank hopeless in lists like the records window, query and plugin result lists. Having the name in brackets makes it clear it's not their actual name, but does give an indication of where they fit in the tree.
John Elvin

User avatar
LornaCraig
Megastar
Posts: 2989
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Unknown Relations

Post by LornaCraig » 22 Feb 2023 11:38

ColeValleyGirl wrote:
22 Feb 2023 11:23
I agree with Trevor on this -- if I don't know somebody's name, I'll leave it blank.
That's what the OP has previously been doing, but his problem is that all the [unamed person] records are sorted at the top in the Records Window (in ascending order sort) and he wants a way to move them to the bottom, or at least somewhere else, while retaining the ascending alphabetical order.

Hence Mark's suggestion above :
New Wish List Request - a Tools > Preferences > General option to "always place null data at the end of sorted lists throughout FH". Easy to define, so onto the list for voting and consideration by CP...
Lorna

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Unknown Relations

Post by ColeValleyGirl » 22 Feb 2023 11:57

In the meantime, [unnamed persons] sort to the bottom if you Sort the column Descending.

User avatar
ColeValleyGirl
Megastar
Posts: 4850
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Unknown Relations

Post by ColeValleyGirl » 22 Feb 2023 11:59

jelv wrote:
22 Feb 2023 11:34
But I find blank hopeless in lists like the records window, query and plugin result lists. Having the name in brackets makes it clear it's not their actual name, but does give an indication of where they fit in the tree.
IN records list and queries, I always include a column for the first couple of spouses and the family as a child to give context.

avatar
jelv
Superstar
Posts: 359
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: Unknown Relations

Post by jelv » 22 Feb 2023 12:58

Going back to the original enquiry, adding a custom column to the individual records window with the expression

Code: Select all

=TextIf(Exists(%INDI.NAME%),%INDI.NAME:SURNAME_FIRST%,"ZZZ")
would give a column that can be sorted to put the unknowns to the bottom.

Using my method of putting the surname in [ ], this expression works:

Code: Select all

=TextIf(LeftText(%INDI.NAME:SURNAME_FIRST%,1,"") = "[",Text("ZZZ" . %INDI.NAME:SURNAME_FIRST%),%INDI.NAME:SURNAME_FIRST%)
John Elvin

User avatar
mezentia
Superstar
Posts: 277
Joined: 12 Jan 2007 21:14
Family Historian: V7
Location: Stourbridge

Re: Unknown Relations

Post by mezentia » 24 Feb 2023 00:18

I tend to leave unknown peoples' name entries blank, but if I have a first name, say of someone's wife, I put their married name in brackets, i.e. [Smith]. As I tend to work from the Individuals tab anyway, all unkowns appear first followed by the names in [ ] as a reminder that there's more work needed there.

User avatar
tatewise
Megastar
Posts: 27074
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Unknown Relations

Post by tatewise » 02 Mar 2023 21:30

Mark1834 wrote:
21 Feb 2023 12:56
New Wish List Request - a Tools > Preferences > General option to "always place null data at the end of sorted lists throughout FH". Easy to define, so onto the list for voting and consideration by CP...
Mark, I cannot find a New Wish List Request posting for this. Has it slipped through the net?

I think you are proposing that null data setting applies regardless of whether sorting is Ascending or Descending.
i.e. It is absolute and not simply a change to the sort order rules which would put null last for Ascending but first for Descending.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Mark1834
Megastar
Posts: 2145
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Unknown Relations

Post by Mark1834 » 03 Mar 2023 09:19

Yes, I thought we had defined it already, but I've added the proposal to the New Wish Lists thread. I think this one is easy to define, so doesn't need overcomplicating.
Mark Draper

User avatar
sbell95
Famous
Posts: 107
Joined: 14 Feb 2021 06:04
Family Historian: V7
Location: Australia

Re: Unknown Relations

Post by sbell95 » 16 Jul 2023 07:11

Is there currently a workaround to sort individual records in the records window so that those with a blank Ahnentafel number (or surname) are at the bottom? I tried playing around with a custom column for sorting purposes based on the below, but couldn't get it to work reliably...
jelv wrote:
22 Feb 2023 12:58
Going back to the original enquiry, adding a custom column to the individual records window with the expression

Code: Select all

=TextIf(Exists(%INDI.NAME%),%INDI.NAME:SURNAME_FIRST%,"ZZZ")
would give a column that can be sorted to put the unknowns to the bottom.

Using my method of putting the surname in [ ], this expression works:

Code: Select all

=TextIf(LeftText(%INDI.NAME:SURNAME_FIRST%,1,"") = "[",Text("ZZZ" . %INDI.NAME:SURNAME_FIRST%),%INDI.NAME:SURNAME_FIRST%)
Sarah Bell – Australia
View my tree on Wikitree

avatar
KFN
Famous
Posts: 177
Joined: 20 Jun 2021 01:00
Family Historian: V7

Re: Unknown Relations

Post by KFN » 16 Jul 2023 07:28

A horizontal ellipsis … in the surname field should sort at the bottom for all languages is using UTF-8.

… as one character not … as 3 full stop!

User avatar
tatewise
Megastar
Posts: 27074
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Unknown Relations

Post by tatewise » 16 Jul 2023 10:23

The following Column Expressions should work.

To sort names such that those without a surname are last with an ellipsis substituted:
=TextIf( %INDI.NAME:SURNAME% = "", Text( "…, " . %INDI.NAME% ), %INDI.NAME:SURNAME_FIRST% )
i.e. If the Surname does not exist then put "…, " before the Name otherwise use the Surname_First qualifier.

To sort Ahnentafel numbers such that those without a value are last:
=NumberIf( AhnentafelNumber(FileRoot(),%INDI%,1) > 0, AhnentafelNumber(FileRoot(),%INDI%,1), 99999 )
i.e. If the Ahnentafel number exists then use it otherwise substitute 99999.
The substitution has to be a large number in order to retain the numerical sorting of Ahnentafel numbers.
If you try and use text then the Ahnentafel numbers do not sort correctly.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply