* Named List in a Query

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.
Post Reply
User avatar
ississi
Diamond
Posts: 59
Joined: 15 Feb 2021 14:47
Family Historian: V7

Named List in a Query

Post by ississi » 07 Jan 2022 15:41

fH7

Hi,
I'm going slowly bonkers here...I've been adapting the "Alive in 1901" query to use for the 1921 census. I've added a column to show their age in 1921, and I've added a way to choose a named list as input.
Weirdly, despite saving the query, it's including people who aren't in the named list chosen, in the output, though the numbers of people selected does change by a handful depending which named list I choose.
So I guess I'm adding it in wrong, or I don't understand the logic of how the row rules are applied (I'd assumed it was "take the people from the first rule and pass to the next rule" etc.
I hope someone lovely out there can unscramble my brain for me, please :shock: many thanks :)
Attached are the Rows page and the Columns page:
p1.jpg
p1.jpg (176.26 KiB) Viewed 870 times
p2.jpg
p2.jpg (53.09 KiB) Viewed 870 times

User avatar
Jane
Site Admin
Posts: 8441
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Named List in a Query

Post by Jane » 07 Jan 2022 16:14

You currently have 3 adding lines, which will all ADD to the list.

The simplest solution is to move your list select down after adding the people by dates and then do an exclude unless in list line.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

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

Re: Named List in a Query

Post by tatewise » 07 Jan 2022 16:32

See the FH Help page Query Window: Rows Tab that explains how the Rows tab filters behave.

Every Add filter will add every record that matches the conditions regardless of what has gone before.
So your two Add If %INDI.DEATH.DATE% rows will add anybody who fits those criteria.

The Add If =IsInList(...) row will add everybody in the Named List regardless of their DEAT.DATE.

The question is: How do you want the Result Set adjusted by the Named List?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
ississi
Diamond
Posts: 59
Joined: 15 Feb 2021 14:47
Family Historian: V7

Re: Named List in a Query

Post by ississi » 07 Jan 2022 16:48

Ooh brilliant! Thank you both of you, Jane I will use your suggestion. I'd assumed the AddIf's filtered into each other. Many thanks,
Isabel

avatar
neil40
Famous
Posts: 244
Joined: 12 Apr 2012 13:42
Family Historian: V7
Location: Bicester, Oxfordshire

Re: Named List in a Query

Post by neil40 » 07 Jan 2022 17:00

ississi wrote:
07 Jan 2022 15:41
fH7

Hi,
I'm going slowly bonkers here...I've been adapting the "Alive in 1901" query to use for the 1921 census. I've added a column to show their age in 1921, and I've added a way to choose a named list as input.
I don't know if you wanted to adjust dates in the query, as the 1921 Census was taken on 19th June 1921.
Neil Grantham
Researching Grantham, Skuce, Barrow and Birchall

User avatar
ississi
Diamond
Posts: 59
Joined: 15 Feb 2021 14:47
Family Historian: V7

Re: Named List in a Query

Post by ississi » 08 Jan 2022 10:47

Thanks Neil, will do

Post Reply