<?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: Continuous forecast calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Continuous-forecast-calculation/m-p/3027305#M103275</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496913" data-lia-user-login="vandavarosi" class="lia-mention lia-mention-user"&gt;vandavarosi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please have a try.&lt;/P&gt;
&lt;P&gt;Create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _1 =
    MAXX ( ALL ( 'Table' ), 'Table'[Date] )
VAR _2 =
    EDATE ( _1, -3 )
RETURN
    AVERAGEX (
        FILTER ( ALL ( table ), table[date] &amp;lt;= _1 &amp;amp;&amp;amp; table[date] &amp;gt;= _2 ),
        table[3MO]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it still does not help,Please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 02:06:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-18T02:06:29Z</dc:date>
    <item>
      <title>Continuous forecast calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Continuous-forecast-calculation/m-p/3025819#M103173</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to calculate the next year forecast in my power BI model based on the currectly available data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculation method should be: 3MO AVERAGE forecast * growth date; however, the problem is that the average forecast should be always the last three month before the calculated month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data for April - May - June based on that I am able to calculate the 3MO average and multiply with the the growth date which is fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the calculation above I will receive the forecasted value for July; however for August I have to calculate the 3MO average of May- June and July and for Sept I have to calculate the 3MO average of June - July and August.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:14:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Continuous-forecast-calculation/m-p/3025819#M103173</guid>
      <dc:creator>vandavarosi</dc:creator>
      <dc:date>2023-01-17T13:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous forecast calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Continuous-forecast-calculation/m-p/3025909#M103180</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496913" data-lia-user-login="vandavarosi" class="lia-mention lia-mention-user"&gt;vandavarosi&lt;/a&gt; , In power bi recursive calculations like this, are very limited &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.thepoweruser.com/2019/07/01/recursive-functions-in-power-bi-power-query/" target="_blank"&gt;https://www.thepoweruser.com/2019/07/01/recursive-functions-in-power-bi-power-query/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/Simple-recursive-calculation-Power-Query/td-p/1093141" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/Simple-recursive-calculation-Power-Query/td-p/1093141&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Recursive-Measure-Calculation-Problem-in-Power-BI/m-p/458562" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Recursive-Measure-Calculation-Problem-in-Power-BI/m-p/458562&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=8a21f79b-f0b6-42e7-8e97-6b5bbc28d08c&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer" target="_blank"&gt;https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=8a21f79b-f0b6-42e7-8e97-6b5bbc28d08c&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:44:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Continuous-forecast-calculation/m-p/3025909#M103180</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-17T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous forecast calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Continuous-forecast-calculation/m-p/3027305#M103275</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496913" data-lia-user-login="vandavarosi" class="lia-mention lia-mention-user"&gt;vandavarosi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please have a try.&lt;/P&gt;
&lt;P&gt;Create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _1 =
    MAXX ( ALL ( 'Table' ), 'Table'[Date] )
VAR _2 =
    EDATE ( _1, -3 )
RETURN
    AVERAGEX (
        FILTER ( ALL ( table ), table[date] &amp;lt;= _1 &amp;amp;&amp;amp; table[date] &amp;gt;= _2 ),
        table[3MO]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it still does not help,Please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 02:06:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Continuous-forecast-calculation/m-p/3027305#M103275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-18T02:06:29Z</dc:date>
    </item>
  </channel>
</rss>

