<?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 Forecasting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4410070#M175139</link>
    <description>&lt;P&gt;Those are tables that are not connected to any other tables in the data model.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 02:32:53 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-02-14T02:32:53Z</dc:date>
    <item>
      <title>Linear Forecasting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4409978#M175130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to forecast linearly using the average nett hire for the next 10 years or so. However, i am faced with an issue.&lt;/P&gt;&lt;P&gt;I would like to find out why after Feb 2526 my data does not continue to forecast using the average nett hire as shown from the image below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Would be great if anyone can help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 01:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4409978#M175130</guid>
      <dc:creator>jacquelineneo14</dc:creator>
      <dc:date>2025-02-14T01:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Forecasting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4409996#M175131</link>
      <description>&lt;P&gt;Any reason for not using LINESTX()&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To report on things that are not there ( for example future dates) you may need to use disconnected tables.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 01:49:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4409996#M175131</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-14T01:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Forecasting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4410067#M175137</link>
      <description>&lt;P&gt;Thanks for replying me. I did not use LINEXTX() because I am only using 2024 and thought of using the average nett hire, has some difficulties calculating the slope and intercept.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you mean by disconnected tables?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 02:30:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4410067#M175137</guid>
      <dc:creator>jacquelineneo14</dc:creator>
      <dc:date>2025-02-14T02:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Forecasting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4410070#M175139</link>
      <description>&lt;P&gt;Those are tables that are not connected to any other tables in the data model.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 02:32:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4410070#M175139</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-14T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Forecasting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4413183#M175260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="931576" data-lia-user-login="jacquelineneo14" class="lia-mention lia-mention-user"&gt;jacquelineneo14&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;lbendlin&amp;nbsp;for the quick reply and solution. I have some other ideas to add:&lt;/P&gt;
&lt;P&gt;1. Calculate the Average Net Hire:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AverageNetHire = AVERAGE(Table[NetHire])&lt;/LI-CODE&gt;
&lt;P&gt;2.&amp;nbsp;Create a Date Table:&lt;BR /&gt;Ensure you have a date table that covers the forecast period.&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;Calculate the Forecast:&lt;/P&gt;
&lt;PRE&gt;Forecast = 
VAR LastHistoricalDate = MAX(Table[Date])
VAR ForecastPeriod = 120 // 10 years * 12 months
RETURN
IF(
    Table[Date] &amp;gt; LastHistoricalDate,
    [AverageNetHire] * (DATEDIFF(LastHistoricalDate, Table[Date], MONTH) + 1),
    BLANK()
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, please refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/implementing-linear-regression-in-power-bi/" target="_blank"&gt;Implementing linear regression in Power BI - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.geeksforgeeks.org/adding-trend-lines-forecasts-in-power-bi/" target="_blank"&gt;Adding Trend Lines &amp;amp; Forecasts in Power BI - GeeksforGeeks&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 06:51:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Linear-Forecasting/m-p/4413183#M175260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-17T06:51:27Z</dc:date>
    </item>
  </channel>
</rss>

