# Add aggregation to Query define filters

**URL:** <https://community.tulip.co/t/add-aggregation-to-query-define-filters/6741>\
**Category:** Product Suggestions\
**Created:** [October 25, 2022, 11:52pm UTC](https://community.tulip.co/t/add-aggregation-to-query-define-filters/6741 "2022-10-25T23:52:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChirristopherOficial](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@ChirristopherOficial](https://community.tulip.co/u/ChirristopherOficial)\
**Post date:** [October 25, 2022, 11:52pm UTC](https://community.tulip.co/t/add-aggregation-to-query-define-filters/6741/1 "2022-10-25T23:52:31Z")

</div>

it could be fun to have the option of aggregation  
we can be able to create more dynamic tulip queries

 ![Capture](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/e/e2ca2e062265387725bdb6e5b6b79ee31b12d2f4.png)

---

<div class="post-metadata">

**Author:** ![Pete\_Hartnett](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/pete_hartnett/32/3678_2.png) [@Pete\_Hartnett](https://community.tulip.co/u/Pete_Hartnett)\
**Post date:** [October 26, 2022, 12:37pm UTC](https://community.tulip.co/t/add-aggregation-to-query-define-filters/6741/2 "2022-10-26T12:37:38Z")

</div>

Hey @ChirristopherOficial -

We initially didn’t enable this because it potentially can enable unintentional infinite loops (aggregation 1 drives a change in query 1, which drives a change to aggregation 1, repeat). What are the cases you have run into where this would be useful?

Pete

---

<div class="post-metadata">

**Author:** ![ChirristopherOficial](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@ChirristopherOficial](https://community.tulip.co/u/ChirristopherOficial)\
**Post date:** [October 28, 2022, 9:24pm UTC](https://community.tulip.co/t/add-aggregation-to-query-define-filters/6741/3 "2022-10-28T21:24:59Z")

</div>

kind of , I have an query1 that feeds an aggregation 1, the aggregation 1 feeds a query 2 ,  
right now im using a timer trigger to copy the result from the aggregation 1 to a variable to drive query 2.
