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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
marlku1234
Contributor II
Contributor II

if condition in Dimension

i have a  Dimension in chart which has following value  

dimension name country    and the value is   India, Uk , Mexico .

but i want to implement if condition where if country is India then ASIA . 

Labels (1)
2 Replies
simsa
Contributor III
Contributor III

=IF(Country = 'India','ASIA',Country)

sidhiq91
Specialist II
Specialist II

@marlku1234  You can use the below code in your script.

If (country='India','ASIA',

 if(Country='UK','Europe','Country')) as Country

If this resolves your issue, please like and accept it as a solution.