# "Group by" doesn't work properly with aggregation "max" for "Created Date" field

**URL:** <https://forum.bubble.io/t/group-by-doesnt-work-properly-with-aggregation-max-for-created-date-field/181130>\
**Category:** Bugs\
**Created:** [December 5, 2021, 9:48pm UTC](https://forum.bubble.io/t/group-by-doesnt-work-properly-with-aggregation-max-for-created-date-field/181130 "2021-12-05T21:48:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor.fedyushkin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/igor.fedyushkin/32/114309_2.png) [@igor.fedyushkin](https://forum.bubble.io/u/igor.fedyushkin)\
**Post date:** [December 5, 2021, 9:48pm UTC](https://forum.bubble.io/t/group-by-doesnt-work-properly-with-aggregation-max-for-created-date-field/181130/1 "2021-12-05T21:48:24Z")

</div>

I have a historical table with states of vacancies and trying to get the last status of each vacancy

Here are screenshots with my “Do search…”  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/7/17323319c5220f29e5aa6e98a655383e35b61775.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/4/54a9c3f6e9333340b193c830184c7ed13bcfb26b.png)  
Here is a “Do search…” for “Created date is in Search for Statuss…”  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/d/ddbf5c911863e4f1d48f727c27913588f85f351b.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/9/f922c3cf671dea076fb2e40ad5d953814cf9d2ac.png)

What I have as result is:  
After creating new status in the data table my repeating group gets empty.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d97049261bafb2de475ebf612a77132887c0d50f.png)  
After F5 (refreshing page) repeating group has all data  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/e/5e442bf195f4c54bcf5d4d968f4016f4d5f7b641.png)

What I expect: the repeating group has all data after refreshing

Is it a bug or I’m doing something wrong?

PS: example [https://hiring-machine.com/version-test/app\_vacancy\_list?debug\_mode=true](https://hiring-machine.com/version-test/app_vacancy_list?debug_mode=true)

---

<div class="post-metadata">

**Author:** ![igor.fedyushkin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/igor.fedyushkin/32/114309_2.png) [@igor.fedyushkin](https://forum.bubble.io/u/igor.fedyushkin)\
**Post date:** [December 11, 2021, 7:25am UTC](https://forum.bubble.io/t/group-by-doesnt-work-properly-with-aggregation-max-for-created-date-field/181130/2 "2021-12-11T07:25:47Z")

</div>

Any ideas on how to solve the problem?

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [December 11, 2021, 10:38am UTC](https://forum.bubble.io/t/group-by-doesnt-work-properly-with-aggregation-max-for-created-date-field/181130/3 "2021-12-11T10:38:29Z")

</div>

Maybe best to raise a bug?

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [December 11, 2021, 3:02pm UTC](https://forum.bubble.io/t/group-by-doesnt-work-properly-with-aggregation-max-for-created-date-field/181130/4 "2021-12-11T15:02:59Z")

</div>

Inspect the repeating group when the table is empty using debug mode. This will give you more clarity.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 19, 2021, 9:48pm UTC](https://forum.bubble.io/t/group-by-doesnt-work-properly-with-aggregation-max-for-created-date-field/181130/5 "2021-12-19T21:48:34Z")

</div>

Closed on December 19, 2021, 9:48pm UTC

This topic was automatically closed after 14 days. New replies are no longer allowed.
