# Filter Rule: Events of families matching a \<family filter\>

**URL:** <https://gramps.discourse.group/t/filter-rule-events-of-families-matching-a-family-filter/273>\
**Category:** Ideas\
**Tags:** new\_filter\_rules\
**Created:** [March 6, 2020, 10:51pm UTC](https://gramps.discourse.group/t/filter-rule-events-of-families-matching-a-family-filter/273 "2020-03-06T22:51:51Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [March 6, 2020, 10:51pm UTC](https://gramps.discourse.group/t/filter-rule-events-of-families-matching-a-family-filter/273/1 "2020-03-06T22:51:51Z")

</div>

You can create a Person filter to find all the direct ancestors of a person. And there is a General filters rule for Events to find the “Events of persons matching the \<person filter\>”

But, while there is a Family filter rule to find all the families that are ancestor families of a Family, you cannot create an Events filter to find events associated with _ **those** _ families.

That means there’s no simple way to filter for ancestor family (marriage, divorce, etc.) events.

---

<div class="post-metadata">

**Author:** ![GeorgeWilmes](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@GeorgeWilmes](https://gramps.discourse.group/u/GeorgeWilmes)\
**Post date:** [March 7, 2020, 12:04am UTC](https://gramps.discourse.group/t/filter-rule-events-of-families-matching-a-family-filter/273/2 "2020-03-07T00:04:00Z")

</div>

Hi Brian,

I just created an event filter that references a custom person filter (“My direct ancestors”), and in the event filter I checked the box “Include family events: Also family events where person is a spouse”.

It returned my ancestors’ marriage events, which I had created as family events (not tied to the individual persons). It also returned their person events, but I could narrow the scope of the filter to include only family-type events.

Is that what you’re looking for?

---

<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:** [March 7, 2020, 12:39am UTC](https://gramps.discourse.group/t/filter-rule-events-of-families-matching-a-family-filter/273/3 "2020-03-07T00:39:39Z")

</div>

Well, I suppose I could have a 2 rule filter. The first with the checkbox you suggest, then a duplicate of it without the checkbox and choose the ‘Exactly one rule must apply’ option to strip out the non-Family events.

I just tried that & it works… slow but works.

Thanks!

---

<div class="post-metadata">

**Author:** ![Mattkmmr](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/mattkmmr/32/410_2.png) [@Mattkmmr](https://gramps.discourse.group/u/Mattkmmr)\
**Post date:** [March 7, 2020, 10:59am UTC](https://gramps.discourse.group/t/filter-rule-events-of-families-matching-a-family-filter/273/4 "2020-03-07T10:59:33Z")

</div>

@emyoulation[Pull request](https://github.com/gramps-project/addons-source/pull/291) for new filter rule “_Events of families matching a \<family filter\>_”.

Part of the [FilterRules](https://www.gramps-project.org/wiki/index.php/Rule_expansions) addon pack 1

---

<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:** [March 7, 2020, 11:44am UTC](https://gramps.discourse.group/t/filter-rule-events-of-families-matching-a-family-filter/273/5 "2020-03-07T11:44:14Z")

</div>

@Mattkmmr  
That’s wonderful! Thank you!
