<?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: Last 12 Month Rolling Avg MoM % in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4706754#M180265</link>
    <description>&lt;P&gt;You need a table that includes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A Date column, ideally showing the first day of each month&lt;/LI&gt;&lt;LI&gt;A column for Active Count&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Important notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensure your Date table is continuous (no missing months) and is marked as a date table in Power BI.&lt;/LI&gt;&lt;LI&gt;Replace 'YourTable', Active Count, and Date with the actual table and column names in your model.&lt;/LI&gt;&lt;LI&gt;Also, confirm that your Date table is linked to your main data table properly.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The following DAX Formula gives you the month-over-month % change for each month.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MoM Growth % = 
VAR CurrentMonthValue = CALCULATE(SUM('YourTable'[Active Count]))
VAR PrevMonthValue = 
    CALCULATE(
        SUM('YourTable'[Active Count]),
        DATEADD('Date'[Date], -1, MONTH)
    )
RETURN
IF(
    NOT ISBLANK(PrevMonthValue),
    DIVIDE(CurrentMonthValue - PrevMonthValue, PrevMonthValue)
)&lt;/LI-CODE&gt;&lt;P&gt;For February 2025, it will average the MoM growth from March 2024 to January 2025 (i.e., the previous 11 months, excluding Feb 2024 since it has no previous month).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rolling 12-Month MoM Avg % =
VAR CurrentDate = MAX('Date'[Date])
VAR MoMTable =
    ADDCOLUMNS(
        DATESINPERIOD('Date'[Date], CurrentDate, -12, MONTH),
        "MoMGrowth", 
            CALCULATE(
                [MoM Growth %]
            )
    )
VAR FilteredMoM =
    FILTER(MoMTable, NOT(ISBLANK([MoMGrowth])))
RETURN
AVERAGEX(FilteredMoM, [MoMGrowth])&lt;/LI-CODE&gt;&lt;P&gt;If this solution works for you, please consider marking it as accepted so it can help others too!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 May 2025 06:13:18 GMT</pubDate>
    <dc:creator>Ilgar_Zarbali</dc:creator>
    <dc:date>2025-05-26T06:13:18Z</dc:date>
    <item>
      <title>Last 12 Month Rolling Avg MoM %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4704437#M180182</link>
      <description>&lt;H2&gt;🧮 Step-by-Step MoM Growth Calculation (for each month)&lt;/H2&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;MoM&amp;nbsp;Growth=Current&amp;nbsp;Month−Previous&amp;nbsp;MonthPrevious&amp;nbsp;Month\text{MoM Growth} = \frac{\text{Current Month} - \text{Previous Month}}{\text{Previous Month}}&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;MoM&amp;nbsp;Growth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Previous&amp;nbsp;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Current&amp;nbsp;Month&lt;/SPAN&gt;&lt;SPAN class=""&gt;−&lt;/SPAN&gt;&lt;SPAN class=""&gt;Previous&amp;nbsp;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;​&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let’s calculate this for the 12 months from &lt;STRONG&gt;Feb 2024 to Jan 2025&lt;/STRONG&gt;:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Month Active Count Prev Month Count MoM Growth (%) &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Feb 2024&lt;/TD&gt;&lt;TD&gt;1,100&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar 2024&lt;/TD&gt;&lt;TD&gt;1,050&lt;/TD&gt;&lt;TD&gt;1,100&lt;/TD&gt;&lt;TD&gt;-4.55%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apr 2024&lt;/TD&gt;&lt;TD&gt;1,200&lt;/TD&gt;&lt;TD&gt;1,050&lt;/TD&gt;&lt;TD&gt;14.29%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May 2024&lt;/TD&gt;&lt;TD&gt;1,300&lt;/TD&gt;&lt;TD&gt;1,200&lt;/TD&gt;&lt;TD&gt;8.33%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jun 2024&lt;/TD&gt;&lt;TD&gt;1,250&lt;/TD&gt;&lt;TD&gt;1,300&lt;/TD&gt;&lt;TD&gt;-3.85%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul 2024&lt;/TD&gt;&lt;TD&gt;1,400&lt;/TD&gt;&lt;TD&gt;1,250&lt;/TD&gt;&lt;TD&gt;12.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 2024&lt;/TD&gt;&lt;TD&gt;1,500&lt;/TD&gt;&lt;TD&gt;1,400&lt;/TD&gt;&lt;TD&gt;7.14%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sep 2024&lt;/TD&gt;&lt;TD&gt;1,600&lt;/TD&gt;&lt;TD&gt;1,500&lt;/TD&gt;&lt;TD&gt;6.67%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct 2024&lt;/TD&gt;&lt;TD&gt;1,550&lt;/TD&gt;&lt;TD&gt;1,600&lt;/TD&gt;&lt;TD&gt;-3.13%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Nov 2024&lt;/TD&gt;&lt;TD&gt;1,650&lt;/TD&gt;&lt;TD&gt;1,550&lt;/TD&gt;&lt;TD&gt;6.45%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dec 2024&lt;/TD&gt;&lt;TD&gt;1,700&lt;/TD&gt;&lt;TD&gt;1,650&lt;/TD&gt;&lt;TD&gt;3.03%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan 2025&lt;/TD&gt;&lt;TD&gt;1,800&lt;/TD&gt;&lt;TD&gt;1,700&lt;/TD&gt;&lt;TD&gt;5.88%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":chart_increasing:"&gt;📈&lt;/span&gt; Rolling 12-Month MoM Growth&lt;/H2&gt;&lt;P&gt;Take the &lt;STRONG&gt;average&lt;/STRONG&gt; of the last 12 MoM Growth values from Feb 2024 to Jan 2025: As Feb is blank dax should calculate 11 months&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Rolling MoM Avg = 10.00 - 4.55 + 14.29 + 8.33 - 3.85 + 12.00 + 7.14 + 6.67 - 3.13 + 6.45 + 3.03 + 5.88/11 = ???(Result)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Rolling 12-Month MoM Avg Growth for&amp;nbsp;&lt;SPAN class=""&gt;Feb 2025 result will be Avg of Mar 2024 to Jan 2025 MoM% growth.&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;&lt;H2&gt;&lt;SPAN class=""&gt;Can you please some one help me with the dax logic for the output I am after.&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;&lt;H2&gt;&lt;SPAN class=""&gt;Apprecaite your help.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 04:56:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4704437#M180182</guid>
      <dc:creator>Bhanuaripaka</dc:creator>
      <dc:date>2025-05-23T04:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Month Rolling Avg MoM %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4706520#M180250</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568675" data-lia-user-login="Bhanuaripaka" class="lia-mention lia-mention-user"&gt;Bhanuaripaka&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this dax measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 12M MoM Avg % =&lt;BR /&gt;VAR CurrentMonth = MAX(Activity[Month])&lt;BR /&gt;VAR Last12Months =&lt;BR /&gt;DATESINPERIOD(Activity[Month], CurrentMonth, -12, MONTH)&lt;/P&gt;
