<?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 Re: Create table using Load statement utilizing condition IF statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-table-using-Load-statement-utilizing-condition-IF/m-p/1811596#M66175</link>
    <description>&lt;P&gt;Thank you Eddie. It worked.&lt;/P&gt;</description>
    <pubDate>Sun, 30 May 2021 10:00:09 GMT</pubDate>
    <dc:creator>Chandan24k</dc:creator>
    <dc:date>2021-05-30T10:00:09Z</dc:date>
    <item>
      <title>Create table using Load statement utilizing condition IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Create-table-using-Load-statement-utilizing-condition-IF/m-p/1809738#M65984</link>
      <description>&lt;P&gt;I am trying to execute below Script but it's not working I need to use column PROD , ACT and BUSN from Table1 and create another Table Enrol based on below condition,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF PROD = 01A or 05A then load count of field ACT as ActiveCNT&amp;nbsp; and also for same condition load count of field BUSN as EnrolCNT. The table Enrol should be created which I will use again in subsequent script to concatenate with another table.&lt;/P&gt;&lt;P&gt;Tried below script but it's giving error :-&lt;/P&gt;&lt;P&gt;[Enrol]:&lt;BR /&gt;Load Today() as Date,&lt;BR /&gt;IF((PROD = '01A' OR PROD = '05A'),count(ACT),Null()) as ActiveCNT,&lt;BR /&gt;IF((PROD = '01A' OR PROD = '05A'),count(BUSN),Null()) as EnrolCNT&lt;BR /&gt;RESIDENT [Table1];&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 12:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-table-using-Load-statement-utilizing-condition-IF/m-p/1809738#M65984</guid>
      <dc:creator>Chandan24k</dc:creator>
      <dc:date>2021-05-21T12:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create table using Load statement utilizing condition IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Create-table-using-Load-statement-utilizing-condition-IF/m-p/1809750#M65986</link>
      <description>&lt;P&gt;Hi, it is failing because you forgot to group by.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
LOAD * INLINE [PROD, ACT, BUSN
01A, A, A
05A, B, B
];



[Enrol]:
NoConcatenate
Load Today() as Date,
IF((PROD = '01A' OR PROD = '05A'),count(ACT),Null()) as ActiveCNT,
IF((PROD = '01A' OR PROD = '05A'),count(BUSN),Null()) as EnrolCNT
RESIDENT [Table1]
Group By PROD
;

drop table Table1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Try this.&lt;/P&gt;&lt;P&gt;Regards Eddie&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 12:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-table-using-Load-statement-utilizing-condition-IF/m-p/1809750#M65986</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2021-05-21T12:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create table using Load statement utilizing condition IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Create-table-using-Load-statement-utilizing-condition-IF/m-p/1811596#M66175</link>
      <description>&lt;P&gt;Thank you Eddie. It worked.&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 10:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-table-using-Load-statement-utilizing-condition-IF/m-p/1811596#M66175</guid>
      <dc:creator>Chandan24k</dc:creator>
      <dc:date>2021-05-30T10:00:09Z</dc:date>
    </item>
  </channel>
</rss>

