<?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: Simple accumulation problem in line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955287#M968758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached is my qvw - I used the expression as a reference line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 11:54:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-01T11:54:29Z</dc:date>
    <item>
      <title>Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955278#M968749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi!&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm writting because I have a simple problem which couldn't solve yet.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/legacyfs/online/100408_1.png"&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="441" src="https://community.qlik.com/legacyfs/online/100408_1.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="996" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As you can see, the fields are year, month, day, date (which summarizes the former 3 fields in date format) and sales.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;There is a row for each day from 1 june 2015 to 31 august 2015, and in each row the value of Sales field is 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mi goal is to show a line chart where when filtering by year and month, the chart would show the days of that month in the X axis and for each date the sales of the last 60 days until that day in the Y axis (for example, in 20 august in X axis it should show 600 sales because 600 is the number of sales from 20 of june to 20 of august).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Because there are 10 sales each day, the chart should show an horizontal line with 600 as Y axis value, however, the result I get is quite different:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/legacyfs/online/100409_2.png"&gt;&lt;IMG alt="2.png" class="jive-image image-2" height="439" src="https://community.qlik.com/legacyfs/online/100409_2.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="744" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The expression I'm using to get the sales from last 60 days is the following (note that I'm using Sum(Sales) with 60 steps of accumulation):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/legacyfs/online/100410_3.png"&gt;&lt;IMG alt="3.png" class="jive-image image-3" height="572" src="https://community.qlik.com/legacyfs/online/100410_3.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="814" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Obviously, the result I get (a line from 0 to 300 sales) is not the expected result (an horizontal line fixed at 600 sales).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What I need is a solution, no matter if using SET ANALYSIS, ACCUMULATION or whatever in order to reach my goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If there is any doubt, please do not hessitate in asking for further information.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've attached the files Sales.qvw and Sales.xlsx (both files should be in the same folder in order to load the data from the xlsx to the qvw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks in advance!&lt;BR /&gt;Matias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 04:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955278#M968749</guid>
      <dc:creator />
      <dc:date>2015-09-29T04:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in chart beyond boundaries</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955279#M968750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather take Date as dimension and exp like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year,Month,Date={"&amp;gt;$(=Date(Max(Date)-60))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 05:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955279#M968750</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-29T05:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in chart beyond boundaries</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955280#M968751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tresesco thanks for the answer! But the solution you proposed did not work.&lt;/P&gt;&lt;P&gt;Here is the screenshot (I've attached the updated qvw with the xlsx which must be in the same folder to be loaded).&lt;/P&gt;&lt;P&gt;The expected result must be an horizontal line with 600 as constant value because there are 10 sales each day. The result obtained is not the expected:&lt;BR /&gt;&lt;IMG alt="a.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100372_a.png" style="height: 449px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955280#M968751</guid>
      <dc:creator />
      <dc:date>2015-09-29T17:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955281#M968752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me first discourage you in - posting multiple threads for the same query. That actually deteriorates the community hygiene.&lt;/P&gt;&lt;P&gt;Back to your query: I don't see &lt;STRONG&gt;10 sales&lt;/STRONG&gt; for a day in your sample data set. And, please don't explain about what it is coming like (because, that we can check anyway from the attachment), rather explain what you exactly want the output to be like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 07:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955281#M968752</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-30T07:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955282#M968753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tresesco, thanks for the answer!&lt;/P&gt;&lt;P&gt;Sorry for posting the same problem in multiple threads but this is very urgent. My work depends on it.&lt;/P&gt;&lt;P&gt;There is 10 sales each day from 1 june to 31 august in the sample dataset.&lt;/P&gt;&lt;P&gt;I've even put a screenshot of the dataset in my last reply, look at it.&lt;/P&gt;&lt;P&gt;What I want that each day (X axis) in the chart shows the sum of sales of the last 60 days: 60 days * 10 sales per day = 600 sales. So, the result in august should be a straight horizontal line with 600 as Y axis value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 15:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955282#M968753</guid>
      <dc:creator />
      <dc:date>2015-09-30T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955283#M968754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there always going to be 10 sales per day or is this just how it is now - are you wanting to using this horizontal line at 600 more as a reference line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955283#M968754</guid>
      <dc:creator />
      <dc:date>2015-09-30T16:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955284#M968755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you need to follow along the lines of treseco - I was able to get a line at 600 by using it as a reference line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically the chart has 2 horizontal lines - one fore daily, whcih is 10 for each day and the other for 600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I used to store in a variable was &lt;SPAN style="font-size: 8pt;"&gt;=('&amp;gt;=' &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))-60) &amp;amp; '&amp;lt;=' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is going back 60 days from the max date in the data set through and including the max date in the data set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955284#M968755</guid>
      <dc:creator />
      <dc:date>2015-09-30T16:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955285#M968756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam, thanks for joining Tresesco to help me.&lt;/P&gt;&lt;P&gt;In the real scenario, the sales will be different each day, but I prepared an extremely simplified qvw and excel of my problem to help you guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using the expression you proposed (&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=('&amp;gt;=' &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))-60) &amp;amp; '&amp;lt;=' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))&lt;/SPAN&gt;) with no success.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Would it be too much trouble if &lt;/SPAN&gt;you attach the qvw with the modification in a reply?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 03:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955285#M968756</guid>
      <dc:creator />
      <dc:date>2015-10-01T03:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955286#M968757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Date&lt;/P&gt;&lt;P&gt;Exp: Sum(&lt;STRONG&gt;total&lt;/STRONG&gt; {&amp;lt;Year,Month,Date={"&amp;gt;$(=Date(Max(Date)-60))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100571_Untitled.png" style="width: 620px; height: 243px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 05:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955286#M968757</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-01T05:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Simple accumulation problem in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955287#M968758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached is my qvw - I used the expression as a reference line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/955287#M968758</guid>
      <dc:creator />
      <dc:date>2015-10-01T11:54:29Z</dc:date>
    </item>
  </channel>
</rss>

