<?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: Chart - Expression: Count and Accumulate when in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112974#M898909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try and work it out on my own and be more clear as to what I'm looking for becuase either I'm not following which is probable or we are not in synch.&amp;nbsp; Thanks!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 14:09:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-21T14:09:15Z</dc:date>
    <item>
      <title>Chart - Expression: Count and Accumulate when</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112969#M898904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample data below and sample app attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to measure "Engaged Members" Per Month (&amp;amp; create a % change per month in a como chart but need to understand how I would create the counts first).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Metric:&lt;/P&gt;&lt;P&gt;Per month: Count member id and when member is still "Open" accumulate to the following month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below data should read&lt;/P&gt;&lt;P&gt;201607 = 10 (Memberid: 1-9 &amp;amp; 21)&lt;/P&gt;&lt;P&gt;201606 = 8 (Memberid: 13-19 &amp;amp; 21)&lt;/P&gt;&lt;P&gt;Total records below = 17&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/132004_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&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/Chart-Expression-Count-and-Accumulate-when/m-p/1112969#M898904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Chart - Expression: Count and Accumulate when</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112970#M898905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 06:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112970#M898905</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-21T06:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Chart - Expression: Count and Accumulate when</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112971#M898906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's close, but for my chart my results are backwards. See below pic. The accumulation total should be larger througout time. I simply tried to sort ASC but that didn't work. I also tried to swap above with below and that didn't seem to work either. I do only want to visually see 6 values but calculate all. So, I added the if(rowNo()&amp;lt;=6&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="132059" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132059_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&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;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&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;above&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="color: #800000; font-size: 8pt;"&gt;ENROLLMENT_STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'OPEN'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STARTDATE_YYYYMM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STARTDATE_YYYYMM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt; )&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 11:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112971#M898906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-21T11:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chart - Expression: Count and Accumulate when</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112972#M898907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the script. It explains how the months are sorted. If you want only the last six month then select those months or add a condition to the expression that selects those months. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; COUNT(&lt;STRONG&gt;{&amp;lt;START_Year_Month={'&amp;gt;=$(=max(START_Year_Month)-5)&amp;lt;=$(=max(START_Year_Month))'}&amp;gt;}&lt;/STRONG&gt;Memberid),&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(&lt;STRONG&gt;{&amp;lt;START_Year_Month={'&amp;gt;=$(=max(START_Year_Month)-5)&amp;lt;=$(=max(START_Year_Month))'}&amp;gt;}&lt;/STRONG&gt;aggr(rangesum(above(COUNT({&amp;lt;Status={'OPEN'},START_Year_Month&amp;gt;}Memberid), 1, RowNo(total))),START_Year_Month))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, this won't work correctly if you pass a year border. 201605 - 5 = 201600 instead of 201512. What you need to do to fix that is to use a real date field instead of the ordinal numeric yearmonth field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 11:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112972#M898907</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-21T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Chart - Expression: Count and Accumulate when</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112973#M898908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached&lt;/P&gt;&lt;P&gt;&lt;IMG alt="openMembers.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132068_openMembers.JPG" style="height: 241px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112973#M898908</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-21T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Chart - Expression: Count and Accumulate when</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112974#M898909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try and work it out on my own and be more clear as to what I'm looking for becuase either I'm not following which is probable or we are not in synch.&amp;nbsp; Thanks!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Expression-Count-and-Accumulate-when/m-p/1112974#M898909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-21T14:09:15Z</dc:date>
    </item>
  </channel>
</rss>

