<?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 Simple accumulation problem in line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/1005817#M527737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm writting because I have a simple problem which couldn't solve yet.&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-878815-100385/1.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="441" src="https://community.qlik.com/legacyfs/online/100405_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&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&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&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&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 _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-878815-100386/2.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="2.png" class="jive-image image-2" height="439" src="https://community.qlik.com/legacyfs/online/100406_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 _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-878815-100387/3.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="3.png" class="jive-image image-3" height="572" src="https://community.qlik.com/legacyfs/online/100407_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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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>Wed, 23 Sep 2015 05:43:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-23T05:43:50Z</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/1005817#M527737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm writting because I have a simple problem which couldn't solve yet.&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-878815-100385/1.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="441" src="https://community.qlik.com/legacyfs/online/100405_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&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&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&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&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 _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-878815-100386/2.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="2.png" class="jive-image image-2" height="439" src="https://community.qlik.com/legacyfs/online/100406_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 _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-878815-100387/3.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="3.png" class="jive-image image-3" height="572" src="https://community.qlik.com/legacyfs/online/100407_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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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>Wed, 23 Sep 2015 05:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/1005817#M527737</guid>
      <dc:creator />
      <dc:date>2015-09-23T05:43:50Z</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/1005818#M527738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need use SET ANALISYS, see this documnets:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 06:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/1005818#M527738</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-09-23T06:39:37Z</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/1005819#M527739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can u share some sample data for better and quick result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 06:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/1005819#M527739</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2015-09-23T06:40:00Z</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/1005820#M527740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers. Enrique, I know what set analysis is. What I do not know is how to solve my problem in&lt;/P&gt;&lt;P&gt;this case using it. I've attached a sample QVW. The sample has sales from 1 of june to 31 of&lt;/P&gt;&lt;P&gt;august, and in each day there are 10 sales (so, the expected result is that the sales accumulation from 60 days&lt;/P&gt;&lt;P&gt;on each day are 600 sales -a constant horizontal line-).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 04:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/1005820#M527740</guid>
      <dc:creator />
      <dc:date>2015-09-29T04:08:52Z</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/1005821#M527741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So here is what you do. I changed the sales numbers a little bit so that the "Sales per day" line on the chart wasn't hidden. &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a variable...let's call it v60Day. It's value "=Date(Max(Date)-60)" (don't forget the equals sign, that's important). This will give you the date 60 days before the latest date in your selection.&lt;/LI&gt;&lt;LI&gt;Here is your expression for "Sales last 60 days": Aggr(Sum({1&amp;lt;Date={"&amp;gt;$(=v60Day)"}&amp;gt;} TOTAL Sales),Date)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is the result...the straight chart at the bottom shows what the the Aggr statement above really does. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-06-24_10-43-06.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129122_2016-06-24_10-43-06.png" style="height: 625px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 14:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-accumulation-problem-in-line-chart/m-p/1005821#M527741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-24T14:45:01Z</dc:date>
    </item>
  </channel>
</rss>

