<?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: Rolling 3 month average Run Rate to forecast rest of year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/2511839#M157323</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387927" data-lia-user-login="nokhse" class="lia-mention lia-mention-user"&gt;nokhse&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can try to use the following measure formula to calculate the rolling average for the three months:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR currDate =
    MAX ( Table[Date] )
VAR prevDate =
    DATE ( YEAR ( currDate ), MONTH ( currDate ) - 2, 1 )
VAR endDate =
    DATE ( YEAR ( currDate ), MONTH ( currDate ) + 1, 1 ) - 1
RETURN
    DIVIDE (
        CALCULATE (
            SUM ( Table[Value] ),
            FILTER ( ALLSELECTED ( Table ), [Date] &amp;gt;= prevDate &amp;amp;&amp;amp; [Date] &amp;lt;= endDate )
        ),
        COUNTROWS ( CALENDAR ( prevDate, endDate ) )
    )
        * DAY ( endDate )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 01:36:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-13T01:36:43Z</dc:date>
    <item>
      <title>Rolling 3 month average Run Rate to forecast rest of year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/2504524#M157322</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;&lt;P&gt;New enough to BI and running into a few problems in doing some forecasting.&lt;/P&gt;&lt;P&gt;Say i have 3 months actuals per Month&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;Feb 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;Mar 25&lt;/P&gt;&lt;P&gt;I want to forecast per month for the rest of the year which will be the sum of the above 3 months divided by the number of days in those months (90days) and multiplied out for each month&lt;/P&gt;&lt;P&gt;Apr - (10+20+25)/(31+28+31)* 30 days in April&amp;nbsp;&lt;/P&gt;&lt;P&gt;May&amp;nbsp;(10+20+25)/(31+28+31)* 31 days in May etc etc&lt;/P&gt;&lt;P&gt;I can calculate the Actuals for the 3 months but cant do anything else!!!&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 10:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/2504524#M157322</guid>
      <dc:creator>nokhse</dc:creator>
      <dc:date>2022-05-10T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 month average Run Rate to forecast rest of year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/2511839#M157323</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387927" data-lia-user-login="nokhse" class="lia-mention lia-mention-user"&gt;nokhse&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can try to use the following measure formula to calculate the rolling average for the three months:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR currDate =
    MAX ( Table[Date] )
VAR prevDate =
    DATE ( YEAR ( currDate ), MONTH ( currDate ) - 2, 1 )
VAR endDate =
    DATE ( YEAR ( currDate ), MONTH ( currDate ) + 1, 1 ) - 1
RETURN
    DIVIDE (
        CALCULATE (
            SUM ( Table[Value] ),
            FILTER ( ALLSELECTED ( Table ), [Date] &amp;gt;= prevDate &amp;amp;&amp;amp; [Date] &amp;lt;= endDate )
        ),
        COUNTROWS ( CALENDAR ( prevDate, endDate ) )
    )
        * DAY ( endDate )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 01:36:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/2511839#M157323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-13T01:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 month average Run Rate to forecast rest of year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/3075859#M157324</link>
      <description>&lt;P&gt;Follow up Question: how to get it for the rest of the year? or Next 18 months?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 04:47:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/3075859#M157324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-11T04:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 month average Run Rate to forecast rest of year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/4007704#M157325</link>
      <description>&lt;P&gt;Hi Xiaoxin,&lt;/P&gt;&lt;P&gt;Thank you for your previous reply, it is super helpful!&lt;/P&gt;&lt;P&gt;Can I ask a follow up question please? I have calculated the measure by 12 months average but now would like to display it as line graph with Year on x-axis. I noticed it only makes sense when I drill down to month, but I need it to sum the monthly value for year total.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 20:29:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/4007704#M157325</guid>
      <dc:creator>alya1</dc:creator>
      <dc:date>2024-06-24T20:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 month average Run Rate to forecast rest of year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/4007849#M157326</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="673339" data-lia-user-login="alya1" class="lia-mention lia-mention-user"&gt;alya1&lt;/a&gt;&amp;nbsp;, rather than add a new question to a Solved question two&lt;/P&gt;
&lt;P&gt;years old, please remove the reply and create a fresh post with your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This allows members of the Community to treat the request in the&lt;/P&gt;
&lt;P&gt;propery context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 00:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-3-month-average-Run-Rate-to-forecast-rest-of-year/m-p/4007849#M157326</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-06-25T00:01:04Z</dc:date>
    </item>
  </channel>
</rss>

