Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

guruprem
Contributor 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
MVP
MVP

Re: Alternative to IF statement

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
3 Replies
MVP
MVP

Re: Alternative to IF statement

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

Re: Alternative to IF statement

Applymap is the better option.

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

reddys310
Honored Contributor II

Re: Alternative to IF statement

Hi Guruprem,

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

Thanks,

Sangram.

Community Browser