Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Bhanuaripaka
Frequent Visitor

Last 12 Month Rolling Avg MoM %

🧮 Step-by-Step MoM Growth Calculation (for each month)

MoM Growth=Current Month−Previous MonthPrevious Month\text{MoM Growth} = \frac{\text{Current Month} - \text{Previous Month}}{\text{Previous Month}}MoM Growth=Previous MonthCurrent MonthPrevious Month

Let’s calculate this for the 12 months from Feb 2024 to Jan 2025:

Month Active Count Prev Month Count MoM Growth (%)
Feb 20241,100  
Mar 20241,0501,100-4.55%
Apr 20241,2001,05014.29%
May 20241,3001,2008.33%
Jun 20241,2501,300-3.85%
Jul 20241,4001,25012.00%
Aug 20241,5001,4007.14%
Sep 20241,6001,5006.67%
Oct 20241,5501,600-3.13%
Nov 20241,6501,5506.45%
Dec 20241,7001,6503.03%
Jan 20251,8001,7005.88%
 
 

📈 Rolling 12-Month MoM Growth

Take the average of the last 12 MoM Growth values from Feb 2024 to Jan 2025: As Feb is blank dax should calculate 11 months

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)  

 

Rolling 12-Month MoM Avg Growth for Feb 2025 result will be Avg of Mar 2024 to Jan 2025 MoM% growth. 

 

Can you please some one help me with the dax logic for the output I am after. 

 

Apprecaite your help.  

 

 

1 ACCEPTED SOLUTION
Ilgar_Zarbali
Super User
Super User

You need a table that includes:

  • A Date column, ideally showing the first day of each month
  • A column for Active Count

Important notes:

  • Ensure your Date table is continuous (no missing months) and is marked as a date table in Power BI.
  • Replace 'YourTable', Active Count, and Date with the actual table and column names in your model.
  • Also, confirm that your Date table is linked to your main data table properly.

The following DAX Formula gives you the month-over-month % change for each month.

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)
)

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).

 

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])

If this solution works for you, please consider marking it as accepted so it can help others too!

 

View solution in original post

3 REPLIES 3
v-pgoloju
Community Support
Community Support

Hi @Bhanuaripaka,

 

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.

If the response addressed your query, kindly mark it as Accepted Solution and click Yes if you found it helpful  this will benefit others in the community as well.

 

Best regards,

Prasanna Kumar

Ilgar_Zarbali
Super User
Super User

You need a table that includes:

  • A Date column, ideally showing the first day of each month
  • A column for Active Count

Important notes:

  • Ensure your Date table is continuous (no missing months) and is marked as a date table in Power BI.
  • Replace 'YourTable', Active Count, and Date with the actual table and column names in your model.
  • Also, confirm that your Date table is linked to your main data table properly.

The following DAX Formula gives you the month-over-month % change for each month.

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)
)

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).

 

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])

If this solution works for you, please consider marking it as accepted so it can help others too!

 

v-pgoloju
Community Support
Community Support

Hi @Bhanuaripaka,

 

Thank you for reaching out to the Microsoft Fabric Forum Community.

 

Try this dax measure

 

Rolling 12M MoM Avg % =
VAR CurrentMonth = MAX(Activity[Month])
VAR Last12Months =
DATESINPERIOD(Activity[Month], CurrentMonth, -12, MONTH)

VAR MoMTable =
ADDCOLUMNS(FILTER(ALL(Activity),Activity[Month] IN Last12Months),"PrevCount",
CALCULATE(SUM(Activity[Active Count]),DATEADD(Activity[Month], -1, MONTH)),
"MoM%",
DIVIDE(SUM(Activity[Active Count]) -
CALCULATE(SUM(Activity[Active Count]), DATEADD(Activity[Month], -1, MONTH)),
CALCULATE(SUM(Activity[Active Count]), DATEADD(Activity[Month], -1, MONTH))))

VAR Result =AVERAGEX(FILTER(MoMTable,NOT ISBLANK([MoM%])),[MoM%])

RETURN
Result

 

If this solution helped, please consider marking the response as accepted and giving it a thumbs-up so others can benefit as well.

Best regards,
Prasanna Kumar

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.