<?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 returns the wrong Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698242#M671390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were the dates sorted when stored in qvd? Are you looking for max date? If so, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max([date added]) a Maxdate&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vMaxDateTime = Date(Peek('Date'));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 16:55:08 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-09-15T16:55:08Z</dc:date>
    <item>
      <title>Peek function returns the wrong Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698239#M671387</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;&lt;/P&gt;&lt;P&gt;I have following table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; warehouse, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE([date-added],'DD/MM/YYYY') AS Date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDateTime = Peek('Date',-1,'Transaction');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the variable is not returning the correct date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be returning 29/05/2014 but it keeps returning 26/09/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698239#M671387</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-09-15T16:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function returns the wrong Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698240#M671388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What makes you think the it should be returning 29/05/2014?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698240#M671388</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-09-15T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function returns the wrong Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698241#M671389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zero denotes first record of the table.&lt;/P&gt;&lt;P&gt;-1 denotes last record of the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698241#M671389</guid>
      <dc:creator />
      <dc:date>2014-09-15T16:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function returns the wrong Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698242#M671390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were the dates sorted when stored in qvd? Are you looking for max date? If so, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max([date added]) a Maxdate&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vMaxDateTime = Date(Peek('Date'));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698242#M671390</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-15T16:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function returns the wrong Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698243#M671391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you display the records sorted by load order to verify the contents of the last record?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 17:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698243#M671391</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-09-15T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function returns the wrong Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698244#M671392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you looked for the max(Date) this could be an alternatively: &lt;A href="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/" title="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/"&gt;“Fastest” Method to Read max(field) From a QVD | Qlikview Cookbook&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 01:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-returns-the-wrong-Date/m-p/698244#M671392</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-16T01:05:43Z</dc:date>
    </item>
  </channel>
</rss>

