<?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: Linest Function using aggr from different tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Linest-Function-using-aggr-from-different-tables/m-p/1580745#M42422</link>
    <description>&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_r2(sum(Opportunities), sum(Orders))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_r2(Sum(Aggr(sum(Opportunities), &lt;SPAN&gt;Year_Opportunities))&lt;/SPAN&gt;, Sum(Aggr(sum(Orders), &lt;SPAN&gt;Year_Orders&lt;/SPAN&gt;)))&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 04:38:13 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2019-05-16T04:38:13Z</dc:date>
    <item>
      <title>Linest Function using aggr from different tables</title>
      <link>https://community.qlik.com/t5/App-Development/Linest-Function-using-aggr-from-different-tables/m-p/1580483#M42390</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a quick question - unfortunately, I didn't find any solutions on that on the internet. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Is it possible to run a linest function using two aggr functions from different tables?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Here the syntaxt to import test data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ORDERS:&lt;BR /&gt;LOAD * inline [&lt;BR /&gt;Jahr|Orders&lt;BR /&gt;2012|5874&lt;BR /&gt;2013|6924&lt;BR /&gt;2014|7442&lt;BR /&gt;2015|7834&lt;BR /&gt;2016|9463&lt;BR /&gt;2017|9222&lt;BR /&gt;] (delimiter is '|');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OPPORTUNITIES:&lt;BR /&gt;noconcatenate LOAD * inline [&lt;BR /&gt;Jahr_Opportunities|Opportunities&lt;BR /&gt;2012|6085&lt;BR /&gt;2013|6223&lt;BR /&gt;2014|6633&lt;BR /&gt;2015|6677&lt;BR /&gt;2016|7512&lt;BR /&gt;2017|7333&lt;BR /&gt;] (delimiter is '|');&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And here the linest function, I want to run:&lt;/STRONG&gt;&lt;BR /&gt;linest_r2(aggr(sum(Opportunities), Year_Opportunities), aggr(sum(Orders), Year_Orders))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I want to analyse how good the opportunities can be predicted by the number of orders.&amp;nbsp;&lt;BR /&gt;Does anybody knows if this is possible? Unfortunately, I don't and can't combine those tables on my original database.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Florian&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Linest-Function-using-aggr-from-different-tables/m-p/1580483#M42390</guid>
      <dc:creator>florian_kloster</dc:creator>
      <dc:date>2019-05-15T14:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Linest Function using aggr from different tables</title>
      <link>https://community.qlik.com/t5/App-Development/Linest-Function-using-aggr-from-different-tables/m-p/1580745#M42422</link>
      <description>&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_r2(sum(Opportunities), sum(Orders))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linest_r2(Sum(Aggr(sum(Opportunities), &lt;SPAN&gt;Year_Opportunities))&lt;/SPAN&gt;, Sum(Aggr(sum(Orders), &lt;SPAN&gt;Year_Orders&lt;/SPAN&gt;)))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 04:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Linest-Function-using-aggr-from-different-tables/m-p/1580745#M42422</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-05-16T04:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Linest Function using aggr from different tables</title>
      <link>https://community.qlik.com/t5/App-Development/Linest-Function-using-aggr-from-different-tables/m-p/1580820#M42429</link>
      <description>&lt;P&gt;Hi and thanks for your thoughts!&lt;BR /&gt;&lt;BR /&gt;Unfortunately, this didn't work. Nested aggregations are not accepted.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Florian&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 07:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Linest-Function-using-aggr-from-different-tables/m-p/1580820#M42429</guid>
      <dc:creator>florian_kloster</dc:creator>
      <dc:date>2019-05-16T07:13:55Z</dc:date>
    </item>
  </channel>
</rss>

