# How to apply filter to subgroups

**URL:** <https://discourse.devontechnologies.com/t/how-to-apply-filter-to-subgroups/75699>\
**Category:** DEVONthink\
**Created:** [May 12, 2023, 6:35pm UTC](https://discourse.devontechnologies.com/t/how-to-apply-filter-to-subgroups/75699 "2023-05-12T18:35:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waterdog](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/w/e495f1/32.png) [@waterdog](https://discourse.devontechnologies.com/u/waterdog)\
**Post date:** [May 12, 2023, 6:35pm UTC](https://discourse.devontechnologies.com/t/how-to-apply-filter-to-subgroups/75699/1 "2023-05-12T18:35:00Z")

</div>

Workflow: I simply capture content to DTP and use it’s AI features (classify) to group it into categories (sub groups). Then I COPY the files into TheBrain app. Once copied, the label is changed to GREEN (called “Braind”).

So now I have a GROUP called SORTED and all files in there are files I want to copy to thebrain. Now, what I would like it to have a smart group that shows all the GROUPS under SORTED, but only the contents that are NOT GREEN. I can get it to work for the top level items (groups) but not the actual contents below the top level.

Here is a screenshot showing my Smart Group definition and in the background you can see that it is not working as expected.

 ![Screenshot of DEVONthink 3 (2023-05-12, 2-31-18 PM)](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/f/5/f5e94ff9687146dc9750bab2bb37f2efa7f9ec98.jpeg)

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [May 13, 2023, 4:34am UTC](https://discourse.devontechnologies.com/t/how-to-apply-filter-to-subgroups/75699/2 "2023-05-13T04:34:35Z")

</div>

There is no bug here. It’s doing what you’ve logically asked it to do.  
Your groups aren’t labeled as _ **Braind** _ so they’re matched. Then you’ve opened those groups, exposing the documents in them.

As has been said many times in documentation and the forums, you should be as specific as possible when creating searches, smart groups, or smart rules. You are looking for **documents** without that label, so add **Kind is Any Document**. This removes any groups from the matches, leaving only unlabeled documents as matches.

---

<div class="post-metadata">

**Author:** ![waterdog](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/w/e495f1/32.png) [@waterdog](https://discourse.devontechnologies.com/u/waterdog)\
**Post date:** [May 13, 2023, 4:39pm UTC](https://discourse.devontechnologies.com/t/how-to-apply-filter-to-subgroups/75699/3 "2023-05-13T16:39:36Z")

</div>

thank you, sir.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [May 14, 2023, 1:33pm UTC](https://discourse.devontechnologies.com/t/how-to-apply-filter-to-subgroups/75699/4 "2023-05-14T13:33:56Z")

</div>

You’re welcome. I hope that makes sense.

---

<div class="post-metadata">

**Author:** ![system](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/4/4e6ff70c96be2eb307a274d890bba8d71ba671b3.png) [@system](https://discourse.devontechnologies.com/u/system)\
**Post date:** [May 13, 2026, 1:34pm UTC](https://discourse.devontechnologies.com/t/how-to-apply-filter-to-subgroups/75699/5 "2026-05-13T13:34:28Z")

</div>

Closed on May 13, 2026, 1:34pm UTC

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