<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic If Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1768959#M717411</link>
    <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I have a query in writing if statement.&amp;nbsp; I have list of country names and need to group them with certain criteria and countries those which not satisfies criteria should me mentioned as 'Others'. Any one can please advise how to write script for this.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;if(Country=Kuwait' or &lt;FONT&gt;Country&lt;/FONT&gt;='Abu Dhabi' or &lt;FONT&gt;Country&lt;/FONT&gt;='Qatar' or &lt;FONT&gt;Country&lt;/FONT&gt;='Bahrain' or &lt;FONT&gt;Country&lt;/FONT&gt;='Iraq' or &lt;FONT&gt;Country&lt;/FONT&gt;='Dubai ' , 'Gulf Countries', if(&lt;FONT&gt;Country&lt;/FONT&gt;='Jordan' orCountry='&lt;FONT&gt;Saudi Arabia&lt;/FONT&gt;' , 'Middle East Countries', ______) as Region&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:26:34 GMT</pubDate>
    <dc:creator>Saro_2306</dc:creator>
    <dc:date>2024-11-15T23:26:34Z</dc:date>
    <item>
      <title>If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1768959#M717411</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I have a query in writing if statement.&amp;nbsp; I have list of country names and need to group them with certain criteria and countries those which not satisfies criteria should me mentioned as 'Others'. Any one can please advise how to write script for this.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;if(Country=Kuwait' or &lt;FONT&gt;Country&lt;/FONT&gt;='Abu Dhabi' or &lt;FONT&gt;Country&lt;/FONT&gt;='Qatar' or &lt;FONT&gt;Country&lt;/FONT&gt;='Bahrain' or &lt;FONT&gt;Country&lt;/FONT&gt;='Iraq' or &lt;FONT&gt;Country&lt;/FONT&gt;='Dubai ' , 'Gulf Countries', if(&lt;FONT&gt;Country&lt;/FONT&gt;='Jordan' orCountry='&lt;FONT&gt;Saudi Arabia&lt;/FONT&gt;' , 'Middle East Countries', ______) as Region&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1768959#M717411</guid>
      <dc:creator>Saro_2306</dc:creator>
      <dc:date>2024-11-15T23:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1768967#M717412</link>
      <description>&lt;P&gt;If you have a lot of values then it could be a better approach to use a mapping table and ApplyMap() to solve your need. Take a look at the script below.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;mapRegion:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Kuwait,&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Gulf Countries&lt;BR /&gt;Abu Dhabi,&amp;nbsp; &amp;nbsp; Gulf Countries&lt;BR /&gt;Qatar,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gulf Countries&lt;BR /&gt;Bahrain,&amp;nbsp; &amp;nbsp; &amp;nbsp; Gulf Countries&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Iraq,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gulf Countries&lt;BR /&gt;Jordan,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Middle East Countries&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Saudi Arabia, Middle East Countries&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;Norway,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Scandinavian Countries&lt;BR /&gt;Sweden,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Scandinavian Countries&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD *,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;applymap('mapRegion', &lt;SPAN&gt;Country, 'No region') as Region&lt;BR /&gt;FROM SOURCE;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 12:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/1768967#M717412</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-16T12:40:16Z</dc:date>
    </item>
  </channel>
</rss>

