<?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 How can i use Peek Function here ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150832#M916551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i'm having &lt;SPAN style="font-size: 13.3333px;"&gt;CHECK_POINT_ID &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;DQ_TIME_ID1 two field in &lt;SPAN style="font-size: 13.3333px;"&gt;VOLUMETRIC table&lt;/SPAN&gt; .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;In code i use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=peek('Max_DQ_Time',0,'VOLUMETRIC1'); &amp;amp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;=peek('Min_DQ_Time',0,'VOLUMETRIC2');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here peek function will store only one value at a time but requirement is for getting Max &amp;amp; Second Max of &lt;SPAN style="font-size: 13.3333px;"&gt;DQ_TIME_ID1 &lt;/SPAN&gt;for each &lt;SPAN style="font-size: 13.3333px;"&gt;CHECK_POINT_ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Max &amp;amp; Second Max for each &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CHECK_POINT_ID are different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How can i get this?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;VOLUMETRIC:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;DQ_TIME_ID AS DQ_TIME_ID1,&lt;BR /&gt;Date(ApplyMap('TIMEDQ',DQ_TIME_ID)) as LOAD_DATE,&lt;BR /&gt;ApplyMap('PHYSICALDATASOURCE',PHYSICAL_DATA_SOURCE_ID) as FILE_NAME,&lt;BR /&gt;CHECK_POINT_ID,&lt;BR /&gt;ROW_CNT &lt;BR /&gt;FROM '../VOLUME.qvd'(qvd);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;VOLUMETRIC1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MAX(DQ_TIME_ID1) AS&lt;/P&gt;&lt;P&gt;Max_DQ_Time&lt;/P&gt;&lt;P&gt;RESIDENT VOLUMETRIC ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;=peek('Max_DQ_Time',0,'VOLUMETRIC1');&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/STRONG&gt; table VOLUMETRIC1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VOLUMETRIC2:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MAX(DQ_TIME_ID1) AS Min_DQ_Time&lt;/P&gt;&lt;P&gt;RESIDENT VOLUMETRIC where DQ_TIME_ID1&amp;lt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrDateData)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;=peek('Min_DQ_Time',0,'VOLUMETRIC2');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/STRONG&gt; table&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 12pt;"&gt; VOLUMETRIC2; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>sspawar88</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150832#M916551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i'm having &lt;SPAN style="font-size: 13.3333px;"&gt;CHECK_POINT_ID &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;DQ_TIME_ID1 two field in &lt;SPAN style="font-size: 13.3333px;"&gt;VOLUMETRIC table&lt;/SPAN&gt; .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;In code i use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=peek('Max_DQ_Time',0,'VOLUMETRIC1'); &amp;amp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;=peek('Min_DQ_Time',0,'VOLUMETRIC2');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here peek function will store only one value at a time but requirement is for getting Max &amp;amp; Second Max of &lt;SPAN style="font-size: 13.3333px;"&gt;DQ_TIME_ID1 &lt;/SPAN&gt;for each &lt;SPAN style="font-size: 13.3333px;"&gt;CHECK_POINT_ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Max &amp;amp; Second Max for each &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CHECK_POINT_ID are different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How can i get this?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;VOLUMETRIC:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;DQ_TIME_ID AS DQ_TIME_ID1,&lt;BR /&gt;Date(ApplyMap('TIMEDQ',DQ_TIME_ID)) as LOAD_DATE,&lt;BR /&gt;ApplyMap('PHYSICALDATASOURCE',PHYSICAL_DATA_SOURCE_ID) as FILE_NAME,&lt;BR /&gt;CHECK_POINT_ID,&lt;BR /&gt;ROW_CNT &lt;BR /&gt;FROM '../VOLUME.qvd'(qvd);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;VOLUMETRIC1:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MAX(DQ_TIME_ID1) AS&lt;/P&gt;&lt;P&gt;Max_DQ_Time&lt;/P&gt;&lt;P&gt;RESIDENT VOLUMETRIC ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;=peek('Max_DQ_Time',0,'VOLUMETRIC1');&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/STRONG&gt; table VOLUMETRIC1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VOLUMETRIC2:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MAX(DQ_TIME_ID1) AS Min_DQ_Time&lt;/P&gt;&lt;P&gt;RESIDENT VOLUMETRIC where DQ_TIME_ID1&amp;lt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrDateData)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;vCurrDateData1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;=peek('Min_DQ_Time',0,'VOLUMETRIC2');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/STRONG&gt; table&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 12pt;"&gt; VOLUMETRIC2; &lt;/SPAN&gt;&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/How-can-i-use-Peek-Function-here/m-p/1150832#M916551</guid>
      <dc:creator>sspawar88</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150833#M916552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can any one tell this directly just first understand the function its syntax and then try to use it as per your need.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each" title="https://community.qlikview.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each"&gt;Qlik Design Blog : Peek() vs Previous() – When ... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 06:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150833#M916552</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2016-05-16T06:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150834#M916553</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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;VOLUMETRIC:&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-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;DQ_TIME_ID AS DQ_TIME_ID1,&lt;BR /&gt;Date(ApplyMap('TIMEDQ',DQ_TIME_ID)) as LOAD_DATE,&lt;BR /&gt;ApplyMap('PHYSICALDATASOURCE',PHYSICAL_DATA_SOURCE_ID) as FILE_NAME,&lt;BR /&gt;CHECK_POINT_ID,&lt;BR /&gt;ROW_CNT &lt;BR /&gt;FROM '../VOLUME.qvd'(qvd);&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-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&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="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;VOLUMETRIC1:&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&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;MAX(DQ_TIME_ID1) AS &lt;SPAN style="line-height: 1.5em;"&gt;Max_DQ_Time&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="line-height: 1.5em;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MAX(DQ_TIME_ID1,2) AS &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Min_DQ_Time&lt;/SPAN&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;RESIDENT VOLUMETRIC ;&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: inherit; font-family: inherit; color: #575757;"&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="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;&lt;STRONG 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;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vCurrDateData&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=peek('Max_DQ_Time',0,'VOLUMETRIC1');&lt;/SPAN&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="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vCurrDateData1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Min_DQ_Time&lt;/SPAN&gt;',0,'VOLUMETRIC1');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 06:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150834#M916553</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-16T06:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150835#M916554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kushal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But requirement is when i click on Check Point id 2 it should give result as max DQ_TIME_ID 274 &amp;amp; Second Max 204 and&lt;/P&gt;&lt;P&gt;when i click on Check Point id 3 it should give result as max DQ_TIME_ID 304 &amp;amp; Second&amp;nbsp; DQ_TIME_ID 274.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as my understanding here peek function will store only 304 as max &amp;amp; 274 for second max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should i use here to get values for both Check Point id ?&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;CHECK_POINT_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;DQ_TIME_ID &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;204&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;274&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;274&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;304&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;304&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 06:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150835#M916554</guid>
      <dc:creator>sspawar88</dc:creator>
      <dc:date>2016-05-16T06:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150836#M916555</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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;Do you need variable for each check point ID?&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="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&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="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;VOLUMETRIC:&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-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;DQ_TIME_ID AS DQ_TIME_ID1,&lt;BR /&gt;Date(ApplyMap('TIMEDQ',DQ_TIME_ID)) as LOAD_DATE,&lt;BR /&gt;ApplyMap('PHYSICALDATASOURCE',PHYSICAL_DATA_SOURCE_ID) as FILE_NAME,&lt;BR /&gt;CHECK_POINT_ID,&lt;BR /&gt;ROW_CNT &lt;BR /&gt;FROM '../VOLUME.qvd'(qvd);&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-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&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="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;VOLUMETRIC1:&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CHECK_POINT_ID,&lt;/SPAN&gt;&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;MAX(DQ_TIME_ID1) AS &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Max_DQ_Time&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-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MAX(DQ_TIME_ID1,2) AS &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Min_DQ_Time&lt;/SPAN&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;RESIDENT VOLUMETRIC&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by &lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CHECK_POINT_ID&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 07:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150836#M916555</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-16T07:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150837#M916556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kushal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But above your Code will fail if we are having only one DQ_TIME_ID1 in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;yes i want different variable for check point id's. but how can i do it in my script &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i'm giving code for understanding the scenario. i jalso attached sample data.&lt;/P&gt;&lt;P&gt;please check the text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why this code will not capable for giving max &amp;amp; second max for each &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CHECK_POINT_ID where we select.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is this due to peek function i.e. it will store only one value at a time in variable. how can i rectify this code !!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help for this !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 03:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150837#M916556</guid>
      <dc:creator>sspawar88</dc:creator>
      <dc:date>2016-05-17T03:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150838#M916557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u look over this. i just edited the details which u can understand !!&lt;/P&gt;&lt;P&gt;please check all trail posts &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 03:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150838#M916557</guid>
      <dc:creator>sspawar88</dc:creator>
      <dc:date>2016-05-17T03:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use Peek Function here ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150839#M916558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; check point id's are there in your actual data. creating the variable for each of them is not a good practice.&amp;nbsp; Why you wanna create the Variable of Max and Second max for each check point id? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Above code will not fail if there is no Second max Id rather it will give you null value for Second max field which is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 05:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-use-Peek-Function-here/m-p/1150839#M916558</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-17T05:44:18Z</dc:date>
    </item>
  </channel>
</rss>

