# Java Snippet - Next Row Value

**URL:** <https://forum.knime.com/t/java-snippet-next-row-value/15517>\
**Category:** KNIME Analytics Platform\
**Tags:** java\
**Created:** [June 17, 2019, 11:13pm UTC](https://forum.knime.com/t/java-snippet-next-row-value/15517 "2019-06-17T23:13:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [June 18, 2019, 8:30am UTC](https://forum.knime.com/t/java-snippet-next-row-value/15517/3 "2019-06-18T08:30:12Z")

</div>

Hi there,

additionally to simulate Lag Column node with negative value one can use Moving Aggregation node. Here is example:

> [@Lag Column with Negative value?](https://forum.knime.com/t/lag-column-with-negative-value/7622/6):
>
> Hi Iris, after 4 years, do you have implemented this features? It would be very useful for me… I cannot sort desc-lag-sort asc a table of 500k elements every single time the workflow is executed: it is so sloooooooow. The Gabors solution is not useful in my case. Using the Moving Aggregation can I lag a column in the opposite way? How? Andrea

Br,  
Ivan

---

_[View the full topic](https://forum.knime.com/t/java-snippet-next-row-value/15517)._
