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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SirJJAnderson
Helper III
Helper III

How to Calculate MoM Percentage Change?

I tried following a solution I found online and it isn't quite working. I was able to create a column that shows the prior month's data, but I can't figure out how to then calculate the percentage change between the two columns.

 

See columns Deliveries & Deliveries MoM, and Delivery % Change error up top in my calculation

 

Screen Shot 2020-05-08 at 7.33.43 AM.pngScreen Shot 2020-05-08 at 7.43.22 AM.png

2 ACCEPTED SOLUTIONS
mahoneypat
Employee
Employee

You can try this approach.

 

Pct Change MOM = var thismonth = sum('Table1'[Deliveries])

var lastmonth = [Deliveries MOM] //your existing measure

return divide((thismonth-lastmonth), lastmonth)

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

@SirJJAnderson , Try like

chnage % = DIVIDE((SUM(Table1[Deliveries]) - [Deliveries MOM]), [Deliveries MOM])

 

And Mark it as % column

View solution in original post

4 REPLIES 4
mahoneypat
Employee
Employee

You can try this approach.

 

Pct Change MOM = var thismonth = sum('Table1'[Deliveries])

var lastmonth = [Deliveries MOM] //your existing measure

return divide((thismonth-lastmonth), lastmonth)

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


So this formula worked, but technically is not correct. You're right about needing to subtract Deliveries MOM from Table1[Deliveries] before I do the divide.

 

Delivery % Change = DIVIDE(SUM(Table1[Deliveries]), [Deliveries MOM])
 
How would I adjust this formula to do that? Something like the below? The below doesn't throw an error but the result is wrong.
 
Delivery % Change = DIVIDE((SUM(Table1[Deliveries]) + [Deliveries MOM]), [Deliveries MOM])

@SirJJAnderson , Try like

chnage % = DIVIDE((SUM(Table1[Deliveries]) - [Deliveries MOM]), [Deliveries MOM])

 

And Mark it as % column

amitchandak
Super User
Super User

@SirJJAnderson 

Delivery MOM is a measure no need of table name just  [Delivery MOM] fine

No need of SUM too

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.