<?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 Trend/Regression Line in a Scatter Chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1527189#M37892</link>
    <description>&lt;P&gt;I've read through a lot of similar posts on here but can't find a good answer on how to plot a linear trend line in a scatter chart.&amp;nbsp; E.g. with X as Sum(Sales) and Y as Count(Customer) and Store as the dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used the linest_m and linest_b functions to create a linear trend in a bar/line chart but when it comes to a scatter i can't get it to work.&amp;nbsp; For the Linest_m function I can add the Y values by creating an aggr() table but it doesn't seem to like it if I try the same for the X values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had any success with this (using the reference lines)?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989"&gt;@Michael_Tarallo&lt;/a&gt;&amp;nbsp;- I've read your posts on using the linest functions in bar and line charts and they make sense.&amp;nbsp; Any thoughts on how to use them in a scatter where X and Y are both aggregates?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:38:51 GMT</pubDate>
    <dc:creator>catalystmichael</dc:creator>
    <dc:date>2024-11-16T21:38:51Z</dc:date>
    <item>
      <title>Trend/Regression Line in a Scatter Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1527189#M37892</link>
      <description>&lt;P&gt;I've read through a lot of similar posts on here but can't find a good answer on how to plot a linear trend line in a scatter chart.&amp;nbsp; E.g. with X as Sum(Sales) and Y as Count(Customer) and Store as the dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used the linest_m and linest_b functions to create a linear trend in a bar/line chart but when it comes to a scatter i can't get it to work.&amp;nbsp; For the Linest_m function I can add the Y values by creating an aggr() table but it doesn't seem to like it if I try the same for the X values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had any success with this (using the reference lines)?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989"&gt;@Michael_Tarallo&lt;/a&gt;&amp;nbsp;- I've read your posts on using the linest functions in bar and line charts and they make sense.&amp;nbsp; Any thoughts on how to use them in a scatter where X and Y are both aggregates?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1527189#M37892</guid>
      <dc:creator>catalystmichael</dc:creator>
      <dc:date>2024-11-16T21:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trend/Regression Line in a Scatter Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1527198#M37894</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you could try using a Combo Box type chart instead. I guess the result you need will be the same as a Scatter Chart. Try your approach with a Combo Box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1527198#M37894</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2019-01-07T16:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trend/Regression Line in a Scatter Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1527218#M37895</link>
      <description>&lt;P&gt;Hi MB,&lt;/P&gt;&lt;P&gt;The problem with a combo chart is that the only dimension is the X axis.&amp;nbsp; No option to split points/markers out by another dimension like you can in a scatter.&lt;/P&gt;&lt;P&gt;I get where you're coming from in that in a combo chart I could use, for example, aggr(count(customers),store) to create the equivalent x axis of count(customers) in a scatter chart.&amp;nbsp; The problem still remains of not being able to split out the markers though.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1527218#M37895</guid>
      <dc:creator>catalystmichael</dc:creator>
      <dc:date>2019-01-07T16:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trend/Regression Line in a Scatter Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1736969#M56351</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6257"&gt;@catalystmichael&lt;/a&gt;&amp;nbsp;I also want to know when we will be able to do Regression lines on Scattor plot. It is quite an important feature to have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989" target="_blank"&gt;@Micheal Tarallo&amp;nbsp; The integration with R is not friendly and I cant get it to work. Do you guys have an ETA one when this feuture will be standard in Qlik Sense?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1736969#M56351</guid>
      <dc:creator>WernerDC</dc:creator>
      <dc:date>2020-08-19T07:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trend/Regression Line in a Scatter Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1796240#M62448</link>
      <description>&lt;P&gt;I am trying to get this to work as well.&lt;/P&gt;&lt;P&gt;I used a trend.qvf post from another thread as a dataset.&amp;nbsp; My Scatter Plot is based of:&lt;/P&gt;&lt;P&gt;Dimension: Category&lt;/P&gt;&lt;P&gt;x axis: sum(COS)&lt;/P&gt;&lt;P&gt;y axis: sum(Sales)&lt;/P&gt;&lt;P&gt;Based on other threads I read, I can get the m and b properly but I cannot combine them together to get y i.e. y=mx +b.&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;LinEst_m(if(aggr(sum(Sales),CategoryName),aggr(sum(Sales),CategoryName)),aggr(sum(COS),CategoryName))*only({1}(aggr(sum(COS),CategoryName))) +&lt;/P&gt;&lt;P&gt;LinEst_B(aggr(sum(Sales),CategoryName),aggr(sum(COS),CategoryName))&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 02:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trend-Regression-Line-in-a-Scatter-Chart/m-p/1796240#M62448</guid>
      <dc:creator>pg1234</dc:creator>
      <dc:date>2021-04-01T02:11:02Z</dc:date>
    </item>
  </channel>
</rss>

