<?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: Accumulation with a set analysis in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulation-with-a-set-analysis-in-an-expression/m-p/803335#M283608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I finally solved my issue, turns out I was on the right track, just the wrong function. I needed to Sum a range of counts (rangesum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My amended expression now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;round(373&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (373+ Rangesum(Above(count($(SetAnalysisVar) [Field To Count]), 1, RowNo()-1))+ count($(SetAnalysisVar2) [Field To Count])),.0001)*100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;So my chart % now appears correctly (starts at 100% and goes down over time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81054_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 20:46:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-17T20:46:40Z</dc:date>
    <item>
      <title>Accumulation with a set analysis in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-with-a-set-analysis-in-an-expression/m-p/803333#M283606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully I can explain this correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set analysis I'm trying to use to calculate a percentage per month (I use a variable so that my expression isn't five miles long).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the expression&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;count($(setAnalysisVariable) [Field to be counted])&lt;/SPAN&gt;, and then set full accumulation for the expression I get a proper chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80753" alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80753_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I combine this with my full equation &lt;SPAN style="font-family: courier new,courier;"&gt;(round((373/(count($(setAnalysisVariable) [Field to be counted])+ 373)),.0001)*100)&lt;/SPAN&gt;, accumulation accumulates the percentage total:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80754" alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/80754_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I fix this equation so it accumulates the count in the expression and calculates the chart properly (the Mar-15 entry should be 73.14%, not 1464.46%, the Dec-13 entry is correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should add that I'm using a calculated dimension that resizes my calendar based on how many items are present (more than 16 months converts the calendar to years).&amp;nbsp; I'm assuming this is why my attempt to use "Aggr" does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 10:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-with-a-set-analysis-in-an-expression/m-p/803333#M283606</guid>
      <dc:creator />
      <dc:date>2015-03-14T10:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation with a set analysis in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-with-a-set-analysis-in-an-expression/m-p/803334#M283607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, update on this, I've been experimenting with the above statement with some results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current expression is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Above(count($(SetAnalysisVar) [Field Name]), 1,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;From the docs, above should follow above([expression], [offset], &lt;N&gt;), where offset is the number of rows above the current one to use, and where n tells the above statement to evaluate a range of above's.&lt;/N&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;First, I can't seem to get the n part of the expression to work.&amp;nbsp; No matter what number I put in that field, no changes appear in the chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I was thinking I could create a statement like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Above(count($(SetAnalysisVar) [Field Name]), RowNo()-1, RowNo())&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;The idea being that each successive row would essentially accumulate the counts from all prior rows, however this particular expression literally produces nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Anyone have ideas on what I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-with-a-set-analysis-in-an-expression/m-p/803334#M283607</guid>
      <dc:creator />
      <dc:date>2015-03-16T15:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation with a set analysis in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-with-a-set-analysis-in-an-expression/m-p/803335#M283608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I finally solved my issue, turns out I was on the right track, just the wrong function. I needed to Sum a range of counts (rangesum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My amended expression now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;round(373&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (373+ Rangesum(Above(count($(SetAnalysisVar) [Field To Count]), 1, RowNo()-1))+ count($(SetAnalysisVar2) [Field To Count])),.0001)*100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;So my chart % now appears correctly (starts at 100% and goes down over time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81054_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 20:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-with-a-set-analysis-in-an-expression/m-p/803335#M283608</guid>
      <dc:creator />
      <dc:date>2015-03-17T20:46:40Z</dc:date>
    </item>
  </channel>
</rss>

