<?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: query on peek function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341491#M842447</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 redefine my load script but it is giving me error in IF condition i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if($(vTest)&amp;gt;0) &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;test:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoOfRows('TESTMain') as CountNO&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident TESTMain;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table TESTMain;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vTest = peek('CountNO',0,'test')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if($(vTest)&amp;gt;0) Then&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EXIT Script&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;endif&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2017 14:21:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-19T14:21:22Z</dc:date>
    <item>
      <title>query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341486#M842442</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 facing some issue in the below load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;NoOfRows('TESTMain') as CountNO &lt;/P&gt;&lt;P&gt;Resident TESTMain;&lt;/P&gt;&lt;P&gt;Drop Table TESTMain;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTest = peek('CountNO',0,'test')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(vCount)&amp;gt;0) Then &lt;/P&gt;&lt;P&gt;EXIT Script&lt;/P&gt;&lt;P&gt;Endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting script line error message in below lines&lt;/P&gt;&lt;P&gt;(if(&amp;gt;0) Then) , &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking for null condition but not sure why the variable vTest does not returns any value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341486#M842442</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341487#M842443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe just use the variable vTest instead of vCount?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF&amp;nbsp; &lt;STRONG&gt;vTest &lt;/STRONG&gt;&amp;gt;0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341487#M842443</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-19T12:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341488#M842444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was a typo. I use the same but it not giving any value. It gives error message as stated in my earlier note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341488#M842444</guid>
      <dc:creator />
      <dc:date>2017-04-19T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341489#M842445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the exact script snippet content. There is easily a semicolon missing if you type it manually, e.g. after exit script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit script&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In total, I think you just need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF NoOfRows('TESTMain') &amp;gt;0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Exit script;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;END IF&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341489#M842445</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-19T13:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341490#M842446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems like you are missing semicolon&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vTest = peek('CountNO',0,'test') &lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;STRONG style="color: #ff0000;"&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341490#M842446</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-04-19T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341491#M842447</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 redefine my load script but it is giving me error in IF condition i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if($(vTest)&amp;gt;0) &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;test:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoOfRows('TESTMain') as CountNO&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident TESTMain;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table TESTMain;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vTest = peek('CountNO',0,'test')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if($(vTest)&amp;gt;0) Then&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EXIT Script&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;endif&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341491#M842447</guid>
      <dc:creator />
      <dc:date>2017-04-19T14:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341492#M842448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked the variable content in script debugger or with a TRACE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that you don't need dollar sign expansion in the IF statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF vTEST &amp;gt; 0 THEN&lt;/P&gt;&lt;P&gt;Exit script;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // don't forget the semicolon...&lt;/P&gt;&lt;P&gt;END IF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // I believe it's written that way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341492#M842448</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-19T14:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341493#M842449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I normally use the NoOfRows() function to get the number of rows in a table directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;vNoOfRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;('SalesTable');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;vNoOfQVDRows&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;QvdNoOfRecords&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;('QVD_SalesTable.qvd'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;It's faster to execute and easier to maintain.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341493#M842449</guid>
      <dc:creator>klausskalts</dc:creator>
      <dc:date>2017-04-19T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341494#M842450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;seems to be working without an error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341494#M842450</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-04-19T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341495#M842451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan.&lt;/P&gt;&lt;P&gt;Condition work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one more thing does variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vTEST &lt;/SPAN&gt;return NULL or give some numeric data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341495#M842451</guid>
      <dc:creator />
      <dc:date>2017-04-19T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: query on peek function</title>
      <link>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341496#M842452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Just one more thing does variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vTEST &lt;/SPAN&gt;return NULL or give some numeric data.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a question? Well, it depends how you define the variable...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-on-peek-function/m-p/1341496#M842452</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-19T14:54:06Z</dc:date>
    </item>
  </channel>
</rss>

