Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Using UDJC or Java Script step to compare different rows

$
0
0
Hi,

I am looking for a way to cycle through a rowset, compare the values between rows and under certain conditions, adjust values in one of the row's fields.

For example, set Value C to Y where Value A = '003' if Value A exist with '001' and '004' and their Value B is '100'

Value A Value B Value C
001 100 -
002 200 -
003 0 Y
004 100 -

Is this somehow possible with coding in a UDJC step?
Thanks for any hint!

Bobse

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>