* Display number of Individuals in persons tree

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
wildbill
Platinum
Posts: 34
Joined: 16 Nov 2021 18:16
Family Historian: V7

Display number of Individuals in persons tree

Post by wildbill » 14 Mar 2022 23:32

I have several study trees unlinked from my main tree and I would like to know if an expression or query exists to display the number of individuals in a persons tree when running a query?

Thank you in advance.

User avatar
BillH
Megastar
Posts: 2182
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Display number of Individuals in persons tree

Post by BillH » 15 Mar 2022 04:15

This works if you don't have very many pools.

Each "tree" in FH has a unique pool number. I have a column in the records window on the Individuals tab called Pool # as shown in the screenshot.

image1.jpg
image1.jpg (21.24 KiB) Viewed 992 times

I find a person in the tree that I am interested in and note the pool number. Then I run the plugin Show Project Statistics and click on Update Statistics. Then I look at the Records tab. It shows the count of people in each pool. I look for the pool number I got from the records window. That is the number of individuals in that "tree".

This only works some of the time. The plugin doesn't show all pool counts. It only lists a few at the beginning and a few at the end if you have a lot of pools. If you only have a few it shows all of them.

For example, here is what it shows for me.

image2.jpg
image2.jpg (10.93 KiB) Viewed 992 times

It would be nice to have a plugin which would show the count for all pools, but this is beyond my knowledge level.

Bill

User avatar
BillH
Megastar
Posts: 2182
Joined: 31 May 2010 03:40
Family Historian: V7
Location: Washington State, USA

Re: Display number of Individuals in persons tree

Post by BillH » 15 Mar 2022 05:40

After posting my earlier post, I came across some plugin code written by spacemeout (Phil Chandler) which does show a count of all pools. It was posted in this forum post, Custom Query Count (12477).

I created a plugin from it and made a couple small changes. I commented out the first column which showed a surname. I also made the remaining two columns narrower.

I have attached the plugin just in case it will serve your purposes.

Bill
Attachments
Pool Counts.fh_lua
(1.52 KiB) Downloaded 49 times

User avatar
wildbill
Platinum
Posts: 34
Joined: 16 Nov 2021 18:16
Family Historian: V7

Re: Display number of Individuals in persons tree

Post by wildbill » 15 Mar 2022 12:22

Bill, thank you for that input, Pool was something which had not previously come up in my reading.

I suppose I was hoping for something like Relations() which would display a tree count for the selected individual. I will continue to read and check through Standard and Custom queries to see if it can be achieved.

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

Re: Display number of Individuals in persons tree

Post by Jane » 15 Mar 2022 14:28

There are a couple of plugins, one which computes and displays and one which creates attributes for each person with the counts.

https://pluginstore.family-historian.co.uk/?s=counts

Note the second one updates the records so will update the last changed date on the records.
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
wildbill
Platinum
Posts: 34
Joined: 16 Nov 2021 18:16
Family Historian: V7

Re: Display number of Individuals in persons tree

Post by wildbill » 15 Mar 2022 18:51

Thank you Jane,

Post Reply