<?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: Question on how to select a max value from a data set using a date threshold limiter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920756#M319013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome&lt;/P&gt;&lt;P&gt;glad to help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 12:33:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-12T12:33:41Z</dc:date>
    <item>
      <title>Question on how to select a max value from a data set using a date threshold limiter</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920751#M319008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble identifying the maximum value from a data set when I try to use Set Analysis to create a date threshold.&amp;nbsp;&amp;nbsp; Here is a sample data set that I am working with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; DailyValue, DailyDate&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 60, 42206&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 65, 42207&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 55, 42208&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 50, 42209&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 45, 42210&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 40, 42211&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 30, 42212&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 25, 42213&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 20, 42214&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 10, 42215&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 100, 42216&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 105, 42217&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 95, 42218&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 90, 42219&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 97, 42220&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 80, 42221&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 75, 42222&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; 70, 42223&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;];&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;What I want to do is identify the maximum value in the DailyValue field, for a subset of the above table, where the DailyDate is no more than 10-days from today's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to obtain my answer, I have tried various expressions in a text box.&amp;nbsp; In all of my attempts, I either return a " - " in the text box, or the maximum value in the entire table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the latest expression that I'm not having any luck with:&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(AGGR({$&amp;lt;DailyDate={"&amp;gt;=$(=NUM(TODAY())-10)"&amp;gt;} DailyValue))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Today (8/12/2015) is 42228, then Num(Today())-10 would be 42218.&amp;nbsp; Using the logic above, I'm trying to return a value of "97", since that would be the largest DailyValue where the DailyDate value is 42218 or larger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920751#M319008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-12T12:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Question on how to select a max value from a data set using a date threshold limiter</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920752#M319009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this should work, no Need for aggr&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DailyDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=NUM(TODAY())-10)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DailyValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920752#M319009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-12T12:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question on how to select a max value from a data set using a date threshold limiter</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920753#M319010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max({&amp;lt;DailyDate={"&amp;gt;=$(=today()-10))"}&amp;gt;}DailyValue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920753#M319010</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-12T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question on how to select a max value from a data set using a date threshold limiter</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920754#M319011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; When I tried your expression the value that was returned was "105".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920754#M319011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-12T12:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Question on how to select a max value from a data set using a date threshold limiter</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920755#M319012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; That worked perfectly.&amp;nbsp;&amp;nbsp; For some reason I had it in my head that I needed to use AGGR first.&amp;nbsp;&amp;nbsp; Thanks for setting me straight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920755#M319012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-12T12:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question on how to select a max value from a data set using a date threshold limiter</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920756#M319013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome&lt;/P&gt;&lt;P&gt;glad to help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-how-to-select-a-max-value-from-a-data-set-using-a/m-p/920756#M319013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-12T12:33:41Z</dc:date>
    </item>
  </channel>
</rss>

