<?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: Peek function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436897#M797478</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;You can find in Qlik Help with examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Peek.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Peek.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Peek.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 13:42:56 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2017-12-20T13:42:56Z</dc:date>
    <item>
      <title>Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436895#M797475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one explain the effective or advanced way of using peek function&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/Peek-function/m-p/1436895#M797475</guid>
      <dc:creator>vignesh_s</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436896#M797477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate" style="font-weight: bold; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Peek()&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt; finds the value of a field in a table for a row that has already been loaded or that exists in internal memory. The row number can be specified, as can the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H4 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;peek&lt;A name="kanchor48" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;&lt;A name="peek" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;/A&gt;(&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/H4&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Returns the contents of the &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;row&lt;/SPAN&gt; in the input table &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a quoted literal).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Row&lt;/SPAN&gt; must be an integer. 0 denotes the first record, 1 the second and so on. Negative numbers indicate order from the end of the table. -1 denotes the last record read.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If no &lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Tablename&lt;/SPAN&gt; is a &lt;A style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;table label&lt;/A&gt; without the ending colon. &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If no &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: italic; font-family: inherit;"&gt;tablename&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; is stated, the current table is assumed. If used outside the load statement or referring to another table, the tablename must be included.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Examples:&lt;/H2&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;peek( 'Sales' )&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; in the previous record read ( equivalent to&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: bold; font-style: inherit; font-family: inherit;"&gt;previous(&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: bold; font-style: inherit; font-family: inherit;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;peek( 'Sales', 2 )&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; from the third record read from the current input table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;peek( 'Sales', -2 )&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; from the second last record read into the current input table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;peek( 'Sales', 0, Tab1 )&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;returns the value of &lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: italic; font-family: inherit;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; from the first record read into the input table labeled Tab1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="Bold" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...;&lt;/SPAN&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;creates an accumulation of B in Bsum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A href="https://community.qlik.com/thread/124184"&gt;How to use Peek function?&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="margin: 0 0 0 40px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436896#M797477</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2017-12-20T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436897#M797478</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;You can find in Qlik Help with examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Peek.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Peek.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Peek.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436897#M797478</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-12-20T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436898#M797479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vignesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek is effective in a bunch of ways. One example would be for a custom pagination loop within a REST connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below I am grabbing the "x-total-count" of ALL the records from the source "120,000" from the header. Using peek - I then peek into the totalTable's "x-total-count" value and set that as my new "total" variable. Additionally with some limitations you can "peek" into other tables and use specific values from them locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;totalTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"X-Total-Count" AS "X-Total-Count_u1"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM JSON(wrap on) "_KEY_response_header";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let total = &lt;STRONG&gt;peek&lt;/STRONG&gt;('X-Total-Count_u1',0,'totalTable');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP TABLE totalTable;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let totalfetched = 0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let startAt = 0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let pageSize = 10000;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;for startAt = 0 to total&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TRACE "startAt: " $(startAt);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- Derek &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function/m-p/1436898#M797479</guid>
      <dc:creator>Demlet</dc:creator>
      <dc:date>2017-12-20T13:43:59Z</dc:date>
    </item>
  </channel>
</rss>

