<?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 creating issue for Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303451#M825021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Let use Set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vMaxDate = ........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2017 11:41:05 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2017-07-13T11:41:05Z</dc:date>
    <item>
      <title>Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303450#M825020</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 want to determine the max date for my incremental load. But when I am using Peek function the variable is showing wrong format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in source date is in below format:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170121_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;My Script is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last_Date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date (max(action_date$)) as MaxActionDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMaxDate = Date(peek('MaxActionDate',0,'Last_Date'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxActionDate is showing in right format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/170122_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;But Variable vMaxDate is showing in wrong format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/170126_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Could you please help to get this correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&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-creating-issue-for-Date/m-p/1303450#M825020</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303451#M825021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Let use Set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vMaxDate = ........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303451#M825021</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-07-13T11:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303452#M825022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;Max(action_date$) as MaxActionDate&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;E&gt;&lt;/E&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(qvd);&lt;/STRONG&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;&lt;STRONG&gt;LET vMaxDate = Date(Peek('MaxActionDate',0,'Last_Date'));&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303452#M825022</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T11:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303453#M825023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May it will help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(TransactionDate) as minDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(TransactionDate) as maxDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident LinKTable;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303453#M825023</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-07-13T12:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303454#M825024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny ,&lt;/P&gt;&lt;P&gt;This is also not working. I am getting result like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170127_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303454#M825024</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2017-07-13T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303455#M825025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you are using your variable without the dollar sign expansion on the front end...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it as &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxDate &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;instead of &lt;STRONG&gt;=$(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vMaxDate)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303455#M825025</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303456#M825026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&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;Last_Date:&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;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(floor(max(action_date$))) as MaxActionDate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(qvd);&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 vMaxDate = peek('MaxActionDate',0,'Last_Date');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303456#M825026</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-13T12:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303457#M825027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date(maxActionDate);&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Timestamp(&lt;SPAN style="font-size: 13.3333px;"&gt;maxActionDate&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303457#M825027</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-07-13T12:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303458#M825028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okk..it is working..&lt;/P&gt;&lt;P&gt;what happens if we put $?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303458#M825028</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2017-07-13T13:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303459#M825029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;6/30/2017 is evaluated as 6 divided by 30 divided by 2017....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303459#M825029</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T13:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303460#M825030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okk&lt;/P&gt;&lt;P&gt;this is very tricky.. do u have any good doc on the variable. Like when we will use Set and when Let. When we will use $ and when not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303460#M825030</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2017-07-13T13:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303461#M825031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For set and let&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikviewaddict.com/2012/02/set-vs-let.html" title="http://www.qlikviewaddict.com/2012/02/set-vs-let.html"&gt;QlikView Addict: SET vs. LET&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dollar sign expansion&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Equal sign&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303461#M825031</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T13:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function creating issue for Date</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303462#M825032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny... you are always very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-creating-issue-for-Date/m-p/1303462#M825032</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2017-07-13T13:50:15Z</dc:date>
    </item>
  </channel>
</rss>

