Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohit_bibe07
Contributor
Contributor

replace value

How to replace column older values to new values ?

old value                    new value

Data science               Data Science

JAVA                               Java

sap                                  SAP

and so on...

Labels (2)
1 Solution

Accepted Solutions
vchuprina
Specialist
Specialist

Hi,

You can create a mapping table and then use applymap function.

As example 

Name_Map:

Mapping

LOAD * Inline [

KEY, VALUE

Data science ,             Data Science

JAVA,                               Java

sap,                                  SAP

];

Your load:

Data:

LOAD

 applymap('Name_Map', Name) AS Name,

...

From ...

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").

View solution in original post

2 Replies
vchuprina
Specialist
Specialist

Hi,

You can create a mapping table and then use applymap function.

As example 

Name_Map:

Mapping

LOAD * Inline [

KEY, VALUE

Data science ,             Data Science

JAVA,                               Java

sap,                                  SAP

];

Your load:

Data:

LOAD

 applymap('Name_Map', Name) AS Name,

...

From ...

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
vinieme12
Champion III
Champion III

either mapping load as show below or just left join; and drop the old column

RawData:

Load * from sSomeQvd;

 

Left Join(RawData);

old value                    new value

Data science               Data Science

JAVA                               Java

sap                                  SAP

 

drop field oldvalue;

rename field newvalue to oldvalue;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.