<?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: Aggr Sum between Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133283#M893108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also there seems to be issue with too many parenthesis getting closed:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;[Exclude Hours] = {'NO'}, PP = {"&amp;gt;=$(=Max({1}MaxPP)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;-56)&amp;lt;=$(=Max({1}MaxPP))"}&amp;gt;} Hours)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;[Exclude Hours] = {'NO'}, PP = {"&amp;gt;=$(=Max({1}MaxPP)-56)&amp;lt;=$(=Max({1}MaxPP))"}&amp;gt;} Hours)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I would do as Clever pointed out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 17:53:07 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-04T17:53:07Z</dc:date>
    <item>
      <title>Aggr Sum between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133281#M893106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, I know this question as been asked 1000 times, but i have not found this answer yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a biweekly date (MaxPP), with values "Service Units". So i want to sum the service units by most recent 4 biweekly dates or 56 days less then the max date. here is my expression with out the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(sum([Service Units]*Weight),Charged_BU,Charged_deptid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have figured out how to do it without the aggr when I just add my hours value in a separate expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Exclude Hours]={'NO'},PP={"&amp;gt;=$(=max({1}MaxPP))-56)&amp;lt;=$(=max({1}MaxPP))"}&amp;gt;} Hours)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can i do it with the Aggr above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!&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/Aggr-Sum-between-Dates/m-p/1133281#M893106</guid>
      <dc:creator>billuran</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Sum between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133282#M893107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max({1}MaxPP))-56 returns a date?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If yes, please format it using Date(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max({1}MaxPP))-56,'MM/DD/YYYY') to match &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PP format&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 17:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133282#M893107</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-08-04T17:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Sum between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133283#M893108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also there seems to be issue with too many parenthesis getting closed:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;[Exclude Hours] = {'NO'}, PP = {"&amp;gt;=$(=Max({1}MaxPP)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;-56)&amp;lt;=$(=Max({1}MaxPP))"}&amp;gt;} Hours)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;[Exclude Hours] = {'NO'}, PP = {"&amp;gt;=$(=Max({1}MaxPP)-56)&amp;lt;=$(=Max({1}MaxPP))"}&amp;gt;} Hours)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I would do as Clever pointed out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 17:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133283#M893108</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-04T17:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Sum between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133284#M893109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hawk eyes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 17:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133284#M893109</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-08-04T17:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Sum between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133285#M893110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK but i need help on the Aggr one. I have the bottom working fine. Thanks for the quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 18:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133285#M893110</guid>
      <dc:creator>billuran</dc:creator>
      <dc:date>2016-08-04T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Sum between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133286#M893111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want with your AGGR()? This function returns a list, are you aware of this? Are you making another function over AGGR()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe:&lt;/P&gt;&lt;P&gt;SUM(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;[Exclude Hours] = {'NO'}, PP = {"&amp;gt;=$(=Max({1}MaxPP)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 14pt; font-family: inherit; color: #ff0000;"&gt;)&lt;/SPAN&gt;-56)&amp;lt;=$(=Max({1}MaxPP))"}&amp;gt;} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;[Exclude Hours] = {'NO'}, PP = {"&amp;gt;=$(=Max({1}MaxPP)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 14pt; font-family: inherit; color: #ff0000;"&gt;)&lt;/SPAN&gt;-56)&amp;lt;=$(=Max({1}MaxPP))"}&amp;gt;}&amp;nbsp; &lt;/STRONG&gt;[Service Units]*Weight),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Charged_BU,Charged_deptid)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 19:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Sum-between-Dates/m-p/1133286#M893111</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-08-04T19:24:22Z</dc:date>
    </item>
  </channel>
</rss>

