<?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: Trend Line with Projection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421213#M156865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for checking it out orsh_ . Simple solutions are my favourite and it wouldn't be the first time I unnecessarily over-complicated something!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my real situation I don't have data for the rest of the month so when I try and use the set up that you suggested the chart cuts off where the data ends.&amp;nbsp; I have a date island for the date that I'm working with so I can get the rest of the month on the chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why but when I enable the expression below for cummulation, then the rest of the month trend line appears?&amp;nbsp; Without this expression enabled I only get the line for as many dates as I actually have data.&lt;/P&gt;&lt;P&gt;=RangeSum(above(Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}value_disc),0,rowno())) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ideal world I would have the actual accummulation line and then the trend line only starting after the actual data ends.&amp;nbsp; I saw some examples of this but since i couldn't get the basics working I abandoned that idea.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 16:40:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-14T16:40:48Z</dc:date>
    <item>
      <title>Trend Line with Projection</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421211#M156863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to work up a chart that will show the daily values as bars and then the cummulating trend until the end of the month.&amp;nbsp; Following the many helpful examples in the community I've made some progress but still the trend lines on the chart are going in the wrong direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data has more set analysis etc. in it but I created the attached simplified version with the data points in it and the calculation that I'm using and it effectively replicates the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on this would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lorna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 16:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421211#M156863</guid>
      <dc:creator />
      <dc:date>2013-01-14T16:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trend Line with Projection</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421212#M156864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not entirely sure why you've gone with this particular solution, so I'm a little loathe to suggest a more simple approach that may not be relevant - but in your use-case, would you be able to use QlikView's built-in accumulation function? If that's the case, all you need to do is Sum(Data) in expression, select "Full accumulation", and add a trend line. No second expression would be necessary. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 16:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421212#M156864</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2013-01-14T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trend Line with Projection</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421213#M156865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for checking it out orsh_ . Simple solutions are my favourite and it wouldn't be the first time I unnecessarily over-complicated something!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my real situation I don't have data for the rest of the month so when I try and use the set up that you suggested the chart cuts off where the data ends.&amp;nbsp; I have a date island for the date that I'm working with so I can get the rest of the month on the chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why but when I enable the expression below for cummulation, then the rest of the month trend line appears?&amp;nbsp; Without this expression enabled I only get the line for as many dates as I actually have data.&lt;/P&gt;&lt;P&gt;=RangeSum(above(Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}value_disc),0,rowno())) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ideal world I would have the actual accummulation line and then the trend line only starting after the actual data ends.&amp;nbsp; I saw some examples of this but since i couldn't get the basics working I abandoned that idea.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 16:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421213#M156865</guid>
      <dc:creator />
      <dc:date>2013-01-14T16:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trend Line with Projection</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421214#M156866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still trying to sort through this and feel that I'm pretty close.&lt;/P&gt;&lt;P&gt;This thread in particular has been very helpful: &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/16846" title="http://community.qlik.com/thread/16846"&gt;http://community.qlik.com/thread/16846&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that because I'm trying to perform this trend on a daily basis for the days in a month the inclusion of the weekends is making the trend part not calculate properly.&amp;nbsp; I've tried doing set analysis to exclude weekends but it didn't help.&amp;nbsp; I've attached a spreadsheet showing the calculation results from having the daily sum, an accumulating line for the sum and then the trend calculation results.&amp;nbsp; The trend and the cummulation should match up until we're beyond today.&amp;nbsp; After that the calculation seems to attributing the prior 0 value days to the calculation so the trend line ends up falling off to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="30229" class="jive-image-thumbnail jive-image" onclick="" alt="TrendTestPic.png" src="https://community.qlik.com/legacyfs/online/30229_TrendTestPic.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula that I'm using for the trend.&amp;nbsp; Thanks for any insight! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lorna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}total_acv_term_with_disc)&lt;/P&gt;&lt;P&gt;,Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}total_acv_term_with_disc) &lt;/P&gt;&lt;P&gt;,linest_m(total aggr(if(Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}total_acv_term_with_disc)&lt;/P&gt;&lt;P&gt;,Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}total_acv_term_with_disc)&lt;/P&gt;&lt;P&gt;),legal_approved_date),legal_approved_date)*only({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}legal_approved_date) &lt;/P&gt;&lt;P&gt;+linest_b(total aggr(if(Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}total_acv_term_with_disc)&lt;/P&gt;&lt;P&gt;,Sum({1&amp;lt;MY_legal_approved_date={'$(vCurrentMonthyear)'}&amp;gt;}total_acv_term_with_disc)&lt;/P&gt;&lt;P&gt;),legal_approved_date),legal_approved_date))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421214#M156866</guid>
      <dc:creator />
      <dc:date>2013-01-14T21:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trend Line with Projection</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421215#M156867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lorna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421215#M156867</guid>
      <dc:creator />
      <dc:date>2013-01-14T21:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trend Line with Projection</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421216#M156868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still not sure I have my head wrapped around what you're trying to achieve, and that formula is just too long to even try and parse out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how I'd handle what I *think* you want to do, based on what I *think* your data format is. Note that I've done exactly what I posted above, but I made the X-axis continuous (Axes tab) and unchecked "Suppress Zero-values" (Presentation Tab). I've included a second graph which uses the Forecast option (Axes tab), which may be more appropriate if you do not have auto-generated future dates (You can select "Jan1" to see how it works with partial data). Hopefully this helps - unfortunately, I am not able to help with the avenue of approach you've gotten from the linked thread, as I've never tried using that particular mechanism. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421216#M156868</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2013-01-15T12:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trend Line with Projection</title>
      <link>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421217#M156869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help orsh__.&lt;/P&gt;&lt;P&gt;I've adapted my chart based on your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lorna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 16:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trend-Line-with-Projection/m-p/421217#M156869</guid>
      <dc:creator />
      <dc:date>2013-01-18T16:53:10Z</dc:date>
    </item>
  </channel>
</rss>

