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 fellows,
im trying to calculate Month to month expenses change in my dataset, which inculdes one whole year data of expenses for different categories on different dates.
i tried finding previous month expenses using below formula, so that i can finally find month to month change.
BUT im making mistake somehwere.
@xifeng_L hello, thankyou, i created new date table for slicer, and used this measure:
Need more info to judge, can you provide the pbix file?
Hi @dilbagsidhu
It looks like you are using the fact table in the PREVIOUSMONTH function? And it should be the same table as the slicer, right?
Since the slicer selects May, then the PREVIOUSMONTH function returns the date of the previous month, but since the slicer restricts the month to May, the intersection of the two will be null, leading to a null final result.
You should create a date table and use the dates from the date table in the PREVIOUSMONTH function. But if you want to keep using the fact table that's fine, just remove the month filter of slicer. You can try below measure.
Previous month =
CALCULATE (
[Total],
PREVIOUSMONTH ( '2024'[Date] ),
ALL ( '2024'[Month Field of Slicer] )
)
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~