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.
* Display number of Individuals in persons tree
- BillH
- Megastar
- Posts: 2184
- Joined: 31 May 2010 03:40
- Family Historian: V7
- Location: Washington State, USA
Re: Display number of Individuals in persons tree
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.
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.
It would be nice to have a plugin which would show the count for all pools, but this is beyond my knowledge level.
Bill
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.
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.
It would be nice to have a plugin which would show the count for all pools, but this is beyond my knowledge level.
Bill
- BillH
- Megastar
- Posts: 2184
- Joined: 31 May 2010 03:40
- Family Historian: V7
- Location: Washington State, USA
Re: Display number of Individuals in persons tree
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
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 50 times
Re: Display number of Individuals in persons tree
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.
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.
- Jane
- Site Admin
- Posts: 8442
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Display number of Individuals in persons tree
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.
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."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
Re: Display number of Individuals in persons tree
Thank you Jane,