Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

country maping

Hi all,

omar bensalem

i want to map the country values to limited. how can achieve this?

i have  region and country

region:

Americas 

AsiaPacific

EMEA

in country i have so many but my requirment is   i want to show in country list   if i select  EMEA ,Americas,AsiaPacific , only below criteria should come.

In americas - UnitedStates,Canada ,OtherAMS

in AsiaPacific-  India,China, OtherAPJ

in EMEA - Germany,UnitecdKingdom ,OtherEMEA

18 Replies
avinashelite

check the attachment

OmarBenSalem

in ur load, try as follow:

if(Region='Americas', if(Country<>'UnitedStates' or Country<>'Canada', 'OtherAMS','Country),

if(Region='AsiaPacific', if(Country<>'India' or Country<>'China', 'OtherAPJ','Country),

if(Region='EMEA ', if(Country<>'Germany' or Country<>'UnitecdKingdom ', 'OtherEMEA','Country) )) as NewCountry

then use this new dimension

soniasweety
Master
Master
Author

syntax error it is showing

OmarBenSalem

Just add anoter ) in the end

soniasweety
Master
Master
Author

No sir still same error

vikasmahajan

Instead of multiple if it is recommended that  you can use apply map command in Qlikview. Refer attached demo.

HTH

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
OmarBenSalem

My bad !

    if(Region='Americas', if(Country<>'United States' and Country<>'Canada', 'OtherAMS',Country),

if(Region='Asia Pacific', if(Country<>'India' and Country<>'China', 'OtherAPJ',Country),

if(Region='EMEA', if(Country<>'Germany' and Country<>'United Kingdom', 'OtherEMEA',Country) ))) as NewCountry,

Result:

Capture.PNG

Frank_Hartmann
Master II
Master II

see attached.

hope this helps

soniasweety
Master
Master
Author

Nice approach.  Thanks