* Specifying Source ID in a query [Solved]

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
avatar
Gowermick
Megastar
Posts: 1632
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Specifying Source ID in a query [Solved]

Post by Gowermick » 28 Jan 2016 09:50

I have a query that shows me all individuals who were around in 1841, so could potentially appear in 1841 census. How can I exclude all those whom I have already found, who will all be using my source 'Census 1841' ( ID 19)

i.e. Where do I find Source ID in the data list, so that I can add it to a Column so I can use its value as a filter?
Last edited by Gowermick on 28 Jan 2016 13:33, edited 1 time in total.
Mike Loney

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

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

Re: Specifying Source ID in a query

Post by tatewise » 28 Jan 2016 12:24

You need =RecordId(%INDI.CENS[year=1841].SOUR[1]>%) to get Record Id number.
For more on functions such as =RecordId(...) see how_to:understanding_functions|> Understanding Functions.

But also %INDI.CENS[year=1841].SOUR[1]>TITL% will give you the Source Title that you could check against Census 1841.

Presumably though either there is a Census Event for 1841 with a Source Citation, or there is no Census Event at all for 1841? So all you need to check for is the existence or not of %INDI.CENS[year=1841]%.

I presume you are also aware of the Lookup Missing Census Facts Plugin that does all that for you, and provides the search Census commands for Ancestry and FindMyPast?

Also I am sure there are similar ready-made Queries in the FHUG Downloads.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

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

Re: Specifying Source ID in a query [Solved]

Post by Gowermick » 28 Jan 2016 13:32

Thanks Mike,

The first expression was what I was looking for. My list of potential individuals has now dropped from around 1800 to 693!

I was aware of the plugin you suggested, but it seemed over the top for what I wanted. With the census source incorporated into the query, I can further modify it at will to cover different years, different counties etc.
Mike Loney

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

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

Re: Specifying Source ID in a query [Solved]

Post by tatewise » 28 Jan 2016 14:35

Did you understand the point about only needing to check %INDI.CENS[year=1841]% instead of existence of the Source record?

It might be safer to check the Title than the Record Id just in case you choose to renumber them later.
Bear in mind that the expressions posted only check the 1st Citation.

The Plugin may be 'over the top' but it already exists, and does the filtering, and provides the commands to search the online Census records, which presumably is your goal. Note that it does not just search by name, but also often with dates, places, and relatives, to narrow the search, but easily edited to adjust the search. Did you actually try it?

See fhugdownloads:queriesindi|> Downloads and Links ~ Query Type: Individual that offers several Census checking Queries that may not do exactly what you want, but contain examples of Column and Row expressions you might learn from.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

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

Re: Specifying Source ID in a query [Solved]

Post by Gowermick » 28 Jan 2016 17:04

I do understand now, and will try this tommorrow, as I've just found out that not all use the 'Census 1841' source citation. So looking for the actual census fact may be more sensible.
Mike Loney

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

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

Re: Specifying Source ID in a query [Solved]

Post by tatewise » 28 Jan 2016 18:48

Are you sure that not all use the 'Census 1841' source citation, by actually checking the Facts tab, or are you relying on the %INDI.CENS[year=1841].SOUR[1]>% data in the Query?

As I said, that only checks the [1]st Source Citation.
If you check %INDI.CENS[year=1841].SOUR[2]>% you may find 'Census 1841' is the [2]nd Source Citation, or maybe even the [3]rd...

What is more sensible depends on your objective, which you have never stated.
If it is to find missing Census Source Citations then you must check for them, and the results will include Census Events without Citations.
If it is to only find missing Census Events then you must check just for them regardless of their Citations.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

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

Re: Specifying Source ID in a query [Solved]

Post by Gowermick » 28 Jan 2016 19:07

No, i found some rogue entries that used 'Ancestry' as the source. They appeared in the result set because they didn't use 'Census 1841'. I need to change these to 'Census 1841' as and when I find them. (I assume the same will apply to other years too).
Mike Loney

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

Post Reply