<?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: Conditional Load statement (Checking for table existence while loading) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895239#M1000549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add a rowno() to the loading table and then check if this is higher than one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table&lt;/P&gt;&lt;P&gt;load:&lt;/P&gt;&lt;P&gt;field1,&lt;/P&gt;&lt;P&gt;field2,&lt;/P&gt;&lt;P&gt;rowno() as Rowno&lt;/P&gt;&lt;P&gt;from data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rowno)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&amp;gt;= 1 then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whatever goes here &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;end if&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 16:56:29 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-06-15T16:56:29Z</dc:date>
    <item>
      <title>Conditional Load statement (Checking for table existence while loading)</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895237#M1000547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in Qlikview where I need to display the total quarter wise. My approach was to create quarter wise data from the main table (i.e. create separate table for each quarter) and then calculating the total, after which combining the separate quarter tables into a single table. While doing this, qlikview throws an error since my last two quarters data is unavailable and hence the table is empty. Is there any way to check whether table contains data while loading it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895237#M1000547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-15T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load statement (Checking for table existence while loading)</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895238#M1000548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to check a external file (like a Excel file) to see if it exists or not? or is it during a resident load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External file can be checked like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vFile = 'Data\XYZ.qvd'; //Path of the file where you have to check&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFileExist = If(FileSize(vFile) &amp;gt; 0, -1, 0); /* Checking if the file exist in the directory. */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF $(vFileExist) then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895238#M1000548</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-15T16:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load statement (Checking for table existence while loading)</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895239#M1000549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add a rowno() to the loading table and then check if this is higher than one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table&lt;/P&gt;&lt;P&gt;load:&lt;/P&gt;&lt;P&gt;field1,&lt;/P&gt;&lt;P&gt;field2,&lt;/P&gt;&lt;P&gt;rowno() as Rowno&lt;/P&gt;&lt;P&gt;from data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rowno)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&amp;gt;= 1 then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whatever goes here &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;end if&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895239#M1000549</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-06-15T16:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load statement (Checking for table existence while loading)</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895240#M1000550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(NoofRows('Table1')&amp;gt;0)then&lt;/P&gt;&lt;P&gt;//Load&lt;/P&gt;&lt;P&gt;//Resident table1;&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This condition works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for you help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 06:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-statement-Checking-for-table-existence-while/m-p/895240#M1000550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-16T06:45:18Z</dc:date>
    </item>
  </channel>
</rss>

