<?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: Line Chart, choose date, accumulative sum? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253123#M461043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, that was also helpful &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, Nitin!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2017 10:16:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-23T10:16:17Z</dc:date>
    <item>
      <title>Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253119#M461039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to QlikView, and have some trouble with creating a line chart with accumulative values.&lt;/P&gt;&lt;P&gt;I've searched around, but either I suck at searching, or the answers and solutions I've tried haven't worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a report regarding warehouse stock over time.&lt;/P&gt;&lt;P&gt;I have a data file giving me different movement types on products, quantities in/out date-wise (if you're familiar with SAP, it's the MB51-report).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to have a line-chart that will give me total value of the stock on a selected date, and total quantities.&lt;/P&gt;&lt;P&gt;As this is a "balance", I need to sum from day one up to the selected date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a straight table, this expression does the trick, at least showing me the stock on a particular date;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date={"&amp;lt;=$(=max(Date))"}&amp;gt;} [Quantity])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my line chart (using month/year as dimension) seems to sum the quantity movements each month instead of giving me the total quantity (= stock quantity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyone be helpful on this problem? &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;&lt;IMG alt="Quantity line chart.png" class="jive-image image-1" src="/legacyfs/online/154210_Quantity line chart.png" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The in-going balance at the start in November 2011 shows a quantity of 171.000, and December 2011 shows 37.000.&lt;/P&gt;&lt;P&gt;But the stock quantity in December should be 171.000+37.000 = 208.000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 09:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253119#M461039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-23T09:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253120#M461040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(SUM({&amp;lt;Date = {"&amp;lt;=$(=Max(Date))"}&amp;gt;}Quantity),0,RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 09:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253120#M461040</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-02-23T09:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253121#M461041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vegard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use 'Accumulate' under Expression tab in the chart using graphically or you can use the set expression as said by @manish kachhia in above comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253121#M461041</guid>
      <dc:creator>nitin_01</dc:creator>
      <dc:date>2017-02-23T10:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253122#M461042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's brilliant, Manish - works like a charm! &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;Now, I know this wasn't part of my original question, but say I'm choosing a year, lets say 2015.&lt;/P&gt;&lt;P&gt;The chart now only shows the 12 months in that year which is what I want, but it then just sums whatever happened that year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible to, in the same chart, to choose a year, and get the same values as from your expression?&lt;/P&gt;&lt;P&gt;It would basically be just a "zoom" of this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Quantity line chart 2.png" class="jive-image image-1" src="/legacyfs/online/154221_Quantity line chart 2.png" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253122#M461042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-23T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253123#M461043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, that was also helpful &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, Nitin!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253123#M461043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-23T10:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253124#M461044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&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;RangeSum(Above(SUM({&amp;lt;Date = {"&amp;lt;=$(=Max(Date))"}&lt;SPAN style="color: #ff0000;"&gt;, YearField&lt;/SPAN&gt;&amp;gt;}Quantity), 0, RowNo()))&lt;SPAN style="color: #ff0000;"&gt; * Avg(&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;Date = {"&amp;lt;=$(=Max&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Date))"}&amp;gt;}&lt;/STRONG&gt;1)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253124#M461044</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-23T10:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253125#M461045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/stalwar1"&gt;stalwar1&lt;/A&gt;‌solution will work.. Just check and update here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253125#M461045</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-02-23T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253126#M461046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changed YearField to Year, but getting "No data to display".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(SUM({&amp;lt;Date = {"&amp;lt;=$(=Max(Date))"}, Year&amp;gt;}Quantity), 0, RowNo())) * &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg({&amp;lt;Date = {"&amp;lt;=$(=Max(Date))"}&amp;gt;}1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253126#M461046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-23T10:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253127#M461047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work.. I just checked with dummy data and it's working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253127#M461047</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-02-23T10:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253128#M461048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, I don't see a reason why it shouldn't work. Would you be able to share a sample where this isn't working for you?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253128#M461048</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-23T10:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253129#M461049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for the try of it, I switched Quantity to Amount (value).&lt;/P&gt;&lt;P&gt;It's working with Amount, but not Quantity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253129#M461049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-23T10:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253130#M461050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I'm sorry - my bad.&lt;/P&gt;&lt;P&gt;Quantity was supposed to be [Qty in Base Unit]. It's working now, thanks! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 10:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253130#M461050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-23T10:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253131#M461051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure and difficult to say why 1 works, but the other one doesn't&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 11:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253131#M461051</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-23T11:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart, choose date, accumulative sum?</title>
      <link>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253132#M461052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 11:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-Chart-choose-date-accumulative-sum/m-p/1253132#M461052</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-23T11:00:32Z</dc:date>
    </item>
  </channel>
</rss>

