<?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 Summation Of Amount for a date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119061#M369020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the following output from the attached excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;A01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 550&lt;/P&gt;&lt;P&gt;A02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 905&lt;/P&gt;&lt;P&gt;A03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 554&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum of only yellow colored cells i.e. amount between third max date and max date.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2016 09:59:04 GMT</pubDate>
    <dc:creator>pkpandey</dc:creator>
    <dc:date>2016-08-31T09:59:04Z</dc:date>
    <item>
      <title>Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119061#M369020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the following output from the attached excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;A01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 550&lt;/P&gt;&lt;P&gt;A02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 905&lt;/P&gt;&lt;P&gt;A03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 554&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum of only yellow colored cells i.e. amount between third max date and max date.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119061#M369020</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-08-31T09:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119062#M369021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(Dt &amp;gt;= Max(TOTAL &amp;lt;Item&amp;gt; Dt, 3), Amt), Item, Dt))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136113_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 10:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119062#M369021</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-31T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119063#M369022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your prompt reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 10:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119063#M369022</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-08-31T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119064#M369023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this for calculating max and max 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have got max date&lt;SPAN style="color: #0000ff;"&gt; as 3/14/2016&amp;nbsp; and third max date as 2/16/2016&amp;nbsp; and amount would be :&amp;nbsp; 784&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOURCE:&lt;/P&gt;&lt;P&gt;LOAD Item,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MAX_MIN:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Dt) as maxdate,&lt;/P&gt;&lt;P&gt;Max(Dt,3) as maxdate3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident SOURCE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET VMAX = Num(PEEK('maxdate',0,'MAX_MIN'));&lt;/P&gt;&lt;P&gt;LET VMAX3=PEEK('maxdate3',0,'MAX_MIN');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DROP TABLE MAX_MIN;&lt;/SPAN&gt;&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;&lt;BR /&gt;&lt;/SPAN&gt;&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;******************************************&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And create PIVOT or straight table with this Expresssion :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {1 &amp;lt; Dt={"&amp;gt;=$(=date(VMAX3,'MM/DD/YYYY'))&amp;lt;=$(=date(VMAX,'MM/DD/YYYY'))"}&amp;nbsp; &amp;gt; }&amp;nbsp; Amt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 10:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119064#M369023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T10:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119065#M369024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is any duplicate date then the output is not correct. I am attaching the excel sheet for your &lt;/P&gt;&lt;P&gt;information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, 31 Aug 2016 15:35:35 +0530 Sunny T  wrote&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;                                                                                Summation Of Amount for a date range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Sunny T in QlikView App Development - View the full discussion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this:=Sum(Aggr(If(Dt &amp;gt;= Max(TOTAL  Dt, 3), Amt), Item, Dt))&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;https://community.qlik.com/servlet/JiveServlet/downloadImage/2-1115158-136113/Capture.PNG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	Reply to this message by replying to this email, or go to the message on Qlik Community&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	Start a new discussion in QlikView App Development by email or at Qlik Community&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	Following Summation Of Amount for a date range in these streams:&lt;/P&gt;&lt;P&gt;     Inbox&lt;/P&gt;&lt;P&gt;                                                                                © 1993-2016 QlikTech International AB  | &lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;            Copyright &amp;amp; Trademarks | Privacy | Terms of Use | Software EULA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 04:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119065#M369024</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-09-01T04:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119066#M369025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not like that. You have to take max date and 3rd max date item wise and should be dynamic means &lt;/P&gt;&lt;P&gt;depends on the selection of the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, 31 Aug 2016 16:17:34 +0530 Alluraiah Allu  wrote&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;                                                                                Summation Of Amount for a date range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Alluraiah Allu in QlikView App Development - View the full discussion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HiUse this for calculating max and max 3But I have got max date as 3/14/2016 and third max date as &lt;/P&gt;&lt;P&gt;2/16/2016 and amount would be : 784SOURCE:LOAD Item, Dt, &lt;/P&gt;&lt;P&gt;AmtFROM&lt;C&gt;(ooxml, embedded labels, table is &lt;/C&gt;&lt;/P&gt;&lt;P&gt;Sheet1);MAX_MIN:LOADMax(Dt) as maxdate,Max(Dt,3) as maxdate3Resident SOURCE;LET VMAX = &lt;/P&gt;&lt;P&gt;Num(PEEK('maxdate',0,'MAX_MIN'));LET VMAX3=PEEK('maxdate3',0,'MAX_MIN');DROP TABLE MAX_MIN;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;******************************************&lt;/P&gt;&lt;P&gt;&amp;gt;And create PIVOT or straight table with this Expresssion :sum( {1 &amp;lt; Dt=&lt;/P&gt;&lt;P&gt;{"&amp;gt;=$(=date(VMAX3,'MM/DD/YYYY'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119066#M369025</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-09-01T07:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119067#M369026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;try expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(DISTINCT Aggr(Sum(Amt),Item,Dt),-Dt,3),FirstSortedValue(DISTINCT Aggr(Sum(Amt),Item,Dt),-Dt,2),FirstSortedValue(DISTINCT Aggr(Sum(Amt),Item,Dt),-Dt)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136213_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119067#M369026</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-09-01T07:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119068#M369027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output for this new data provided?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 10:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119068#M369027</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-01T10:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119069#M369028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the same values as before with the new data that provided. Is that incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136255_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 10:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119069#M369028</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-01T10:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119070#M369029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. The output from the expression you have given is accurate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 10:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119070#M369029</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-09-05T10:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Summation Of Amount for a date range</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119071#M369030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not the correct data from the expression you have given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 10:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-Of-Amount-for-a-date-range/m-p/1119071#M369030</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-09-05T10:31:13Z</dc:date>
    </item>
  </channel>
</rss>

