<?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: Using linest function example in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267616#M169199</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824292" data-lia-user-login="Fighting21" class="lia-mention lia-mention-user"&gt;Fighting21&lt;/a&gt;&amp;nbsp;, Linest or Linestx function is a &lt;SPAN&gt;Least Squares method which basically use to predict what could be the future data. For example, if I have sales data of past year, what could be the sales value of the upcomming year based on the past data.&lt;BR /&gt;&lt;BR /&gt;These function returns table of estimates, which you can use to predict future. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lines = 
LINEST(
    'DataTable'[Value], 
    'DataTable'[Date]
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;This will return a table with many estimator as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You can use Slope and Intercept to establish equation as : Slope * [Value] + Intercept.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please accept it as a solution and kudos!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2024 07:25:16 GMT</pubDate>
    <dc:creator>shafiz_p</dc:creator>
    <dc:date>2024-11-02T07:25:16Z</dc:date>
    <item>
      <title>Using linest function example</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267557#M169195</link>
      <description>&lt;P&gt;I am learning how to use the linest function. The graph in the photo below is a linest graph I created, but the values ​​seem to be coming out strangely. Can you make one using the linest function or linestx function using the example file below?&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/17Ar2TXllzxBGsWMKDi0XRkl_2tDgBIxP/view" target="_self"&gt;https://drive.google.com/file/d/17Ar2TXllzxBGsWMKDi0XRkl_2tDgBIxP/view&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 03:16:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267557#M169195</guid>
      <dc:creator>Fighting21</dc:creator>
      <dc:date>2024-11-02T03:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using linest function example</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267616#M169199</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824292" data-lia-user-login="Fighting21" class="lia-mention lia-mention-user"&gt;Fighting21&lt;/a&gt;&amp;nbsp;, Linest or Linestx function is a &lt;SPAN&gt;Least Squares method which basically use to predict what could be the future data. For example, if I have sales data of past year, what could be the sales value of the upcomming year based on the past data.&lt;BR /&gt;&lt;BR /&gt;These function returns table of estimates, which you can use to predict future. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;lines = 
LINEST(
    'DataTable'[Value], 
    'DataTable'[Date]
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;This will return a table with many estimator as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You can use Slope and Intercept to establish equation as : Slope * [Value] + Intercept.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please accept it as a solution and kudos!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 07:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267616#M169199</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-11-02T07:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using linest function example</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267684#M169204</link>
      <description>&lt;P&gt;Thank you for your reply thank you very much, but could you know how to wirte [?Value?] in this example file? this is key of my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _slope = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(ssd,[Slope1])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _interc = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(ssd,[intercept])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;[?Value?]&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&amp;nbsp; &amp;nbsp; _slope &amp;nbsp;+_interc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 02 Nov 2024 11:32:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267684#M169204</guid>
      <dc:creator>Fighting21</dc:creator>
      <dc:date>2024-11-02T11:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using linest function example</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267691#M169206</link>
      <description>&lt;P&gt;Want to predict sales for the below five estimated year:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Try code as below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PredictedValues = 
VAR Intercept = MAX(PredictedValue[Intercept])
VAR Slope = MAX(PredictedValue[Slope1])
VAR Year = SELECTEDVALUE('Estimated Year'[Est Year])

RETURN
Slope * Year + Intercept&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can develop visual you want, say line chart:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please accept it as a solution and a kudos!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 11:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-linest-function-example/m-p/4267691#M169206</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-11-02T11:44:53Z</dc:date>
    </item>
  </channel>
</rss>

