Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
guruprem
Partner - Creator III
Partner - Creator III

Alternative to IF statement

Dear Experts,

I am bored of writing IF statement to replace data with dummy data, please suggest me the quickest way, following is example of what I wanna achieve.

CurrentFeild  ResultFeild

James     Apple

John        Banana

Sarah      Avpcado

...               ....

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Create a mapping table (load from inline or from Excel) and use ApplyMap to replace the current field with the result.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Create a mapping table (load from inline or from Excel) and use ApplyMap to replace the current field with the result.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Colin-Albert

Applymap is the better option.

See this post for more details Don't join - use Applymap instead

reddy-s
Master II
Master II

Hi Guruprem,

You can also make use of a Lookup() function.

Thanks,

Sangram.