Page 1 of 1

Display number of Individuals in persons tree

Posted: 14 Mar 2022 23:32
by wildbill
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.

Re: Display number of Individuals in persons tree

Posted: 15 Mar 2022 04:15
by BillH
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 997 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 997 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

Re: Display number of Individuals in persons tree

Posted: 15 Mar 2022 05:40
by BillH
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

Re: Display number of Individuals in persons tree

Posted: 15 Mar 2022 12:22
by wildbill
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.

Re: Display number of Individuals in persons tree

Posted: 15 Mar 2022 14:28
by Jane
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.

Re: Display number of Individuals in persons tree

Posted: 15 Mar 2022 18:51
by wildbill
Thank you Jane,