<?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: difference between Peek() and Pick() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756737#M1029936</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;It may helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="4073" data-objecttype="102" href="https://community.qlik.com/docs/DOC-4073" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Peek() vs Previous() – When to Use Each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2015 06:01:38 GMT</pubDate>
    <dc:creator>krishna20</dc:creator>
    <dc:date>2015-02-20T06:01:38Z</dc:date>
    <item>
      <title>difference between Peek() and Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756734#M1029933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please give me an example of each function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 05:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756734#M1029933</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2015-02-20T05:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Peek() and Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756735#M1029934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek function allows you to get the rows from a table based on the parameter provided&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Syntax: peek(fieldname [ , row [ , tablename ] ] )&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;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Eg: LET varMinDate = Num(Peek('ExpenseDate', 0, 'Expenses'));&lt;/STRONG&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="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;varmindate will have the first row from the expesnses table from the expensedate field&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pick function&lt;/P&gt;&lt;P class="syntax" 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;pick(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;n, expr1[ , expr2,...exprN]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="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;Returns the &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;n&lt;/SPAN&gt;:th expression in the list. &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;n&lt;/SPAN&gt; is an integer between 1 and &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;N&lt;/SPAN&gt;.&lt;/P&gt;&lt;P class="example" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Example:&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="Code" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;pick( N'A''B'4, , , )&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;returns &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'B'&lt;/SPAN&gt; if &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;N&lt;/SPAN&gt; = &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;2&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;returns &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;4&lt;/SPAN&gt; if &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;N&lt;/SPAN&gt; = &lt;SPAN class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;3&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="Italic" style="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 class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;pick is like an if else statement&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="Italic" style="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 class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;eg &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;pick function in charts-----suppose different colors for different dimension values.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;for example-expression---&amp;gt;backgroundcolor----&amp;gt;pick(match(country,'india','usa','uk'),red(),blue(),green())&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="Italic" style="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 class="Italic" style="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 class="Italic" style="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 class="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;regards&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="Italic" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Nadeem&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 05:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756735#M1029934</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-02-20T05:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Peek() and Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756736#M1029935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Peek() is used in the script, pick()&amp;nbsp; - on the front end.&amp;nbsp; From Help:&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;peek(fieldname [ , row [ , tablename ] ] )&lt;/STRONG&gt;&lt;/P&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 fieldname in the record specified by row in the internal table tablename. 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;Fieldname 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;Row 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 row 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;Tablename is a table label, see Table Labels, without the ending colon. If no tablename is stated, the current table is assumed. If used outside the load statement or referring to another table, the tablename must be included.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;peek( 'Sales' ) &lt;BR /&gt;returns the value of Sales in the previous record read ( equivalent to previous(Sales) ).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;peek( 'Sales', 2 ) &lt;BR /&gt;returns the value of Sales from the third record read from the current internal table.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;peek( 'Sales', -2 ) &lt;BR /&gt;returns the value of Sales from the second last record read into the current internal table.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;peek( 'Sales', 0, 'Tab1' ) &lt;BR /&gt;returns the value of Sales from the first record read into the input table labeled Tab1.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...; &lt;BR /&gt;creates an accumulation of B in Bsum.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;pick(n, expr1[ , expr2,...exprN])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Returns the n:th expression in the list. n is an integer between 1 and N.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;pick( N'A''B'4, , , )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;returns 'B' if N = 2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;returns 4 if N = 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 05:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756736#M1029935</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-02-20T05:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Peek() and Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756737#M1029936</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;It may helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="4073" data-objecttype="102" href="https://community.qlik.com/docs/DOC-4073" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Peek() vs Previous() – When to Use Each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 06:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756737#M1029936</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2015-02-20T06:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Peek() and Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756738#M1029937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Main difference between Peek &amp;amp; Pick,Peek is Inter Record Function &amp;amp; Pick is Conditional Function.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukesh Chaudhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 06:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756738#M1029937</guid>
      <dc:creator>mukesh24</dc:creator>
      <dc:date>2015-02-20T06:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Peek() and Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756739#M1029938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is best example to understand the fundamental of Pick function please go through the below link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=HIBNf0YY0jY" title="https://www.youtube.com/watch?v=HIBNf0YY0jY"&gt;https://www.youtube.com/watch?v=HIBNf0YY0jY&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will sure be&amp;nbsp; happy once you implemented the same at your end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 10:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756739#M1029938</guid>
      <dc:creator>alis2063</dc:creator>
      <dc:date>2018-01-26T10:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Peek() and Pick() function</title>
      <link>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756740#M1029939</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;Simple explanation is;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(), it is used to pick a value at a given function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peek(), used to extract particular record value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 09:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/difference-between-Peek-and-Pick-function/m-p/756740#M1029939</guid>
      <dc:creator>jobsonkjoseph</dc:creator>
      <dc:date>2018-10-18T09:07:38Z</dc:date>
    </item>
  </channel>
</rss>

