Incremenal adding with above number

Five Stars

Incremenal adding with above number

Hello Talend Developers,

Could any one help me in sorting out the below scenario

 

I have input data like 

id|name

1|abc

2|adg

3|edc

4|tgv

5|sai

6|hil

 

and need to get o/p like 

id|name|number

1|abc|1

2|adg|1

3|edc|2

4|tgv|3

5|sai|5

6|hil|8

Thanks and Regards
Yashwanth Basetty

Accepted Solutions
Forteen Stars

Re: Incremenal adding with above number

@yashfreaky ,check the below one.

 

Untitled.png

Untitled.png

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

View solution in original post


All Replies
Forteen Stars

Re: Incremenal adding with above number

@yashfreaky ,how do you want to increment ? based on what ? is that output is correct one?

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Five Stars

Re: Incremenal adding with above number

Hi Manohar, Thank you for the quick response

please find the below process

 

0   

1   |1+0=1
1   |1+1=2

2   |2+1=3

3   |3+2=5

5   |5+3=8   like wise incremental add for last column @manodwhb

Thanks and Regards
Yashwanth Basetty
Forteen Stars

Re: Incremenal adding with above number

@yashfreaky ,check the below one.

 

Untitled.png

Untitled.png

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog