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
Anonymous
Not applicable

Revising Formula for MoM %

Hi,

 

I would like to ask if is there a way to revise MoM% by excluding future month in the calculation?

 

As of writing, the month today August and PBI is already showing September. Please note that September is not yet part of the raw data.

 

Expectation is that PBI dashboard should only show months in the current and past periods.

Archduke1995_3-1691050623467.png

 

Archduke1995_2-1691050582958.png

 

Formula:

MoM% =

IF(

    ISFILTERED('Mail'[Created Date]),

    ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),

    VAR __PREV_MONTH =

        CALCULATE(

            DISTINCTCOUNT('Mail'[FILE ID]),

            DATEADD('Mail'[Created Date].[Date], -1, MONTH)

        )

    RETURN

        DIVIDE(DISTINCTCOUNT('Mail'[FILE ID]) - __PREV_MONTH, __PREV_MONTH)

)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

Current dax expression are based on aggarede row context, you cna fix then to static result except you use static value as conditions.(power bi not include historical data feature)
For this scenario, you can create a custom table with values that extract and reference in the dax expressions. The formula result will be fixed until you change on the parameter table.

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @Anonymous,

Current dax expression are based on aggarede row context, you cna fix then to static result except you use static value as conditions.(power bi not include historical data feature)
For this scenario, you can create a custom table with values that extract and reference in the dax expressions. The formula result will be fixed until you change on the parameter table.

Regards,

Xiaoxin Sheng

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.

Top Solution Authors