<?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 Aggregation in stacked bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregation-in-stacked-bar-chart/m-p/1747271#M57411</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the following stacked bar chart and want to display a running sum in each month :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NorrinRadd_2-1601049813630.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41236i20E771CFBC30F8AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NorrinRadd_2-1601049813630.png" alt="NorrinRadd_2-1601049813630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So for example in Dec-19 I would want&lt;/P&gt;&lt;P&gt;LR7D = 58 + 7&lt;/P&gt;&lt;P&gt;LR30D = 58 + 7 + 9&lt;/P&gt;&lt;P&gt;The formaul used in the stacked bar chart is:&lt;/P&gt;&lt;P&gt;Pick(Only({1} VIZ_PeriodId)&lt;BR /&gt;,//1:&lt;BR /&gt;Sum({&amp;lt;RelativeYear={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeYear={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//2: Last Year&lt;BR /&gt;Sum({&amp;lt;RelativeYear={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeYear={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//3: YTD&lt;BR /&gt;Sum({&amp;lt;IsYTD={'Yes'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;IsYTD={'Yes'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//4:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-12'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-12'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//5:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-11'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-11'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//6:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-10'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-10'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//7:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-9'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-9'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//8:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-8'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-8'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//9:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-7'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-7'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//10:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-6'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-6'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//19:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-5'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-5'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//12:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-4'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-4'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//13:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-3'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-3'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//14:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//15:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried used the the accumulation modifer on this measure but it sems to only aggregate the first two stacks..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NorrinRadd_3-1601050101471.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41238i1293E94340D08B08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NorrinRadd_3-1601050101471.png" alt="NorrinRadd_3-1601050101471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also tried using RangeSum in the formaula of the measure with some strange results..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers greatly appreciated..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 16:11:51 GMT</pubDate>
    <dc:creator>NorrinRadd</dc:creator>
    <dc:date>2020-09-25T16:11:51Z</dc:date>
    <item>
      <title>Aggregation in stacked bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-in-stacked-bar-chart/m-p/1747271#M57411</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the following stacked bar chart and want to display a running sum in each month :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NorrinRadd_2-1601049813630.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41236i20E771CFBC30F8AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NorrinRadd_2-1601049813630.png" alt="NorrinRadd_2-1601049813630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So for example in Dec-19 I would want&lt;/P&gt;&lt;P&gt;LR7D = 58 + 7&lt;/P&gt;&lt;P&gt;LR30D = 58 + 7 + 9&lt;/P&gt;&lt;P&gt;The formaul used in the stacked bar chart is:&lt;/P&gt;&lt;P&gt;Pick(Only({1} VIZ_PeriodId)&lt;BR /&gt;,//1:&lt;BR /&gt;Sum({&amp;lt;RelativeYear={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeYear={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//2: Last Year&lt;BR /&gt;Sum({&amp;lt;RelativeYear={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeYear={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//3: YTD&lt;BR /&gt;Sum({&amp;lt;IsYTD={'Yes'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;IsYTD={'Yes'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//4:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-12'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-12'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//5:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-11'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-11'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//6:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-10'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-10'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//7:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-9'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-9'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//8:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-8'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-8'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//9:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-7'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-7'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//10:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-6'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-6'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//19:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-5'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-5'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//12:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-4'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-4'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//13:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-3'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-3'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//14:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-2'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;BR /&gt;,//15:&lt;BR /&gt;Sum({&amp;lt;RelativeMonth={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} (TOTAL_CONTRACT_MARGIN))/Sum({&amp;lt;RelativeMonth={'-1'},CanonicalType={'SupplyContractStartDate'}&amp;gt;} TOTAL (TOTAL_CONTRACT_MARGIN))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried used the the accumulation modifer on this measure but it sems to only aggregate the first two stacks..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NorrinRadd_3-1601050101471.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41238i1293E94340D08B08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NorrinRadd_3-1601050101471.png" alt="NorrinRadd_3-1601050101471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also tried using RangeSum in the formaula of the measure with some strange results..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers greatly appreciated..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 16:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-in-stacked-bar-chart/m-p/1747271#M57411</guid>
      <dc:creator>NorrinRadd</dc:creator>
      <dc:date>2020-09-25T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in stacked bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-in-stacked-bar-chart/m-p/1748855#M57572</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/118290"&gt;@NorrinRadd&lt;/a&gt;&amp;nbsp;would you be able to share a sample file where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 13:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-in-stacked-bar-chart/m-p/1748855#M57572</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-10-01T13:45:13Z</dc:date>
    </item>
  </channel>
</rss>

