<?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 Bar Chart with running total and multiple dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Bar-Chart-with-running-total-and-multiple-dimensions/m-p/1664524#M49998</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to create a simple bar chart with a running/cumulative total by month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get this to work fine with just one dimension and a measure but when I add a second dimension it doesn't work&lt;/P&gt;&lt;P&gt;I've seen similar issues raised but the answers to those doesn't seem to work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the measure I'm using the expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aggr(RangeSum(Above(Sum(LBS), 0, RowNo())), [INSTALLDATE.autoCalendar.YearMonth], SCHEMESUBGROUP)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimensions are Schemesubgroup and&amp;nbsp;INSTALLDATE.autoCalendar.YearMonth&lt;/P&gt;&lt;P&gt;This gives me&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bar chart.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26686i33677611FF7E10A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="bar chart.PNG" alt="bar chart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cumulative bar chart 2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26687i60E92395716D5310/image-size/large?v=v2&amp;amp;px=999" role="button" title="cumulative bar chart 2.PNG" alt="cumulative bar chart 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you . Phillip&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
    <dc:creator>phillipmason</dc:creator>
    <dc:date>2021-12-20T21:38:40Z</dc:date>
    <item>
      <title>Bar Chart with running total and multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-with-running-total-and-multiple-dimensions/m-p/1664524#M49998</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to create a simple bar chart with a running/cumulative total by month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get this to work fine with just one dimension and a measure but when I add a second dimension it doesn't work&lt;/P&gt;&lt;P&gt;I've seen similar issues raised but the answers to those doesn't seem to work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the measure I'm using the expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aggr(RangeSum(Above(Sum(LBS), 0, RowNo())), [INSTALLDATE.autoCalendar.YearMonth], SCHEMESUBGROUP)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimensions are Schemesubgroup and&amp;nbsp;INSTALLDATE.autoCalendar.YearMonth&lt;/P&gt;&lt;P&gt;This gives me&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bar chart.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26686i33677611FF7E10A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="bar chart.PNG" alt="bar chart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cumulative bar chart 2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26687i60E92395716D5310/image-size/large?v=v2&amp;amp;px=999" role="button" title="cumulative bar chart 2.PNG" alt="cumulative bar chart 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you . Phillip&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-with-running-total-and-multiple-dimensions/m-p/1664524#M49998</guid>
      <dc:creator>phillipmason</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with running total and multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-with-running-total-and-multiple-dimensions/m-p/1665479#M50093</link>
      <description>&lt;P&gt;I think you need to do some work in the script first.&amp;nbsp; Say you have loaded your Excel file with the three columns (INSTALLDATE, SCHEMESUBGROUP, LBS) into a table named "Data".&amp;nbsp; You could calculate a cumulative sum in the script like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Final:
LOAD INSTALLDATE,
	 SCHEMESUBGROUP,
     LBS,
     RANGESUM(LBS, IF(PREVIOUS(SCHEMESUBGROUP) = SCHEMESUBGROUP, PEEK(CUMULATIVELBS))) AS CUMULATIVELBS
RESIDENT Data
ORDER BY SCHEMESUBGROUP, INSTALLDATE;

DROP TABLE Data;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for your bar chart:&lt;BR /&gt;Dimension:&amp;nbsp;=MONTHNAME(INSTALLDATE) //or your&amp;nbsp;&lt;SPAN&gt;[INSTALLDATE.autoCalendar.YearMonth] field&lt;BR /&gt;Dimension:&amp;nbsp;SCHEMESUBGROUP&lt;BR /&gt;Expression:&amp;nbsp;MAX(CUMULATIVELBS)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bar_chart.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26825i98117517E08EFAFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="bar_chart.png" alt="bar_chart.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-with-running-total-and-multiple-dimensions/m-p/1665479#M50093</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2020-01-14T16:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart with running total and multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-with-running-total-and-multiple-dimensions/m-p/1665704#M50107</link>
      <description>&lt;P&gt;Thank you, that has worked a treat!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers. Phillip&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 09:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-with-running-total-and-multiple-dimensions/m-p/1665704#M50107</guid>
      <dc:creator>phillipmason</dc:creator>
      <dc:date>2020-01-15T09:31:16Z</dc:date>
    </item>
  </channel>
</rss>

