<?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: Linear Regression lines inside a scatter chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243267#M586184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thanks for quick reply! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I am trying build a chart as per attached imaeg... the image is a mockup designed in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dots indicate - Client Names (thats the dimension for this scatter chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the 2 expressions are - revenue and ACI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I am able to prepare the chart with client name dots and revenue and ACI being on X and Y axes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as per QlikView documentation (section 21.4) about linear regression, I added 3rd expression as below --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=linest_m(total aggr(column(2),CMU2_NM),CMU2_NM) * CMU2_NM &lt;/P&gt;&lt;P&gt;+ linest_b(total aggr(column(2),CMU2_NM),CMU2_NM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This obviouskly didnt work... my dimension represents a client name so not sure how I can apply the multiplication in above formula...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in terms of Trendlines, I wont be able to use that because I need to add 2 seperate linear regression lines... one for all the clients and another one for clients selected by filters applied..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 18:54:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-29T18:54:39Z</dc:date>
    <item>
      <title>Linear Regression lines inside a scatter chart</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243265#M586182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scatter chart as --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension -- Client_Name&amp;nbsp; (dots on the chart)&lt;/P&gt;&lt;P&gt;X-Axis -- Revenue&lt;/P&gt;&lt;P&gt;Y-Axis -- ACI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to add 2 linear regression lines in the chart. I tried adding a new expression using linest_m function and changing the display option as line but for some reason, the regression line is not being displayed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missign anything? If anyone has a sample prototype that shows scatter chart with regression lines and can share it, that would be very helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 17:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243265#M586182</guid>
      <dc:creator />
      <dc:date>2011-06-29T17:03:26Z</dc:date>
    </item>
    <item>
      <title>Linear Regression lines inside a scatter chart</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243266#M586183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a linear trendline, checkmark "Advanced Mode" on the Expressions tab, and then checkmark the linear trendline.&amp;nbsp; I don't know if that's what you mean, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I had an example of calculating some boundary lines in a scatter chart, but I can't seem to find it.&amp;nbsp; Maybe I'm misremembering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 18:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243266#M586183</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-29T18:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression lines inside a scatter chart</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243267#M586184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thanks for quick reply! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I am trying build a chart as per attached imaeg... the image is a mockup designed in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dots indicate - Client Names (thats the dimension for this scatter chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the 2 expressions are - revenue and ACI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I am able to prepare the chart with client name dots and revenue and ACI being on X and Y axes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as per QlikView documentation (section 21.4) about linear regression, I added 3rd expression as below --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=linest_m(total aggr(column(2),CMU2_NM),CMU2_NM) * CMU2_NM &lt;/P&gt;&lt;P&gt;+ linest_b(total aggr(column(2),CMU2_NM),CMU2_NM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This obviouskly didnt work... my dimension represents a client name so not sure how I can apply the multiplication in above formula...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in terms of Trendlines, I wont be able to use that because I need to add 2 seperate linear regression lines... one for all the clients and another one for clients selected by filters applied..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 18:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243267#M586184</guid>
      <dc:creator />
      <dc:date>2011-06-29T18:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression lines inside a scatter chart</title>
      <link>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243268#M586185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I found the example I mentioned, and it's pretty similar to what you're doing.&amp;nbsp; In the example, I calculated lines at 110% of the trend line and 90% of the trend line, but hopefully you can modify the line calculations to get your intended result.&amp;nbsp; If you have trouble, I can take a closer look as what I did and how to adapt it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Hmmm, I didn't even notice - I'm simulating a scatter chart with a line graph.&amp;nbsp; Interesting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 19:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linear-Regression-lines-inside-a-scatter-chart/m-p/243268#M586185</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-29T19:54:54Z</dc:date>
    </item>
  </channel>
</rss>

