<?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 function syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-function-syntax/m-p/409762#M697397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field 'class' has AAA and EAA, i would want to classify the records into ACCIDENT or ENGINEERING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax below didnot work. Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(LEFT(class,1)='A','ACCIDENT'),&lt;/P&gt;&lt;P&gt;IF(LEFT(class,1)='E','ENGINEERING') as Class_Name,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2013 15:23:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-05T15:23:08Z</dc:date>
    <item>
      <title>IF function syntax</title>
      <link>https://community.qlik.com/t5/QlikView/IF-function-syntax/m-p/409762#M697397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field 'class' has AAA and EAA, i would want to classify the records into ACCIDENT or ENGINEERING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax below didnot work. Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(LEFT(class,1)='A','ACCIDENT'),&lt;/P&gt;&lt;P&gt;IF(LEFT(class,1)='E','ENGINEERING') as Class_Name,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 15:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-function-syntax/m-p/409762#M697397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-05T15:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: IF function syntax</title>
      <link>https://community.qlik.com/t5/QlikView/IF-function-syntax/m-p/409763#M697398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Try moving a parenthesis to the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;IF(LEFT(class,1)='A','ACCIDENT', IF(LEFT(class,1)='E','ENGINEERING')) as Class_Name,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 15:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-function-syntax/m-p/409763#M697398</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-05T15:27:33Z</dc:date>
    </item>
  </channel>
</rss>

