<?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 Creating my own TrendLine in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-my-own-TrendLine/m-p/1290766#M623183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create my own trend line (because for some inexplicable reason, QlikView's built in trend lines look like a line you'd see on the old 4-bit Atari consoles).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart object with a bar series showing the data (labeled as "RVU").&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;MonthSerial&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;"&amp;gt;=$(=MAX(MonthSerial)-24)&amp;lt;=$(=Max(MonthSerial))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Prov_Agg_Total_RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Next, I have a series of hidden expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Labeled as "Aggr_RVU"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;MonthSerial&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Labeled as "Slope"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;linest_m&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Aggr_RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[MonthSerial]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Labeled as "Intercept"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;linest_b&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Aggr_RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[MonthSerial]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;And finally, the visible expression to show the trend line (labeled as "Trend")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Slope&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="; color: #ff8000; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Intercept &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The bars for the "RVU" display, but I don't get a "Trend" line, and I don't get a legend at all. What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;EDIT ==========================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I&amp;nbsp; also tried the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;ONLY&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;({1}&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=(LINEST_M(AGGR(Sum({&amp;lt;MonthSerial={"&amp;gt;=$(=MAX(MonthSerial)-24)&amp;lt;=$(=Max(MonthSerial))"}&amp;gt;}Prov_Agg_Total_RVU),MonthSerial),MonthSerial) * rowno()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt; +&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=LINEST_B(AGGR(Sum({&amp;lt;MonthSerial={"&amp;gt;=$(=MAX(MonthSerial)-24)&amp;lt;=$(=Max(MonthSerial))"}&amp;gt;}Prov_Agg_Total_RVU),MonthSerial), MonthSerial))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Which resulted in a flat line (and the legend is now being displayed). The flat line is of course, wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 14:24:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-20T14:24:32Z</dc:date>
    <item>
      <title>Creating my own TrendLine</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-my-own-TrendLine/m-p/1290766#M623183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create my own trend line (because for some inexplicable reason, QlikView's built in trend lines look like a line you'd see on the old 4-bit Atari consoles).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart object with a bar series showing the data (labeled as "RVU").&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;MonthSerial&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;"&amp;gt;=$(=MAX(MonthSerial)-24)&amp;lt;=$(=Max(MonthSerial))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Prov_Agg_Total_RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Next, I have a series of hidden expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Labeled as "Aggr_RVU"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;MonthSerial&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Labeled as "Slope"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;linest_m&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Aggr_RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[MonthSerial]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Labeled as "Intercept"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;linest_b&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Aggr_RVU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[MonthSerial]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;And finally, the visible expression to show the trend line (labeled as "Trend")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Slope&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="; color: #ff8000; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Intercept &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The bars for the "RVU" display, but I don't get a "Trend" line, and I don't get a legend at all. What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;EDIT ==========================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I&amp;nbsp; also tried the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;ONLY&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;({1}&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=(LINEST_M(AGGR(Sum({&amp;lt;MonthSerial={"&amp;gt;=$(=MAX(MonthSerial)-24)&amp;lt;=$(=Max(MonthSerial))"}&amp;gt;}Prov_Agg_Total_RVU),MonthSerial),MonthSerial) * rowno()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt; +&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=LINEST_B(AGGR(Sum({&amp;lt;MonthSerial={"&amp;gt;=$(=MAX(MonthSerial)-24)&amp;lt;=$(=Max(MonthSerial))"}&amp;gt;}Prov_Agg_Total_RVU),MonthSerial), MonthSerial))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Which resulted in a flat line (and the legend is now being displayed). The flat line is of course, wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 14:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-my-own-TrendLine/m-p/1290766#M623183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-20T14:24:32Z</dc:date>
    </item>
  </channel>
</rss>

