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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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