# Insert rows when column value changes

**URL:** <https://community.parabola.io/t/insert-rows-when-column-value-changes/3067>\
**Category:** Ask a question\
**Created:** [November 18, 2024, 2:14am UTC](https://community.parabola.io/t/insert-rows-when-column-value-changes/3067 "2024-11-18T02:14:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JavaMania](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@JavaMania](https://community.parabola.io/u/JavaMania)\
**Post date:** [November 18, 2024, 2:14am UTC](https://community.parabola.io/t/insert-rows-when-column-value-changes/3067/1 "2024-11-18T02:14:23Z")

</div>

I have a table sorted by a column value “weight.”

Every time the value in the column changes, I want to insert a new record before the record containing the new value along with some text. Possible?

|Column 1 | Column 2 | Column 3 | Column 4|  
|id | weight | Product Info | —|  
| 1| A | Product Text A | |  
| 2| A | Product Text A| |  
| 3| B | Product Text B| |  
| | | | |  
| | | | |  
| | | | |

|Column 1 | Column 2 | Column 3 | Column 4|  
|id | weight | Product Info | —|  
| 1| A | Product Text A| |  
| 2| A | Product Text A| |  
| 3| A | Newly Inserted Text For Record Change | |  
| 4| B | Product Text B| |

---

<div class="post-metadata">

**Author:** ![Cat\_Tang](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Cat\_Tang](https://community.parabola.io/u/Cat_Tang)\
**Post date:** [November 18, 2024, 10:30pm UTC](https://community.parabola.io/t/insert-rows-when-column-value-changes/3067/2 "2024-11-18T22:30:23Z")

</div>

Hi, welcome to the community!

If you’re looking to alter a specific step based on changes to the data between runs, you’ll need to save the prior and current data with some database (Excel, Parabola Tables) and use an if-else to compare differences and make action based off of that.

To get an answer more specific to your use case, you can email [help@parabola.io](mailto:help@parabola.io) with your flow link and we can help troubleshoot.
