<?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 How to change the if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707469#M254857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi We are Loading QVDs&amp;nbsp; from Database based on the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not isnull(QVDCreateTime('$(vQVDPath)IDS_$(tableName).qvd')) then&lt;/P&gt;&lt;P&gt;LoadTime:&lt;/P&gt;&lt;P&gt;Load Max(LastModifiedDate) as LastModifiedDate // Or max(CreatedDate)&lt;/P&gt;&lt;P&gt;From $(vQVDPath)IDS_$(tableName).qvd (qvd);&lt;/P&gt;&lt;P&gt;Let vLastExecTime = timestamp(peek('LastModifiedDate',0,'LoadTime'),'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;&lt;P&gt;//Let LastModifiedTimestamp = '$(vLastExecTime)';&lt;/P&gt;&lt;P&gt;Drop Table LoadTime;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call FullTableLoad(tableName);&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT SUB;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to this if QVD is not AVailable on that particular path its doing a full load, &lt;/P&gt;&lt;P&gt;now what we need is&amp;nbsp; if QVD is Availbale and contains 0 records then again&amp;nbsp; it has do a full load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need to write and if condition here. please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2014 04:07:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-19T04:07:50Z</dc:date>
    <item>
      <title>How to change the if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707469#M254857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi We are Loading QVDs&amp;nbsp; from Database based on the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not isnull(QVDCreateTime('$(vQVDPath)IDS_$(tableName).qvd')) then&lt;/P&gt;&lt;P&gt;LoadTime:&lt;/P&gt;&lt;P&gt;Load Max(LastModifiedDate) as LastModifiedDate // Or max(CreatedDate)&lt;/P&gt;&lt;P&gt;From $(vQVDPath)IDS_$(tableName).qvd (qvd);&lt;/P&gt;&lt;P&gt;Let vLastExecTime = timestamp(peek('LastModifiedDate',0,'LoadTime'),'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;&lt;P&gt;//Let LastModifiedTimestamp = '$(vLastExecTime)';&lt;/P&gt;&lt;P&gt;Drop Table LoadTime;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call FullTableLoad(tableName);&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT SUB;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to this if QVD is not AVailable on that particular path its doing a full load, &lt;/P&gt;&lt;P&gt;now what we need is&amp;nbsp; if QVD is Availbale and contains 0 records then again&amp;nbsp; it has do a full load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need to write and if condition here. please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 04:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707469#M254857</guid>
      <dc:creator />
      <dc:date>2014-06-19T04:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707470#M254858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use row count function in your iff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 04:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707470#M254858</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-06-19T04:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707471#M254859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some thing like this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let RowCount= NoOfRows('ActionCheck');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If '$(RowCount)' &amp;lt;&amp;gt; '0' THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Action check is a table.&lt;/P&gt;&lt;P&gt;You can call the qvd and do full reload and then check for the NoOf Rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 04:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707471#M254859</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-06-19T04:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707472#M254860</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;&lt;/P&gt;&lt;P&gt;if not isnull(QVDCreateTime('$(vQVDPath)IDS_$(tableName).qvd')) or &lt;STRONG&gt;(exists('$(vQVDPath)IDS_$(tableName).qvd') and QvdNoOfRecords('$(vQVDPath)IDS_$(tableName).qvd')=0)&lt;/STRONG&gt;&amp;nbsp; ) then&lt;/P&gt;&lt;P&gt;LoadTime:&lt;/P&gt;&lt;P&gt;Load Max(LastModifiedDate) as LastModifiedDate // Or max(CreatedDate)&lt;/P&gt;&lt;P&gt;From $(vQVDPath)IDS_$(tableName).qvd (qvd);&lt;/P&gt;&lt;P&gt;Let vLastExecTime = timestamp(peek('LastModifiedDate',0,'LoadTime'),'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;&lt;P&gt;//Let LastModifiedTimestamp = '$(vLastExecTime)';&lt;/P&gt;&lt;P&gt;Drop Table LoadTime;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call FullTableLoad(tableName);&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT SUB;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 04:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707472#M254860</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-06-19T04:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707473#M254861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the Reply ,&lt;/P&gt;&lt;P&gt;Yes It Will work .Thanks a Lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 05:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-change-the-if-condition/m-p/707473#M254861</guid>
      <dc:creator />
      <dc:date>2014-06-19T05:33:17Z</dc:date>
    </item>
  </channel>
</rss>

