How can we compare current and previous row in snaplogic

How can we compare current and previous row in snaplogic similar logic implemented in informatica