<?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 Dimension specific LINEST_M values in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-specific-LINEST-M-values-in-a-table/m-p/980398#M334693</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 have a requirement to list in a table the Dimension value and its appropriate 'M' value calculated using LINEST_M function.&lt;/P&gt;&lt;P&gt;However I am getting the same M value across all Dimensions rather than diffrent values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of Data:&lt;/P&gt;&lt;P&gt;BranchSales:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;BranchID, Month, Sales&lt;/P&gt;&lt;P&gt;'Branch A', 1, 2000&lt;/P&gt;&lt;P&gt;'Branch A', 2, 3000&lt;/P&gt;&lt;P&gt;'Branch A', 3, 4000&lt;/P&gt;&lt;P&gt;'Branch A', 4, 5000&lt;/P&gt;&lt;P&gt;'Branch A', 5, 6000&lt;/P&gt;&lt;P&gt;'Branch A', 6, 7000&lt;/P&gt;&lt;P&gt;'Branch B', 1, 8000&lt;/P&gt;&lt;P&gt;'Branch B', 2, 9000&lt;/P&gt;&lt;P&gt;'Branch B', 3, 8500&lt;/P&gt;&lt;P&gt;'Branch B', 4, 7500&lt;/P&gt;&lt;P&gt;'Branch B', 5, 6500&lt;/P&gt;&lt;P&gt;'Branch B', 6, 5500&lt;/P&gt;&lt;P&gt;'Branch B', 7, 4500&lt;/P&gt;&lt;P&gt;'Branch B', 8, 3500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="linest_m_output.PNG" class="jive-image image-1" height="105" src="https://community.qlik.com/legacyfs/online/108426_linest_m_output.PNG" style="height: 104.58px; width: 315px;" width="315" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 11:44:47 GMT</pubDate>
    <dc:creator>craig_powell</dc:creator>
    <dc:date>2015-12-09T11:44:47Z</dc:date>
    <item>
      <title>Dimension specific LINEST_M values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-specific-LINEST-M-values-in-a-table/m-p/980398#M334693</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 have a requirement to list in a table the Dimension value and its appropriate 'M' value calculated using LINEST_M function.&lt;/P&gt;&lt;P&gt;However I am getting the same M value across all Dimensions rather than diffrent values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of Data:&lt;/P&gt;&lt;P&gt;BranchSales:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;BranchID, Month, Sales&lt;/P&gt;&lt;P&gt;'Branch A', 1, 2000&lt;/P&gt;&lt;P&gt;'Branch A', 2, 3000&lt;/P&gt;&lt;P&gt;'Branch A', 3, 4000&lt;/P&gt;&lt;P&gt;'Branch A', 4, 5000&lt;/P&gt;&lt;P&gt;'Branch A', 5, 6000&lt;/P&gt;&lt;P&gt;'Branch A', 6, 7000&lt;/P&gt;&lt;P&gt;'Branch B', 1, 8000&lt;/P&gt;&lt;P&gt;'Branch B', 2, 9000&lt;/P&gt;&lt;P&gt;'Branch B', 3, 8500&lt;/P&gt;&lt;P&gt;'Branch B', 4, 7500&lt;/P&gt;&lt;P&gt;'Branch B', 5, 6500&lt;/P&gt;&lt;P&gt;'Branch B', 6, 5500&lt;/P&gt;&lt;P&gt;'Branch B', 7, 4500&lt;/P&gt;&lt;P&gt;'Branch B', 8, 3500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="linest_m_output.PNG" class="jive-image image-1" height="105" src="https://community.qlik.com/legacyfs/online/108426_linest_m_output.PNG" style="height: 104.58px; width: 315px;" width="315" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 11:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-specific-LINEST-M-values-in-a-table/m-p/980398#M334693</guid>
      <dc:creator>craig_powell</dc:creator>
      <dc:date>2015-12-09T11:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension specific LINEST_M values in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-specific-LINEST-M-values-in-a-table/m-p/980399#M334694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I worked out the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;LINEST_M(Total &amp;lt;Branch&amp;gt; aggr(if(Sum(Sales),Sum(Sales)),Month,Branch),Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-specific-LINEST-M-values-in-a-table/m-p/980399#M334694</guid>
      <dc:creator>craig_powell</dc:creator>
      <dc:date>2015-12-09T22:17:12Z</dc:date>
    </item>
  </channel>
</rss>

