<?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: Strange Peek() behaviour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58734#M610461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah yes, I forgot about that! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 14:25:04 GMT</pubDate>
    <dc:creator>juleshartley</dc:creator>
    <dc:date>2018-02-06T14:25:04Z</dc:date>
    <item>
      <title>Strange Peek() behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58730#M610457</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;Can anyone explain this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table loaded as below&lt;/P&gt;&lt;P&gt;MxDate&lt;/P&gt;&lt;P&gt;43008&lt;/P&gt;&lt;P&gt;42978&lt;/P&gt;&lt;P&gt;42916&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put this field in a list box and sort by 'load order' and show frequency I only have single values in the order shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have lines in my scrips as below:&lt;/P&gt;&lt;P&gt;let vRepDate = Peek('MxDate', 0);&lt;/P&gt;&lt;P&gt;let vRepDatePrior= Peek('MxDate', 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns vRepDate = 43008 (correct)&lt;/P&gt;&lt;P&gt;but vRepDatePrior = &lt;STRONG&gt;42916&lt;/STRONG&gt; !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58730#M610457</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2018-02-06T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Peek() behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58731#M610458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't reproduce this behaviour with the Information provided.&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: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; MxDate&lt;BR /&gt; 43008&lt;BR /&gt; 42978&lt;BR /&gt; 42916&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vRepDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('MxDate', 0);&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vRepDatePrior&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('MxDate', 1);&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How is your field MxDate created? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58731#M610458</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-06T13:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Peek() behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58732#M610459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating it as follows:&lt;/P&gt;&lt;P&gt;MxDate:&lt;/P&gt;&lt;P&gt;Load Distinct Num(Date) as MxDate Resident Performance order by date desc;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58732#M610459</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2018-02-06T13:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Peek() behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58733#M610460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The DISTINCT qualifier can mix up your output table rows, so the resulting MxDate table is not sorted in descending order ( the order by clause is only affecting the Input table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the table view table preview to see what I am talking about.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 14:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58733#M610460</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-06T14:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Peek() behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58734#M610461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah yes, I forgot about that! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 14:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Peek-behaviour/m-p/58734#M610461</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2018-02-06T14:25:04Z</dc:date>
    </item>
  </channel>
</rss>

