Re: Remember value from previous row?

Employee

Re: Remember value from previous row?

Hi
You have to use a tPerlFlex.
I tried to use your variables in the following example.
# start part of your Perl code
The variables initialisation
my $oldComponentColumnValue='';
my $componentColumnValue='first date';

# loop
-> tPerlFlex_1 is the tPerlFlex component unique name in my example
-> tPerlFlex_1 because beg_date is my second value in the schema (starting from 0)
$oldComponentColumnValue = $componentColumnValue;
$componentColumnValue = $tPerlFlex_1;

I'm waiting for your feedback.
Best Regards,
Michaël
Tags (1)

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download