<?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 Error in if statement in load command in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-if-statement-in-load-command/m-p/356109#M703687</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;Let try this&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A&gt;, &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;B&gt;) as Revenue, &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if(&lt;C&gt;=12,&lt;D&gt;,0)) as Freight&lt;/D&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Resident Operations&lt;/P&gt;&lt;P&gt;Group by &lt;A&gt;;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 08:41:50 GMT</pubDate>
    <dc:creator>Sokkorn</dc:creator>
    <dc:date>2012-05-17T08:41:50Z</dc:date>
    <item>
      <title>Error in if statement in load command</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-if-statement-in-load-command/m-p/356108#M703686</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;I am getting at if statement in below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesTable:&lt;BR /&gt;Load &lt;A&gt;, sum(&lt;B&gt;) as Revenue, if(&lt;C&gt;=12,sum(&lt;D&gt;),0) as Freight&lt;BR /&gt;Resident Operations&lt;BR /&gt;Group by &lt;/D&gt;&lt;/C&gt;&lt;/B&gt;&lt;/A&gt;&lt;A&gt;;&lt;BR /&gt;Join(SalesTable)&lt;BR /&gt;Load [SO] as &lt;/A&gt;&lt;A&gt;, sum([Sales]) as SalesValue &lt;BR /&gt;Resident Sales&lt;BR /&gt;Group by [SO];&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared 2 tables: Operations and Sales and now joining these two table by field &lt;A&gt;.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest how to write if statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 08:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-if-statement-in-load-command/m-p/356108#M703686</guid>
      <dc:creator />
      <dc:date>2012-05-17T08:29:48Z</dc:date>
    </item>
    <item>
      <title>Error in if statement in load command</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-if-statement-in-load-command/m-p/356109#M703687</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;Let try this&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A&gt;, &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(&lt;B&gt;) as Revenue, &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if(&lt;C&gt;=12,&lt;D&gt;,0)) as Freight&lt;/D&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Resident Operations&lt;/P&gt;&lt;P&gt;Group by &lt;A&gt;;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 08:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-if-statement-in-load-command/m-p/356109#M703687</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2012-05-17T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Error in if statement in load command</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-if-statement-in-load-command/m-p/356110#M703688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks. Works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 08:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-if-statement-in-load-command/m-p/356110#M703688</guid>
      <dc:creator />
      <dc:date>2012-05-17T08:53:19Z</dc:date>
    </item>
  </channel>
</rss>

