# Open a new month and retain the data for the previous month

**URL:** <https://community.glideapps.com/t/open-a-new-month-and-retain-the-data-for-the-previous-month/72932>\
**Category:** Ask for Help\
**Created:** [April 29, 2024, 12:54pm UTC](https://community.glideapps.com/t/open-a-new-month-and-retain-the-data-for-the-previous-month/72932 "2024-04-29T12:54:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdelfatah\_hussien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abdelfatah_hussien/32/66228_2.png) [@abdelfatah\_hussien](https://community.glideapps.com/u/abdelfatah_hussien)\
**Post date:** [April 29, 2024, 12:54pm UTC](https://community.glideapps.com/t/open-a-new-month-and-retain-the-data-for-the-previous-month/72932/1 "2024-04-29T12:54:09Z")

</div>

I have an application that makes maintenance orders for maintenance technicians, and I want to open a new month for users while keeping the data for the previous month

thanks for the help

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 29, 2024, 1:07pm UTC](https://community.glideapps.com/t/open-a-new-month-and-retain-the-data-for-the-previous-month/72932/2 "2024-04-29T13:07:50Z")

</div>

You may need to explain exactly what you mean by “open a new month”.

Normally with this sort of thing you would be using a form to add data which would capture that date/time that each item is created, so there would be no need to open anything.

If you want to hide older data from view, that’s just a matter of applying an appropriate filter.

---

<div class="post-metadata">

**Author:** ![abdelfatah\_hussien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abdelfatah_hussien/32/66228_2.png) [@abdelfatah\_hussien](https://community.glideapps.com/u/abdelfatah_hussien)\
**Post date:** [April 29, 2024, 1:11pm UTC](https://community.glideapps.com/t/open-a-new-month-and-retain-the-data-for-the-previous-month/72932/3 "2024-04-29T13:11:49Z")

</div>

Thanks for paying attention  
I want to hide the data, but I need it to be available somewhere else to search  
Orders that start on 1/5 have a number that starts with 1-2-3 and so on until the end of the month

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 29, 2024, 1:20pm UTC](https://community.glideapps.com/t/open-a-new-month-and-retain-the-data-for-the-previous-month/72932/4 "2024-04-29T13:20:16Z")

</div>

Okay, so you need to number your orders, and reset the order number at the start of each month, yes?

A word of caution - actions in Glide are not atomic, meaning that if you’re doing something like incrementing a number when a form is submitted, there is always the chance that you may end up with duplicate numbers if two or more users happen to submit a form at almost exactly the same time.

The only reliable way to avoid the above issue is to delegate the assignment of numbers to a 3rd party, such as Make or Zapier.

The video in the below doc shows how that can be done using Make:

> **[Make | Glide Docs](https://www.glideapps.com/docs/automation/integrations/make)**
>
> Integrate 1600+ tools with your app.
