# Number of people mismatch

**URL:** <https://gramps.discourse.group/t/number-of-people-mismatch/6606>\
**Category:** Help\
**Created:** [December 13, 2024, 3:05pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606 "2024-12-13T15:05:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuck](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@stuck](https://gramps.discourse.group/u/stuck)\
**Post date:** [December 13, 2024, 3:05pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606/1 "2024-12-13T15:05:59Z")

</div>

GRAMPS: AIO64-5.2.3-r1-aa03f5a on Win 10

At the top of my Quilt Chart, to the right of the ‘Clear’ button it says:

> You have filtered 413 people, 413 people shown on the tree and 412 people in your data base

How can the chart filter and show more people (413) than there are in the db (412)?

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [December 13, 2024, 5:05pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606/2 "2024-12-13T17:05:05Z")

</div>

What type of filter are you using.

I’m testing on a very small database. With no filter running I have 0 filter people 57 shown on tree, 57 in database.

One possible to look for, is someone a parent of a family with an unknown spouse where you have left the spouse field empty?

or

one person counted as a spouse in two families?

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 13, 2024, 6:13pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606/3 "2024-12-13T18:13:07Z")

</div>

It looks like the code keeps a “count” as it walks through. So it could be a simple logic error. But you should probably do a backup, then a repair to be safe.

> <https://github.com/gramps-project/addons-source/blob/b9b799c2b60836771df2576dafa352837a2788d2/QuiltView/QuiltView.py#L570>

---

<div class="post-metadata">

**Author:** ![stuck](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@stuck](https://gramps.discourse.group/u/stuck)\
**Post date:** [December 13, 2024, 6:38pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606/4 "2024-12-13T18:38:30Z")

</div>

> [@DaveSch](#):
>
> What type of filter are you using.

None. My tree is small and when I export it, Gramps tells me it contains 412 people, not 413.

> [@DaveSch](#):
>
> is someone a parent of a family with an unknown spouse where you have left the spouse field empty?

That’s a possibility. I have at least one family where I have no father details, as the birth record gives none.

> [@DaveSch](#):
>
> one person counted as a spouse in two families?

I have more than person in the tree who has married more than once so if this was the problem you would you not expect a difference of greater than one in the two counts?

> [@emyoulation](#):
>
> It looks like the code keeps a “count” as it walks through. So it could be a simple logic error.

I’m busy over the weekend so it will be a while before I can do a backup and repair to see if that helps.

---

<div class="post-metadata">

**Author:** ![kku](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@kku](https://gramps.discourse.group/u/kku)\
**Post date:** [December 17, 2024, 5:34pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606/5 "2024-12-17T17:34:48Z")

</div>

I investigated this out of curiosity.

I could reproduce the issue and it appears that there indeed is a logic error in the code. However, this defect is seen only if there is a person with repeated ancestors (i.e. there is pedigree collapse). In that case the code “finds” a person via two different routes - this possibility is not taken into account. It also depends on who is selected as the active person.

As a simple example here is a tree where the same person (A4) is a repeated ancestor for A1 (i.e. her parents A2 and B2 are cousins). The selected person is A1.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/2/2743e5b8b1df308217423d6eefa500f29bfe79b3.png)

The quilt chart shows (and counts) the person A2 twice.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/1/1e4967c2962e87bd6b8e62797fbbc0b50fec5032.png)

The extra A2 is not active (clicking it does not do anything) and it also does not have the black marker

---

<div class="post-metadata">

**Author:** ![stuck](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@stuck](https://gramps.discourse.group/u/stuck)\
**Post date:** [December 17, 2024, 6:36pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606/6 "2024-12-17T18:36:04Z")

</div>

> [@kku](#):
>
> simple example here is a tree where the same person (A4) is a repeated ancestor for A1 (i.e. her parents A2 and B2 are cousins).

Ah yes! That’s it!

My tree includes someone who married his first cousin and there are two entries for him in the quilt chart, one of which is inactive.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [January 16, 2025, 6:36pm UTC](https://gramps.discourse.group/t/number-of-people-mismatch/6606/7 "2025-01-16T18:36:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
