# Filter to exclude certain branches of my tree

**URL:** <https://gramps.discourse.group/t/filter-to-exclude-certain-branches-of-my-tree/7325>\
**Category:** Help\
**Created:** [March 25, 2025, 3:10pm UTC](https://gramps.discourse.group/t/filter-to-exclude-certain-branches-of-my-tree/7325 "2025-03-25T15:10:02Z")\
**Posts on this page:** 5\
**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:** [March 25, 2025, 3:10pm UTC](https://gramps.discourse.group/t/filter-to-exclude-certain-branches-of-my-tree/7325/1 "2025-03-25T15:10:02Z")

</div>

(Gramps 5.2.4 on Windows 10 / 11)

I understand the concept of building a custom filter but I’m not very good at doing it.

I can easily filter out most of what I want by finding simply finding the ‘descendant families of [person]’ but that also removes ancestors of spouses of people that meet that criteria. I’d like to include such people, except for me, I don’t want the ancestors of my spouse included.

Does that make sense? If so, how do I assemble a suitable custom filter?

Thanks

---

<div class="post-metadata">

**Author:** ![DougRB](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/dougrb/32/3706_2.png) [@DougRB](https://gramps.discourse.group/u/DougRB)\
**Post date:** [March 25, 2025, 4:13pm UTC](https://gramps.discourse.group/t/filter-to-exclude-certain-branches-of-my-tree/7325/2 "2025-03-25T16:13:46Z")

</div>

Is this filter any help: in Example Filters. example 7.

[https://gramps-project.org/wiki/index.php/Example\_filters#Example\_7.\_All\_people\_related\_to\_me\_but\_not\_my\_wife](https://gramps-project.org/wiki/index.php/Example_filters#Example_7._All_people_related_to_me_but_not_my_wife)

---

<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:** [March 26, 2025, 11:29am UTC](https://gramps.discourse.group/t/filter-to-exclude-certain-branches-of-my-tree/7325/3 "2025-03-26T11:29:15Z")

</div>

Thank you, it wasn’t exactly what I needed but it was enough to work out what I did need.

---

<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:** [March 26, 2025, 4:15pm UTC](https://gramps.discourse.group/t/filter-to-exclude-certain-branches-of-my-tree/7325/4 "2025-03-26T16:15:17Z")

</div>

I posted on another thread wanting to do something similar.

> [@Filter to get the ascending tree](https://gramps.discourse.group/t/filter-to-get-the-ascending-tree/7259/6):
>
> It is even easier than that. In the People custom Filters… Ancestral filters \>\> Ancestors of \<person\> Check the box to Include selected Gramps ID If you want all the Descendants (and their Spouses) the second filter is Descendant Filters \>\> Descendant family members of \<filter\> match To exclude this branch, you need to find the people to exclude. Descendant Filters \>\> Descendant family members of \<person\> Check the box to Include selected Gramps ID if you want the selected person exc…

---

<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:** [April 25, 2025, 4:16pm UTC](https://gramps.discourse.group/t/filter-to-exclude-certain-branches-of-my-tree/7325/5 "2025-04-25T16:16:03Z")

</div>

Closed on April 25, 2025, 4:16pm UTC

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