Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
YearMonth | Value | MOM% |
201901 | 15 | |
201902 | 17 | 13% |
201903 | 12 | -29% |
201904 | 14 | 17% |
201905 | 16 | 14% |
201906 | 18 | 13% |
201907 | 20 | 11% |
201908 | 22 | 10% |
201909 | 21 | -5% |
201910 | 19 | -10% |
201911 | 16 | -16% |
201912 | 20 | 25% |
202001 | 22 | 10% |
202002 | 25 | 14%v |
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)
Hi @Anonymous ,
You need to have a calendar Table.
I have but it is not working this way.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |