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

Multiple If-Else Conditions in Formula Step In Data Integration

$
0
0
Hi Guys,

I am new to Pentaho DI.I imported the following data from a csv file to Text File Input step.I need to do the following operations.

Case 1) If (Time=9999 and Day in (Saturday, Sunday)) and Approvedstatus=A
then StatusCode=1
Case 2) Time=9999 and Day in (Tuesday,Wednesday) and Approvedstatus=A then StatusCode=2 Else StatusCode=0

Emplid
Time
Day
ApprovedStatus
Statuscode
161022
99999
Saturday
A
161023
99999
Sunday
A
161024
99999
Monday
A
161023
99999
Tuesday
A
161024
99999
Wednesday
A
161025
145698
Wednesday
L
I need to do it all in a single step.Please help me out.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



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