<?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: Calculating future rolling average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2426078#M64433</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you very much for the sample file and solution. You calculation is OK, but I would need something like this preferably in DAX, if it is possible...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 07:40:38 GMT</pubDate>
    <dc:creator>JanCab</dc:creator>
    <dc:date>2022-03-30T07:40:38Z</dc:date>
    <item>
      <title>Calculating future rolling average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2425106#M64392</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask you for your help with a DAX formula which would calculate value of future unit sales, based on rolling average of previous 12 month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below - there are blue values as history and red ones as rolling average.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to calculate rolling average for historical values but not for future - basically from already calculated values, as the average is rolling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note - I do have a calendar table in place which is related to sales data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 19:04:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2425106#M64392</guid>
      <dc:creator>JanCab</dc:creator>
      <dc:date>2022-03-29T19:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating future rolling average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2425744#M64417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your correctly, but I think the numbers are showing 14 months rolling average.&lt;/P&gt;
&lt;P&gt;I tried to solve this in Power Query.&lt;/P&gt;
&lt;P&gt;Please check the attached file. I do not know how your calendar table looks like, but I hope this helps to provide an idea.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2425744#M64417</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-30T03:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating future rolling average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2426078#M64433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you very much for the sample file and solution. You calculation is OK, but I would need something like this preferably in DAX, if it is possible...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 07:40:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2426078#M64433</guid>
      <dc:creator>JanCab</dc:creator>
      <dc:date>2022-03-30T07:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating future rolling average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2436530#M65042</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me update the topic, as I slightly move on, but still without solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To recap - I have been trying to calculate forecast of future sales based sum of rolling average of last 12 months in DAX. Please find below a screenshot from an Excel calculation (formulas + results) -&amp;gt; blue is history, red is forecast:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put together a formula, which calculates average but slightly incorrectly - I do not know, what the problem is...:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Forecast 2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;LastDateSale&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Last_date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_MONTHRANK&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&l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PAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Rank]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;_MONTHRANK&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Rolling12_Months_AVG&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;LastDateSale&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The PBIX file is saved here:&amp;nbsp;&lt;A href="https://file.io/buLgvtZ1Asmi" target="_blank" rel="noopener"&gt;https://file.io/buLgvtZ1Asmi&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for any hint!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 19:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/2436530#M65042</guid>
      <dc:creator>JanCab</dc:creator>
      <dc:date>2022-04-04T19:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating future rolling average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/3063247#M105959</link>
      <description>&lt;P&gt;What is the solution for this?&lt;/P&gt;&lt;P&gt;Is exactly what I need!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:36:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-future-rolling-average/m-p/3063247#M105959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-06T08:36:06Z</dc:date>
    </item>
  </channel>
</rss>

