# Compare previous fields in same repeating group

**URL:** <https://forum.bubble.io/t/compare-previous-fields-in-same-repeating-group/301268>\
**Category:** Need help\
**Created:** [January 9, 2024, 2:06pm UTC](https://forum.bubble.io/t/compare-previous-fields-in-same-repeating-group/301268 "2024-01-09T14:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![airton](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@airton](https://forum.bubble.io/u/airton)\
**Post date:** [January 9, 2024, 2:06pm UTC](https://forum.bubble.io/t/compare-previous-fields-in-same-repeating-group/301268/1 "2024-01-09T14:06:54Z")

</div>

Hello everyone, I need to compare whether the value of the next field is equal to the value of the previous field in a repeating group.  
ex.:  
Line 1 | count 1 | value 123.00 | …  
Line 2 | count 1 | value 230.00 | … (here I need to add the current value 230.00 + previous value 123.00)  
Line 3 | **count 2** | value 222.00 | …(here if count 2 is different from count 1 then I need to write the total amount)  
Tks!

---

<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:** [March 19, 2024, 2:07pm UTC](https://forum.bubble.io/t/compare-previous-fields-in-same-repeating-group/301268/2 "2024-03-19T14:07:14Z")

</div>

Closed on March 19, 2024, 2:07pm UTC

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