&lt;P&gt;VAR MoMTable =&lt;BR /&gt;ADDCOLUMNS(FILTER(ALL(Activity),Activity[Month] IN Last12Months),"PrevCount", &lt;BR /&gt;CALCULATE(SUM(Activity[Active Count]),DATEADD(Activity[Month], -1, MONTH)),&lt;BR /&gt;"MoM%",&lt;BR /&gt;DIVIDE(SUM(Activity[Active Count]) - &lt;BR /&gt;CALCULATE(SUM(Activity[Active Count]), DATEADD(Activity[Month], -1, MONTH)),&lt;BR /&gt;CALCULATE(SUM(Activity[Active Count]), DATEADD(Activity[Month], -1, MONTH))))&lt;/P&gt;
&lt;P&gt;VAR Result =AVERAGEX(FILTER(MoMTable,NOT ISBLANK([MoM%])),[MoM%])&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt;Result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this solution helped, please consider marking the response as accepted and giving it a thumbs-up so others can benefit as well.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 04:09:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4706520#M180250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-26T04:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Month Rolling Avg MoM %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4706754#M180265</link>
      <description>&lt;P&gt;You need a table that includes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A Date column, ideally showing the first day of each month&lt;/LI&gt;&lt;LI&gt;A column for Active Count&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Important notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensure your Date table is continuous (no missing months) and is marked as a date table in Power BI.&lt;/LI&gt;&lt;LI&gt;Replace 'YourTable', Active Count, and Date with the actual table and column names in your model.&lt;/LI&gt;&lt;LI&gt;Also, confirm that your Date table is linked to your main data table properly.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The following DAX Formula gives you the month-over-month % change for each month.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MoM Growth % = 
VAR CurrentMonthValue = CALCULATE(SUM('YourTable'[Active Count]))
VAR PrevMonthValue = 
    CALCULATE(
        SUM('YourTable'[Active Count]),
        DATEADD('Date'[Date], -1, MONTH)
    )
RETURN
IF(
    NOT ISBLANK(PrevMonthValue),
    DIVIDE(CurrentMonthValue - PrevMonthValue, PrevMonthValue)
)&lt;/LI-CODE&gt;&lt;P&gt;For February 2025, it will average the MoM growth from March 2024 to January 2025 (i.e., the previous 11 months, excluding Feb 2024 since it has no previous month).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rolling 12-Month MoM Avg % =
VAR CurrentDate = MAX('Date'[Date])
VAR MoMTable =
    ADDCOLUMNS(
        DATESINPERIOD('Date'[Date], CurrentDate, -12, MONTH),
        "MoMGrowth", 
            CALCULATE(
                [MoM Growth %]
            )
    )
VAR FilteredMoM =
    FILTER(MoMTable, NOT(ISBLANK([MoMGrowth])))
RETURN
AVERAGEX(FilteredMoM, [MoMGrowth])&lt;/LI-CODE&gt;&lt;P&gt;If this solution works for you, please consider marking it as accepted so it can help others too!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 06:13:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4706754#M180265</guid>
      <dc:creator>Ilgar_Zarbali</dc:creator>
      <dc:date>2025-05-26T06:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 Month Rolling Avg MoM %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4713141#M180519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568675" data-lia-user-login="Bhanuaripaka" class="lia-mention lia-mention-user"&gt;Bhanuaripaka&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just following up to see if the solution provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.&lt;/P&gt;
&lt;P&gt;If the response addressed your query, kindly mark it as &lt;STRONG&gt;Accepted Solution&lt;/STRONG&gt; and click &lt;STRONG&gt;Yes&lt;/STRONG&gt; if you found it helpful&amp;nbsp; this will benefit others in the community as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 02:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-Month-Rolling-Avg-MoM/m-p/4713141#M180519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-30T02:30:11Z</dc:date>
    </item>
  </channel>
</rss>

