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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to calculate MOM without Dates?

I have monthly aggregated table and I want to do month over month calcualtions. How can I achieve that?

I have a date table linked to YearMonth but it is not helping.

I have to pull aggregated data on Month level otherwise the data size becomes too big.

 

PS: I have other category columns also so there are multiple rows with same YearMonth.

 

Thanks for helping

 

YearMonthValueMOM%
20190115 
2019021713%
20190312-29%
2019041417%
2019051614%
2019061813%
2019072011%
2019082210%
20190921-5%
20191019-10%
20191116-16%
2019122025%
2020012210%
2020022514%v
3 REPLIES 3
camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

if you have a date table it is easier using PREVIOUSMONTH function. However, you can do it with this measure:

MOM % = 
VAR _currentMonth = SELECTEDVALUE('Table'[YearMonth])
VAR _previousMonth = CALCULATE(MAX('Table'[YearMonth]), FILTER(ALL('Table'), 'Table'[YearMonth] < _currentMonth))
VAR _previousValue = CALCULATE(SUM('Table'[Value]), FILTER(ALL('Table'), 'Table'[YearMonth] = _previousMonth))
VAR _currentValue = SUM('Table'[Value])
RETURN
    DIVIDE(_currentValue - _previousValue, _previousValue)

 

Capture.PNG



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

Proud to be a Super User!



harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You need to have a calendar Table.

 

1.jpg

 

 

Sales Amount = SUMX ( Sales, Sales[Quantity] * Sales[Net Price] )
 
Sales LM =  CALCULATE([Sales Amount],DATEADD('Date'[Date],-1,MONTH))
 
MOM Growth = DIVIDE(Sales[Sales LM],Sales[Sales Amount])
 
Regards,
Harsh Nathani
 
 

 

Anonymous
Not applicable

I have but it is not working this way.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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