<?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 min &amp; max functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060989#M355211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved with SQL statement directly from the table min &amp;amp; max works good, faster then resident ..&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO ...&lt;/P&gt;&lt;P&gt;minmaxdate:&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;max(date) as maxdate,&lt;/P&gt;&lt;P&gt;min(date) as mindate&lt;/P&gt;&lt;P&gt;from orders;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 10:10:41 GMT</pubDate>
    <dc:creator>ilanbaruch</dc:creator>
    <dc:date>2016-05-16T10:10:41Z</dc:date>
    <item>
      <title>peek min &amp; max functions</title>
      <link>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060985#M355207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i use min &amp;amp; max function to find min &amp;amp; max date values before calendar build &lt;/P&gt;&lt;P&gt;than put it into a variable with peek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recently read here : &lt;A href="http://www.learnqlickview.com/qlikview-tutorial-a-how-to-tip-on-data-load/"&gt;http://www.learnqlickview.com/qlikview-tutorial-a-how-to-tip-on-data-load/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that its more effective to sort the date than peek .. it works for the min but not for the max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried it like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DATE &lt;/P&gt;&lt;P&gt;Resident ACCOUNTS Order By DATE desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = Num(Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;DATE &lt;/SPAN&gt;', 0, 'minmaxdate'));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Num(Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;DATE &lt;/SPAN&gt;',-1, 'minmaxdate')); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 08:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060985#M355207</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-05-03T08:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: peek min &amp; max functions</title>
      <link>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060986#M355208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A even better way to do this would be to use FieldValue function. Check out here: &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 08:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060986#M355208</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-03T08:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: peek min &amp; max functions</title>
      <link>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060987#M355209</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;aa:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DATE &lt;/P&gt;&lt;P&gt;Resident ACCOUNTS Order By DATE desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;bb:&lt;/P&gt;&lt;P&gt;load max(DATE ) as max_data,&lt;/P&gt;&lt;P&gt;min(DATE ) as min_data&lt;/P&gt;&lt;P&gt;resident aa;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = Num(Peek('min_data', 0, 'bb'));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Num(Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;max_data &lt;/SPAN&gt;',0, 'bb')); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table aa;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 08:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060987#M355209</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2016-05-03T08:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: peek min &amp; max functions</title>
      <link>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060988#M355210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you, but i'm trying to avoid min &amp;amp; max function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 08:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060988#M355210</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-05-03T08:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: peek min &amp; max functions</title>
      <link>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060989#M355211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved with SQL statement directly from the table min &amp;amp; max works good, faster then resident ..&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO ...&lt;/P&gt;&lt;P&gt;minmaxdate:&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;max(date) as maxdate,&lt;/P&gt;&lt;P&gt;min(date) as mindate&lt;/P&gt;&lt;P&gt;from orders;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 10:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-min-max-functions/m-p/1060989#M355211</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-05-16T10:10:41Z</dc:date>
    </item>
  </channel>
</rss>

