Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hadoopuser
Contributor
Contributor

create new field from a loaded one qlikview

Hello,

I have an issue to settle.
I have already loaded data, now I want to create  another field according to origin field.


if (origin = "paris" or "London" or berlin or ....) 
then create "origin europe"
else (origin="texas" or "Seattle" or "new York" or "toronto...)
then create "origin america"
else create "origin Asia"
end if

thanks for your help.

1 Reply
Vegar
MVP
MVP

You could solve it by using ApplyMap.

Map:
MAPPING LOAD
A,B
Paris, Europa
London, Europa
Berlin,Europa
Texas, America
Seattle, America
];

YourTable:
Load
*,
ApplyMap('Map', origin, 'Asia') as Region
From Data;