Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello, everyone!
I'm trying to calculate transactions for the same count of days for previous month.
I have a great formula
Transactions MoM = CALCULATE([Transactions], DATEADD(FILTER(DATESMTD('Calendar'[Calendar day]), 'Calendar'[Calendar day] < TODAY()),-1,MONTH)),
but it's not working correctly on the last day of month (2021-08-31).... I get [Transactions] for full previous month (2021-07-01 - 2021-07-31), but expect [Transactions] for period from 01 to 30 day of month.
How can I fix that?
Correct amount which I expected is 9 642 542, but got 9 935 710.
Solved! Go to Solution.
Change formula to my own -
Change formula to my own -
If I change FILTER(DATESMTD('Calendar'[Calendar day]), 'Calendar'[Calendar day] < TODAY()) to
FILTER(DATESMTD('Calendar'[Calendar day]), 'Calendar'[Calendar day] < TODAY() - 1)
get transactions for 1..29 days correctly 🙂
Magic only if I make FILTER(DATESMTD('Calendar'[Calendar day]), 'Calendar'[Calendar day] < TODAY())