<?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: Bar Charts and Accumulation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127399#M898445</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;=If(STARTDATE_YYYYMM &amp;gt;= Max(TOTAL STARTDATE_YYYYMM, 6), Below(RangeSum(Below(Count({&amp;lt;Status = {'Open'}&amp;gt;}id), 0, NoOfRows() - RowNo() + 1))) + Count(id))&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/132242_Capture.PNG" style="height: auto;" /&gt;&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;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 17:01:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-22T17:01:21Z</dc:date>
    <item>
      <title>Bar Charts and Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127396#M898442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to create a chart with an expression that captures a count of YYYYMM (not in date format) of a member id.&lt;/P&gt;&lt;P&gt;A. Count all members for that Month&lt;/P&gt;&lt;P&gt;B. Also accumulate members for all of the previous months that have an enrollment status of Open.&lt;/P&gt;&lt;P&gt;C. Chart layout the latest 6 months.&lt;/P&gt;&lt;P&gt;D. 201607 out put should be 49,755, 201606 output should be 48,199&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;201607&amp;nbsp;&amp;nbsp;&amp;nbsp; 201606&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201605&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201604&amp;nbsp;&amp;nbsp;&amp;nbsp; 201603&amp;nbsp;&amp;nbsp;&amp;nbsp; 201602&lt;/P&gt;&lt;P&gt;49,755&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48,199&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is sample data and sample output of what I would like with a pivot table. Also, can someone please explain what the expression is doing. When we start talking about Aggr(), RangeSum, RowNo() I start to lose track of what's going on.&lt;/P&gt;&lt;P&gt;I have similar charts with below formulas from others that have helped me on here but I cannot duplicate.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &amp;lt;= 6, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Below&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() + 1))) &lt;/SPAN&gt;&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/Bar-Charts-and-Accumulation/m-p/1127396#M898442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Charts and Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127397#M898443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want this?&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/132226_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for 2nd column&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(STARTDATE_YYYYMM &amp;gt;= Max(TOTAL STARTDATE_YYYYMM, 2), Above(RangeSum(Above(Count({&amp;lt;Status = {'Open'}&amp;gt;}id), 0, RowNo()))) + Count(id))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 15:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127397#M898443</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-22T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Charts and Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127398#M898444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The counts are correct but I would like a rolling 6 values for Start_date_YYYYMM and starting from Left to right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132240_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to see the chart like below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;49,755&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48,199&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 44,2134&amp;nbsp;&amp;nbsp; 46,664&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36,791&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33,715&lt;/P&gt;&lt;P&gt;201607&amp;nbsp;&amp;nbsp; 201606&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201605&amp;nbsp;&amp;nbsp;&amp;nbsp; 201604&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201603&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201602&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 16:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127398#M898444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-22T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Charts and Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127399#M898445</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;=If(STARTDATE_YYYYMM &amp;gt;= Max(TOTAL STARTDATE_YYYYMM, 6), Below(RangeSum(Below(Count({&amp;lt;Status = {'Open'}&amp;gt;}id), 0, NoOfRows() - RowNo() + 1))) + Count(id))&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/132242_Capture.PNG" style="height: auto;" /&gt;&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;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127399#M898445</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-22T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Charts and Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127400#M898446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly! But this expression! I would like to learn more about complex expression (this is complex for me).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(STARTDATE_YYYYMM &amp;gt;= Max(TOTAL STARTDATE_YYYYMM, 6), Below(RangeSum(Below(Count({&amp;lt;Status = {'Open'}&amp;gt;}id), 0, NoOfRows() - RowNo() + 1))) + Count(id))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127400#M898446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-22T17:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Charts and Accumulation</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127401#M898447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Breaking down into pieces ideally help in understanding what might this be doing. That's what I usually what I do when I see a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start with the inner most parts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(id)&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Status = {'Open'}&amp;gt;}id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try to build from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Charts-and-Accumulation/m-p/1127401#M898447</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-22T17:44:47Z</dc:date>
    </item>
  </channel>
</rss>

