Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need to change the data in field from 0 to Yes

can any one suggest me how to do it

I am haning a field with data 0 and 1 and now I wanted to change them 0 to No and 1 to Yes

1 Solution

Accepted Solutions
sushil353
Master II
Master II

use applymap function

try this:

map1:

Mapping load * inline

[

field1,substitutevaule

0,No

1,Yes

];

now in your main table

table1:

load

abc,

xyz,

ApplyMap ('map1', mno) as newfield

from table2;

here i am assuming you have 0,1 in mno field

View solution in original post

2 Replies
spividori
Specialist
Specialist

Hi.

In the script:

load

....

if(field=0,'No','Yes') as FldNoYes

sql select...

from...;

Regards.

sushil353
Master II
Master II

use applymap function

try this:

map1:

Mapping load * inline

[

field1,substitutevaule

0,No

1,Yes

];

now in your main table

table1:

load

abc,

xyz,

ApplyMap ('map1', mno) as newfield

from table2;

here i am assuming you have 0,1 in mno field