<?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 Syntax trouble with IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-trouble-with-IF-statement/m-p/154045#M30813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to change 2 values to the word ABROAD. Can anyone tell me what's wrong with my syntax?&lt;/P&gt;&lt;P&gt;This code works well:&lt;/P&gt;&lt;P&gt;LOAD Clasificación,&lt;BR /&gt; if(Clasificación1='ABA','ABROAD',Clasificación1) as Clasificación1,&lt;/P&gt;&lt;P&gt;This code does not work:&lt;/P&gt;&lt;P&gt;LOAD Clasificación,&lt;BR /&gt; if(Clasificación1='ABA' or ERA','ABROAD',Clasificación1) as Clasificación1,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Feb 2010 14:43:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-21T14:43:33Z</dc:date>
    <item>
      <title>Syntax trouble with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-trouble-with-IF-statement/m-p/154045#M30813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to change 2 values to the word ABROAD. Can anyone tell me what's wrong with my syntax?&lt;/P&gt;&lt;P&gt;This code works well:&lt;/P&gt;&lt;P&gt;LOAD Clasificación,&lt;BR /&gt; if(Clasificación1='ABA','ABROAD',Clasificación1) as Clasificación1,&lt;/P&gt;&lt;P&gt;This code does not work:&lt;/P&gt;&lt;P&gt;LOAD Clasificación,&lt;BR /&gt; if(Clasificación1='ABA' or ERA','ABROAD',Clasificación1) as Clasificación1,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2010 14:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-trouble-with-IF-statement/m-p/154045#M30813</guid>
      <dc:creator />
      <dc:date>2010-02-21T14:43:33Z</dc:date>
    </item>
    <item>
      <title>Syntax trouble with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-trouble-with-IF-statement/m-p/154046#M30814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;LOAD Clasificación,&lt;BR /&gt; if(Clasificación1='ABA' or Clasificación1='ERA','ABROAD',Clasificación1) as Clasificación1,&lt;/P&gt;&lt;P&gt;You need to mention field name again after "OR" condition. And you are missing an open single quote for ERA.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2010 15:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-trouble-with-IF-statement/m-p/154046#M30814</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-21T15:21:01Z</dc:date>
    </item>
  </channel>
</rss>

