<?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: Mutation to stock chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132115#M372087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny T,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help and suggested solution. Basically you've done exactly what i need (sorry for the 04-6-2016 typo in base data by the way) except i dont have the 0 values that you've added in the load.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Because of this, if we still use the example, for product 1001, 05-5-2016 won't be shown.&lt;BR /&gt;Also, if i add more data (say muation values for 4 years), and i make a selection like year = 2015, the stock amount of&lt;/P&gt;&lt;P&gt;10-5-2015 is different to the same date's stock amount when i dont select this year, probably because the start date is now 01-1-2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, thanks again, im almost there now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2016 14:21:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-06T14:21:37Z</dc:date>
    <item>
      <title>Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132112#M372084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is probably not difficult at all, however I don't really know what to search for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to create a chart that displays the amount of stock per date. I have no actual amount of stock per product per day available, only mutations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Mutation&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;+ 10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; - 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;- 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;+ 5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;+ 200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;04-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like is to be able to select for example 05-6-2016 and get 8 for Product ID 1000 and 175 for Product ID 1001. &lt;BR /&gt;I can achieve this for any specific date with set analys like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUM({1&amp;lt;Date ={"&amp;lt;=$(=today())"}&amp;gt;}[Mutation])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, i want to be able to use date as a dimension, and get the sum of all mutations from the start until the specific date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, using my example, the result should be: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Stock&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02-6-2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-6-2016&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;04-6-2016&lt;/TD&gt;&lt;TD&gt;175&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05-6-2016&lt;/TD&gt;&lt;TD&gt;175&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 12:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132112#M372084</guid>
      <dc:creator />
      <dc:date>2016-06-06T12:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132113#M372085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Sum({&amp;lt;Date&amp;gt;}Stock), 0, RowNo())) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample to follow... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 13:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132113#M372085</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-06T13:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132114#M372086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I completely understand the raw data, but I used this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product ID, Date, Stock&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000, 01-6-2016, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000, 02-6-2016, -1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000, 03-6-2016, -2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000, &lt;SPAN style="color: #ff0000;"&gt;04&lt;/SPAN&gt;-6-2016, 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000, 05-6-2016, -4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;1001, 01-6-2016, 0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1001, 02-6-2016, 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1001, 03-6-2016, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1001, 04-6-2016, -25&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; 1001, 05-6-2016, 0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;to get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="126953" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126953_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Selection:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="126954" alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126954_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(RangeSum(Above(Sum({&amp;lt;Date&amp;gt;}Stock), 0, RowNo())) = 0, 0.00001, RangeSum(Above(Sum({&amp;lt;Date&amp;gt;}Stock), 0, RowNo()))) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 13:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132114#M372086</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-06T13:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132115#M372087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny T,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help and suggested solution. Basically you've done exactly what i need (sorry for the 04-6-2016 typo in base data by the way) except i dont have the 0 values that you've added in the load.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Because of this, if we still use the example, for product 1001, 05-5-2016 won't be shown.&lt;BR /&gt;Also, if i add more data (say muation values for 4 years), and i make a selection like year = 2015, the stock amount of&lt;/P&gt;&lt;P&gt;10-5-2015 is different to the same date's stock amount when i dont select this year, probably because the start date is now 01-1-2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, thanks again, im almost there now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 14:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132115#M372087</guid>
      <dc:creator />
      <dc:date>2016-06-06T14:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132116#M372088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue 1 can only be resolved if you have all dates for all your Product ID. If the date is not available for each Product ID, you won't be able to see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue 2 is simple, you can add all your date related fields to the set analysis:&lt;/P&gt;&lt;P&gt;&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;If(RangeSum(Above(Sum({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Date, Month, Year, MonthYear, Quarter, QuarterYear&lt;/SPAN&gt;&amp;gt;}Stock), 0, RowNo())) = 0, 0.00001, RangeSum(Above(Sum({&amp;lt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date, Month, Year, MonthYear, Quarter, QuarterYear&lt;/STRONG&gt;&amp;gt;}Stock), 0, RowNo()))) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 14:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132116#M372088</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-06T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132117#M372089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny T,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again for your reply. So, if u fully want to achieve as described above, i basically need to adjust the backend. If it's the only possibility thats exactly what we'll do, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second issue is indeed solved with you're suggestion, so that's nice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it also possible to use set analysis or other selections within &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;RangeSum(Above(Sum({&amp;lt;Date&amp;gt;}Stock), 0, RowNo())) * Avg(1) &lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, instead of using product, use a related dimension like supplier or segment? Because this doesnt seem to work as id expect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And why is the expression total 0 for this expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jeroen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 07:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132117#M372089</guid>
      <dc:creator />
      <dc:date>2016-06-07T07:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132118#M372090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So, if u fully want to achieve as described above, i basically need to adjust the backend. If it's the only possibility thats exactly what we'll do, thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes AFAIK this is might be the only efficient solution. The other one might be synthetic dimensions using ValueList or using Island Dimension which can get very messy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Is it also possible to use set analysis or other selections within &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;RangeSum(Above(Sum({&amp;lt;Date&amp;gt;}Stock), 0, RowNo())) * Avg(1) &lt;/STRONG&gt;?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes you can use set analysis within the Sum function as you would normally do. You might have to apply the same set analysis to the Avg() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;So, instead of using product, use a related dimension like supplier or segment? Because this doesnt seem to work as id expect. &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was based on the sample you provided. If dimension is Supplier or Segment, it should accumulate based on those dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;And why is the expression total 0 for this expression? &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What total would you want to see? the final accumulated value? Sum of all the rows? You can use Dimensionality() function to get what you are looking for. or you can use Aggr() function. Let me know what you want and I can give you a more precise expression which will get you the required total as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 10:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132118#M372090</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-07T10:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mutation to stock chart</title>
      <link>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132119#M372091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much for your help. I know what to do now, change our backend. And while i wait for this to happen, i can use your example to show users almost everything they want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really know what answer to accept because they are all true &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 10:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mutation-to-stock-chart/m-p/1132119#M372091</guid>
      <dc:creator />
      <dc:date>2016-06-07T10:12:21Z</dc:date>
    </item>
  </channel>
</rss>

