<?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: Get Max and Min values from 4 weeks period in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944087#M527282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='max: ' &amp;amp; max({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}&lt;/P&gt;&lt;P&gt;aggr(sum({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}Sales),Year,Week))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'min: ' &amp;amp; min({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}&lt;/P&gt;&lt;P&gt;aggr(sum({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}Sales),Year,Week))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2015 09:25:15 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-10-22T09:25:15Z</dc:date>
    <item>
      <title>Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944085#M527280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Community. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this following issue, i need to save max and min values in variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The User selects a week (week 17)&lt;/LI&gt;&lt;LI&gt;The table sums sales for the last 4 weeks (week 13- week 17)&lt;/LI&gt;&lt;LI&gt;How do I get the MAX and MIN values from this list(marked with red)?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached screenshot and document to clarify. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If you are interested the end goal is to use the information to axis dimensions in a chart).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks many times in advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Question 4 max and min.PNG" class="jive-image image-1" src="/legacyfs/online/102757_Question 4 max and min.PNG" style="height: 450px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 08:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944085#M527280</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2015-10-22T08:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944086#M527281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably use an aggregation with set analysis in your expression, then your required Expression (e.g. used in a text box) might look&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min( &lt;EM&gt;SetExpressionUsedInYourExpression &lt;/EM&gt;Aggr( &lt;EM&gt;YourExpression&lt;/EM&gt;, Week, [Employee Team]))&lt;/P&gt;&lt;P&gt;=Max( &lt;EM&gt;SetExpressionUsedInYourExpression &lt;/EM&gt;Aggr( &lt;EM&gt;YourExpression&lt;/EM&gt;, Week, [Employee Team]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 09:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944086#M527281</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-22T09:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944087#M527282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='max: ' &amp;amp; max({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}&lt;/P&gt;&lt;P&gt;aggr(sum({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}Sales),Year,Week))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'min: ' &amp;amp; min({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}&lt;/P&gt;&lt;P&gt;aggr(sum({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year&amp;gt;}Sales),Year,Week))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 09:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944087#M527282</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-22T09:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944088#M527283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl, Thanks for your quick reply. It almost works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="102773" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102773_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 09:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944088#M527283</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2015-10-22T09:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944089#M527284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert. Thanks for the fast reply. The min value works, but not the max?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102774_Capture2.PNG" style="height: 421px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 09:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944089#M527284</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2015-10-22T09:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944090#M527285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you added the [Employee Team] to the aggr() dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 12:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944090#M527285</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-22T12:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944091#M527286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I implemented your answer one more time, and this time it worked - thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 14:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944091#M527286</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2015-10-22T14:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max and Min values from 4 weeks period</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944092#M527287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I came back to this question, and realized it only worked when I added the Employee Team, so the final answer look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='min: ' &amp;amp; min({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year,[Employee Team]&amp;gt;}&lt;/P&gt;&lt;P&gt;aggr(sum({&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"},Week,Year,[Employee Team]&amp;gt;}Sales),Year,Week,[Employee Team]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='max: ' &amp;amp; &lt;/P&gt;&lt;P&gt;max(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;{&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,[Employee Team]&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Aggr(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;{&amp;lt;Date={"&amp;gt;=$(=DATE(Max(Date)-7*4))&amp;lt;=$(=DATE(Max(Date)))"}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,Year, &lt;SPAN style="font-size: 13.3333px;"&gt;[Employee Team]&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sales)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,[Employee Team]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 09:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-and-Min-values-from-4-weeks-period/m-p/944092#M527287</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2015-10-26T09:37:17Z</dc:date>
    </item>
  </channel>
</rss>

