# Selecting families with empty parents

**URL:** <https://gramps.discourse.group/t/selecting-families-with-empty-parents/6434>\
**Category:** Help\
**Created:** [November 13, 2024, 2:29pm UTC](https://gramps.discourse.group/t/selecting-families-with-empty-parents/6434 "2024-11-13T14:29:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [November 13, 2024, 3:49pm UTC](https://gramps.discourse.group/t/selecting-families-with-empty-parents/6434/7 "2024-11-13T15:49:06Z")

</div>

> [@ennoborg](#):
>
> I only want to select the families that have no parents, and 2 or more children.

I guess the top Custom Filter needs an additional Family Rule for that last ‘2 or more children’ parameter:

- `Family with <count> of child` where `Number of instances:="1";Number must be:="greater than"`

(I know you were aware of that. Just including for future readers of the discussion.)

### `custom_filters.xml`
 

```xml
<?xml version="1.0" encoding="utf-8"?>
<filters>
  <object type="Family">
    <filter name="Both parents missing" function="and" comment="Family container where multiple siblings are known but parents are not.">
      <rule class="MatchesFilter" use_regex="False" use_case="False">
        <arg value="Father missing"/>
      </rule>
      <rule class="MatchesFilter" use_regex="False" use_case="False">
        <arg value="Mother missing"/>
      </rule>
      <rule class="HasNumChild" use_regex="False" use_case="False">
        <arg value="1"/>
        <arg value="greater than"/>
      </rule>
    </filter>
    <filter name="Father missing" function="and" invert="1" comment="(Invert RegEx for any Father ID)">
      <rule class="FatherHasIdOf" use_regex="True" use_case="False">
        <arg value="."/>
      </rule>
    </filter>
    <filter name="Mother missing" function="and" invert="1" comment="(Invert RegEx for any Mother ID)">
      <rule class="MotherHasIdOf" use_regex="True" use_case="False">
        <arg value="."/>
      </rule>
    </filter>
  </object>
</filters>

```

---

_[View the full topic](https://gramps.discourse.group/t/selecting-families-with-empty-parents/6434)._
