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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ryan_mayu
Super User
Super User

How to calculate MOM% ?

Hi , below is my data sample. I want to use DAX formula to calculate the data in desired column(either column or measure). Then I can use the new column or measure to draw a line chart.

1.JPG

 

Thanks in advanced

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




2 ACCEPTED SOLUTIONS
v-frfei-msft
Community Support
Community Support

Hi @ryan_mayu,

 

I made one sample for your reference. Both ways as below.

 

Measure:

 

1. Create a dimtime table using the formula and create the relationship between the date table and the fact table.

 

 

DIMTIME = CALENDARAUTO()

 

 

1.PNG

 

2. Create the measure as below.

 

Measure = VAR PRE = CALCULATE(SUM(Table1[Amount]),DATEADD(Table1[Date],-1,MONTH))
VAR CUR = CALCULATE(SUM(Table1[Amount]))
RETURN
IF(ISBLANK(PRE),0,(CUR-PRE)/PRE)

 

2.PNG

 

Calculated column:

 

Pre = CALCULATE(SUM(Table1[Amount]),DATEADD(Table1[Date],-1,MONTH))
result = IF(ISBLANK(Table1[Pre]),0,(Table1[Amount]-Table1[Pre])/Table1[Pre])

3.PNG

 

For more details, please check the pbix as attached.Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Hi,

 

Please find attached.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
AmolJalda
New Member

Thanks @v-frfei-msft

This measure worked as expected...

Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

Thanks for your help. However, I am not sure why I can't access to the onedrive website. Could you please attach the pbix file in the reply?

 

Thanks

Ryan





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi,

 

Please find attached.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-frfei-msft
Community Support
Community Support

Hi @ryan_mayu,

 

I made one sample for your reference. Both ways as below.

 

Measure:

 

1. Create a dimtime table using the formula and create the relationship between the date table and the fact table.

 

 

DIMTIME = CALENDARAUTO()

 

 

1.PNG

 

2. Create the measure as below.

 

Measure = VAR PRE = CALCULATE(SUM(Table1[Amount]),DATEADD(Table1[Date],-1,MONTH))
VAR CUR = CALCULATE(SUM(Table1[Amount]))
RETURN
IF(ISBLANK(PRE),0,(CUR-PRE)/PRE)

 

2.PNG

 

Calculated column:

 

Pre = CALCULATE(SUM(Table1[Amount]),DATEADD(Table1[Date],-1,MONTH))
result = IF(ISBLANK(Table1[Pre]),0,(Table1[Amount]-Table1[Pre])/Table1[Pre])

3.PNG

 

For more details, please check the pbix as attached.Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors