<?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 the max value after aggr.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630687#M446443</link>
    <description>&lt;P&gt;thank you Sunny_Talwar;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 17:20:10 GMT</pubDate>
    <dc:creator>RheaQv12</dc:creator>
    <dc:date>2019-10-02T17:20:10Z</dc:date>
    <item>
      <title>get the max value after aggr....</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630291#M446406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a table in which i have the transaction date like PostedDate - i derived the last 7 days flag in the load script..&lt;/P&gt;&lt;P&gt;in a straight table i am trying to calculate the last 7 days using the flag and the following expression..&lt;/P&gt;&lt;P&gt;i need to &lt;STRONG&gt;pick the max value for the combination of PostedDate and the name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;=&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;PDate_7_Days&lt;/FONT&gt;&lt;FONT size="3"&gt;=1 ,&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;aggr&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;Max&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;aggr&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;sum&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;SumCounter&lt;/FONT&gt;&lt;FONT size="3"&gt;),&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;[PDate]&lt;/FONT&gt;&lt;FONT size="3"&gt;,&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;[Name]&lt;/FONT&gt;&lt;FONT size="3"&gt;)),&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;Name&lt;/FONT&gt;&lt;FONT size="3"&gt;,&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;[PDate]&lt;/FONT&gt;&lt;FONT size="3"&gt;) ,0) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 414px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20490i53A9C0F955E004DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;in my straight table i have other columns along with Name, PDate but i need to aggr by Name, PDate and get the sum(SumCounter) for the last 7 days (this is a flag) - from the above if i want to get the max value of (highlighted in yellow)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;can someone please help... for each PDate and each Name of the file i need to pick the MAX value so that i get the last 7 days numbers&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;any help..&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 245px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20491iD8EFF5EE37F5892F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 02:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630291#M446406</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-10-02T02:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value after aggr....</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630304#M446407</link>
      <description>&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max({&amp;lt;PDate_7_Days={1}&amp;gt;} TOTAL &amp;lt;PDate&amp;gt; aggr(sum({&amp;lt;PDate_7_Days={1}&amp;gt;} SumCounter),[PDate],[Name]))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 04:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630304#M446407</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-10-02T04:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value after aggr....</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630644#M446439</link>
      <description>&lt;P&gt;Thank you Anil, i got the expression fixed to working...but i have a scenario where the layout has dates like start date and end date - when these dates using calendar object are selected the above table should not get filter applied&lt;/P&gt;&lt;P&gt;i have the objects as below....when the start date, end date are selected they are still applying on the above table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;i have this expression in the table on the top but still the ignore is not getting applied&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#0000ff"&gt;Sum&lt;/FONT&gt;&lt;FONT size="3"&gt;({&amp;lt;&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;Published_Last_7_Days&lt;/FONT&gt;&lt;FONT size="3"&gt; = {&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;"1"&lt;/FONT&gt;&lt;FONT size="3"&gt;}, &lt;/FONT&gt;&lt;FONT color="#ff00ff"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;[Published Date]&lt;/FONT&gt;&lt;FONT size="3"&gt;=, &lt;/FONT&gt;&lt;FONT size="3"&gt;[Published End Date]&lt;/FONT&gt;&lt;FONT size="3"&gt;=,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;FONT size="3"&gt;&lt;EM&gt;&lt;STRONG&gt;[Published Start Date&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;]&lt;/FONT&gt;&lt;FONT size="3"&gt;=&amp;gt;} &lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;Aggr&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#0000ff"&gt;Sum&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;ReadCounter&lt;/FONT&gt;&lt;FONT size="3"&gt;), &lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;Title&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT size="3" color="#800000"&gt;[Published Date]&lt;/FONT&gt;&lt;FONT size="3"&gt;)) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;the fields in pink are ignoring but for some reason it is not working...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630644#M446439</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-10-02T16:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value after aggr....</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630659#M446440</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;Published_Last_7_Days = {"1"}, [Published Date], [Published End Date], [Published Start Date]&amp;gt;} Aggr(
  Sum({&amp;lt;[Published Date], [Published End Date],[Published Start Date]&amp;gt;} ReadCounter)
, Title, [Published Date]))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630659#M446440</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-02T16:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value after aggr....</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630670#M446441</link>
      <description>&lt;P&gt;thank you, what is the difference i thought in set analysis to ignore exclude we do like&lt;/P&gt;&lt;P&gt;&amp;nbsp;[Published Date]=&lt;/P&gt;&lt;P&gt;&amp;nbsp;[Published Date],&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630670#M446441</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-10-02T16:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value after aggr....</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630675#M446442</link>
      <description>&lt;P&gt;They mean the same thing within set analysis. = sign doesn't make a difference when you are trying to ignore selections&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630675#M446442</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-02T16:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: get the max value after aggr....</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630687#M446443</link>
      <description>&lt;P&gt;thank you Sunny_Talwar;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 17:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-max-value-after-aggr/m-p/1630687#M446443</guid>
      <dc:creator>RheaQv12</dc:creator>
      <dc:date>2019-10-02T17:20:10Z</dc:date>
    </item>
  </channel>
</rss>

