<?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: RangeSum and Line Chart with 2 dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291647#M403750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure, but may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=RangeSum(Above(Sum([Sales by Month]), 0, RowNo()))/Sum(TOTAL &amp;lt;Month&amp;gt; Aggr(RangeSum(Above(Sum([Sales by Month]), 0, RowNo())), Month, Product))&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/157851_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 08:51:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-28T08:51:47Z</dc:date>
    <item>
      <title>RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291646#M403749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate some help. &lt;BR /&gt;I'm trying to calculate the cumulative % Contribution for each product by month. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Product A in January = sales of Product A in Jan / total sales in Jan &lt;/P&gt;&lt;P&gt;Product A in February = sales of Product A in Jan + Feb / total sales in Jan + Feb &lt;/P&gt;&lt;P&gt;Product A in March = sales of Product A in Jan + Feb + Mar / total sales in Jan + Feb + Mar&lt;/P&gt;&lt;P&gt;and so on... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking the the cumulative box does not work in this case because Qlikview will add the percentages up. &lt;/P&gt;&lt;P&gt;So I used RangeSum and am still not getting the desired values. As you can see in the image below, the total for each month does not add up to 100% (but it should!). &lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157842_pic1.JPG" style="height: 317px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to figure it out. Any help would be appreciated! I've attached a qvw file to this post as well. &lt;/P&gt;&lt;P&gt;Thank you !!!!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 08:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291646#M403749</guid>
      <dc:creator>ninnartx</dc:creator>
      <dc:date>2017-03-28T08:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291647#M403750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure, but may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=RangeSum(Above(Sum([Sales by Month]), 0, RowNo()))/Sum(TOTAL &amp;lt;Month&amp;gt; Aggr(RangeSum(Above(Sum([Sales by Month]), 0, RowNo())), Month, Product))&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/157851_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 08:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291647#M403750</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T08:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291648#M403751</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;Thank you so much for your response! But sadly it is still not what I'm trying to accomplish. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157860_pic2.JPG" style="height: 268px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;From your formula, I separated the numerator and denominator into 2 columns. If you look at the numerator column, you'll notice that the formula adds all the products within that month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it's doing: &lt;/P&gt;&lt;P&gt;Product A in Jan = sales of Product A in Jan &lt;/P&gt;&lt;P&gt;Product B in Jan = sales of Product A + B in Jan &lt;/P&gt;&lt;P&gt;Product A in Feb = sales of Product A in Feb &lt;/P&gt;&lt;P&gt;Product B in Feb = sales of Product A + B in Feb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm looking for: &lt;/P&gt;&lt;P&gt;Product A in Jan = sales of Product A in Jan &lt;/P&gt;&lt;P&gt;Product B in Jan = sales of Product B in Jan &lt;/P&gt;&lt;P&gt;Product A in Feb = sales of Product A in Jan + Feb&lt;/P&gt;&lt;P&gt;Product B in Feb = sales of Product B in Jan + Feb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like that formula is reallllly close to what I'm trying to accomplish though! Maybe just a tiny tweak somewhere? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291648#M403751</guid>
      <dc:creator>ninnartx</dc:creator>
      <dc:date>2017-03-28T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291649#M403752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but may you need one of these two in your denominator?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=RangeSum(Above(Sum([Sales by Month]), 0, RowNo()))/Aggr(RangeSum(Above(Aggr(RangeSum(Above(Sum([Sales by Month]), 0, RowNo())), Month, Product), 0, RowNo())), Product, Month)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(RangeSum(Above(Sum([Sales by Month]), 0, RowNo())), Product, Month)&lt;/STRONG&gt;&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/157871_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291649#M403752</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T09:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291650#M403753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;got it. Thank you so much Sunny! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 10:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291650#M403753</guid>
      <dc:creator>ninnartx</dc:creator>
      <dc:date>2017-03-28T10:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291651#M403754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which of the two worked for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 11:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291651#M403754</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291652#M403755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mixed and matched the formulas you suggested and ended up with: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(RangeSum(Above(Sum([Sales by Month]), 0, RowNo())), Product, Month)&amp;nbsp; / &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;Month &amp;gt; Aggr(RangeSum(Above(Sum([Sales by Month]), 0, RowNo())), Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 02:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291652#M403755</guid>
      <dc:creator>ninnartx</dc:creator>
      <dc:date>2017-03-29T02:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum and Line Chart with 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291653#M403756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super, thanks for sharing it with us...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 08:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Line-Chart-with-2-dimensions/m-p/1291653#M403756</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-29T08:23:57Z</dc:date>
    </item>
  </channel>
</rss>

