# Dynamically duplicate x Rows in a table based on criteria

**URL:** <https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635>\
**Category:** Ask for Help\
**Created:** [June 10, 2023, 7:11pm UTC](https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635 "2023-06-10T19:11:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tamara\_Didenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tamara_didenko/32/42215_2.png) [@Tamara\_Didenko](https://community.glideapps.com/u/Tamara_Didenko)\
**Post date:** [June 10, 2023, 7:58pm UTC](https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635/2 "2023-06-10T19:58:39Z")

</div>

Why do you need to duplicate those rows? Is there any other information stored in those rows that would change week-to-week?

If the goal is to simply duplicate the week exactly, you don’t need to duplicate rows, you just need to duplicate relations  
 ![CleanShot 2023-06-10 at 12.52.30](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/1/b1dad63c2210d5f8125b4d75370bad5a84c1bfab.gif)

Here I have 2 tables:  
**Workouts** just has your “unique workouts”

 ![CleanShot 2023-06-10 at 12.53.49@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/b/ab9d74f2a5dd7a8ab61a5bbbcfc85e984100e90b.png)

And **weeks**

 ![CleanShot 2023-06-10 at 12.54.47@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/3/83ba32a4549078a7a350f9469044d9caf889018e.png)  
Which has a list of workouts for that week.

Week numbering can also be automatic, I’m just being lazy here 🤪 But check [this post](https://community.glideapps.com/t/how-do-i-create-an-auto-incrementing-row-number-with-glide-tables/39572)

---

_[View the full topic](https://community.glideapps.com/t/dynamically-duplicate-x-rows-in-a-table-based-on-criteria/62635)._
