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
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
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!

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.