<?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 Accumulation (with Dimensions) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254718#M585922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;To answer you question "why I need both an equal sign and $() inside my set analysis..?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In Set analysis the expression inside set should be within $ i.e., "$(=Max(Year)-1)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The reason for equal sign inside the $ is it compute the expression and $ will return the value.&lt;/P&gt;&lt;P&gt;I hope this will be clear for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2011 15:57:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-08T15:57:04Z</dc:date>
    <item>
      <title>Chart Accumulation (with Dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254714#M585918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a chart that has bars for monthly sales (the chart has the primary dimension Month and the secondary dimension Year). Also, I want the same chart to show the accumulated sales as a line (but true to the dimensions, that is, QlikView should not accumulate for all years, but create accumulated sales per month for each year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to setup an example of what I want, and how I have tried to solve the problem... Could anyone take a look at the attached file and help me figure out what is going on, and how I best solve the problem? I really don't understand why my set analysis is not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel Example&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/6327_Untitled.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I updated this discussion with an Excel file of what the chart should look like...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 23:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254714#M585918</guid>
      <dc:creator />
      <dc:date>2011-08-06T23:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation (with Dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254715#M585919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;take a look at the chart I derived from your first guess. May be you want to replace my hardcoded years with a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 11:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254715#M585919</guid>
      <dc:creator />
      <dc:date>2011-08-07T11:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation (with Dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254716#M585920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Good Attempt of Set Analysis. But your expression is wrong. That's why you get error result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;Year={'=Max(Year)-1'}&amp;gt;}Sales) - Your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}Sales) - Correct Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;Year={'=Max(Year)'}&amp;gt;}Sales) - Your Expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}Sales) - Correct Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason i removed 1 is, it will exclude the selection.&lt;/P&gt;&lt;P&gt;Try this. It is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 11:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254716#M585920</guid>
      <dc:creator />
      <dc:date>2011-08-07T11:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation (with Dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254717#M585921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland &amp;amp; Srinivasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies... Both solutions were good. I didn't even think to try an If-expression. But I think I will go with Srinivasan's solution as I will need to discard any selections, and keep the '1'. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I don't understand why I need both an equal sign and $() inside my set analysis..? Shouldn't the equal sign be enough..? Well, it is working, so I will just remember to use your syntax, Srinivasan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping out... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I have attached my final solution, which also cuts off accumulation for months, which are not present as discussed &lt;A _jive_internal="true" href="https://community.qlik.com/message/63530"&gt;elsewhere&lt;/A&gt; in the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Accumulation Ex 1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6328_Accumulation+Ex+1.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 11:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254717#M585921</guid>
      <dc:creator />
      <dc:date>2011-08-07T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Accumulation (with Dimensions)</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254718#M585922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;To answer you question "why I need both an equal sign and $() inside my set analysis..?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In Set analysis the expression inside set should be within $ i.e., "$(=Max(Year)-1)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The reason for equal sign inside the $ is it compute the expression and $ will return the value.&lt;/P&gt;&lt;P&gt;I hope this will be clear for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 15:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Accumulation-with-Dimensions/m-p/254718#M585922</guid>
      <dc:creator />
      <dc:date>2011-08-08T15:57:04Z</dc:date>
    </item>
  </channel>
</rss>

