<?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: Problem with trend line in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-trend-line/m-p/1278122#M26589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I simplified the expression by changing your loadscript to simply create a field as part of the load that was your Month and Year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sheet1-1]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(monthstart(OpenDate), 'MMM-YY') as MonthYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [lib://Queries/CallData.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your chart expression is a little simpler to follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; linest_m(total aggr(if(count(TaskID),count(TaskID)),MonthYear),MonthYear)* &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; only({1}MonthYear)+linest_b(total aggr(if(count(TaskID),count(TaskID)),MonthYear),MonthYear) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Wayne.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144409_Wayne.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my modified version of your application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. For anyone reading the formula and asking "what in the world is that AGGR stuff" ... be sure to watch this recorded webinar that explains the AGGR function in detail. &lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: #2288af; background: white;"&gt;&lt;A href="http://event.on24.com/wcc/r/1282824/3F17A1A59D58CCBE5B9A246A6208176B"&gt;http://event.on24.com/wcc/r/1282824/3F17A1A59D58CCBE5B9A246A6208176B&lt;/A&gt;&lt;/SPAN&gt; it includes beginning and intermediate content from me, and advanced content by &lt;A href="https://community.qlik.com/qlik-users/2310"&gt;troyansky&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 15:22:55 GMT</pubDate>
    <dc:creator>Dalton_Ruer</dc:creator>
    <dc:date>2016-11-21T15:22:55Z</dc:date>
    <item>
      <title>Problem with trend line</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-trend-line/m-p/1278121#M26588</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 trying to add a trend line to a pretty simple bar chart but I'm having trouble with the linest function giving back data.&amp;nbsp; I've looked over all the examples of this and can't figure out where I've got it wrong.&amp;nbsp; My input data is just two columns, a task-id and and open date.&amp;nbsp; I'm charting the number of tasks per month and I'd like a trend line.&amp;nbsp; To do that I'm using the Linest_M, Linest_B example posted by Mike Tarallo from here:&amp;nbsp; &lt;A _jive_internal="true" href="https://community.qlik.com/message/589715?&amp;amp;_ga=1.178503972.1681760603.1478098016#589715" title="https://community.qlik.com/message/589715?&amp;amp;_ga=1.178503972.1681760603.1478098016#589715"&gt;https://community.qlik.com/message/589715?&amp;amp;_ga=1.178503972.1681760603.1478098016#589715&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I'm having is that I can't even get information out for the Linest_M function.&amp;nbsp; My function looks like this:&lt;/P&gt;&lt;P&gt;LINEST_M(Total aggr(Distinct Count(TaskID),(Date(monthstart(OpenDate), 'MMM-YY')),(Date(monthstart(OpenDate), 'MMM-YY'))),(Date(monthstart(OpenDate), 'MMM-YY')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;App is attached for reference.&amp;nbsp; Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 20:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-trend-line/m-p/1278121#M26588</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2016-11-18T20:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with trend line</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-trend-line/m-p/1278122#M26589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I simplified the expression by changing your loadscript to simply create a field as part of the load that was your Month and Year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sheet1-1]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(monthstart(OpenDate), 'MMM-YY') as MonthYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TaskID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [lib://Queries/CallData.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your chart expression is a little simpler to follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; linest_m(total aggr(if(count(TaskID),count(TaskID)),MonthYear),MonthYear)* &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; only({1}MonthYear)+linest_b(total aggr(if(count(TaskID),count(TaskID)),MonthYear),MonthYear) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Wayne.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144409_Wayne.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my modified version of your application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. For anyone reading the formula and asking "what in the world is that AGGR stuff" ... be sure to watch this recorded webinar that explains the AGGR function in detail. &lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: #2288af; background: white;"&gt;&lt;A href="http://event.on24.com/wcc/r/1282824/3F17A1A59D58CCBE5B9A246A6208176B"&gt;http://event.on24.com/wcc/r/1282824/3F17A1A59D58CCBE5B9A246A6208176B&lt;/A&gt;&lt;/SPAN&gt; it includes beginning and intermediate content from me, and advanced content by &lt;A href="https://community.qlik.com/qlik-users/2310"&gt;troyansky&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-trend-line/m-p/1278122#M26589</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2016-11-21T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with trend line</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-trend-line/m-p/1278123#M26590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Dalton!&amp;nbsp; This is great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-trend-line/m-p/1278123#M26590</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2016-11-21T15:43:04Z</dc:date>
    </item>
  </channel>
</rss>

