<?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-ELSE or CASE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-ELSE-or-CASE/m-p/188161#M51531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, ideally, that's the better solution. But due to my db structure in QV, i can't do it that way.&lt;/P&gt;&lt;P&gt;I need this zone to intact with the original table. after that, i'll use the value of this field to create key like (year &amp;amp; - &amp;amp; Zone) as PriKey.&lt;/P&gt;&lt;P&gt;but, or there's a way to do the same with your ideal? i haven't figured it out yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, the nested if statement is working by removing the column name in the [then] condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 06:09:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-15T06:09:12Z</dc:date>
    <item>
      <title>IF-ELSE or CASE</title>
      <link>https://community.qlik.com/t5/QlikView/IF-ELSE-or-CASE/m-p/188159#M51529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to do a preceding load, and it will change the original value to something else.&lt;/P&gt;&lt;P&gt;For example, i have a column of zone in a table, which i need to rename the zone, from AP &amp;gt; Asia, EU &amp;gt; Europe.&lt;/P&gt;&lt;P&gt;I know in vb we normally do CASE, or even IF-ELSE. but is there IF-ELSE in Qlikview?&lt;/P&gt;&lt;P&gt;i did a nested IF-ELSE like this...&lt;/P&gt;&lt;P&gt;if(Geographical_zone='AF', RefzoneCode='EUROPE', (IF(Geographical_zone='AS-PA', RefzoneCode='ASIE', (if(Geographical_zone='NA', RefzoneCode='AMERIQ', (if(Geographical_zone='LA', RefzoneCode='AMERSU', (if(Geographical_zone='ME', RefzoneCode='EUROPE', ( if(Geographical_zone='EU', RefzoneCode='EUROPE') ) ) ) ) ) )))))as RefzoneCode,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doesn't really work. If you have better idea, please share with me? &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 02:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-ELSE-or-CASE/m-p/188159#M51529</guid>
      <dc:creator />
      <dc:date>2010-06-15T02:37:46Z</dc:date>
    </item>
    <item>
      <title>IF-ELSE or CASE</title>
      <link>https://community.qlik.com/t5/QlikView/IF-ELSE-or-CASE/m-p/188160#M51530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With QlikView, I try to avoid using these classical if-else statements. Instead, try using the incredible associative power built-in to QlikView.&lt;/P&gt;&lt;P&gt;For example, try adding the following line of code to your script:&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt 0.5in;mso-layout-grid-align:none;"&gt;&lt;B&gt;LOAD&lt;/B&gt; * &lt;B&gt;INLINE&lt;/B&gt; [&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;Geographical_zone, RefzoneCode&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;AF, EUROPE&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;AS-PA, ASIE&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;NA, AMERIQ&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;LA, AMERSU&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;ME, EUROPE&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;EU, EUROPE&lt;/P&gt;&lt;P style="margin:0in 0in 0pt 0.5in;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you reload your script with the code above, every record that has a matching Geographical_zone value will now be associated with a corresponding RefzoneCode. No functions or special coding required.&lt;/P&gt;&lt;P&gt;I hope this helps ensure your success.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 05:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-ELSE-or-CASE/m-p/188160#M51530</guid>
      <dc:creator />
      <dc:date>2010-06-15T05:11:23Z</dc:date>
    </item>
    <item>
      <title>IF-ELSE or CASE</title>
      <link>https://community.qlik.com/t5/QlikView/IF-ELSE-or-CASE/m-p/188161#M51531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, ideally, that's the better solution. But due to my db structure in QV, i can't do it that way.&lt;/P&gt;&lt;P&gt;I need this zone to intact with the original table. after that, i'll use the value of this field to create key like (year &amp;amp; - &amp;amp; Zone) as PriKey.&lt;/P&gt;&lt;P&gt;but, or there's a way to do the same with your ideal? i haven't figured it out yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, the nested if statement is working by removing the column name in the [then] condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 06:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-ELSE-or-CASE/m-p/188161#M51531</guid>
      <dc:creator />
      <dc:date>2010-06-15T06:09:12Z</dc:date>
    </item>
  </channel>
</rss>

