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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have to calculate the change in KPI vs Last month. When I use perviousmonth or DATEADD DAX I get correct result when I have months in the table. However, when I remove the months and want to see the change for the current month only (that is for Jan'21 vs Dec'20), I see the difference between 2020 total and Jan'21 result.
How do I fix that?
I just want to see the results for Jan'21 and see the change vs Dec'20 not vs the whole of 2020.
Solved! Go to Solution.
You can create measures like this:
Previous month =
CALCULATE (
SUM ( 'Table'[Value] ),
DATESBETWEEN ( 'Table'[Date], EDATE ( TODAY (), -1 ), TODAY () )
)
Attached to a sample file in the following, you hope it could help.
Best regards
Community Support Team _ Yingjie Li
If this post helps,then consider Accepting it as the solution to help other members find it faster.
You can create measures like this:
Previous month =
CALCULATE (
SUM ( 'Table'[Value] ),
DATESBETWEEN ( 'Table'[Date], EDATE ( TODAY (), -1 ), TODAY () )
)
Attached to a sample file in the following, you hope it could help.
Best regards
Community Support Team _ Yingjie Li
If this post helps,then consider Accepting it as the solution to help other members find it faster.
@Anonymous , there can be few reason time intelligence can fails
The date table is not marked as the date table. Date in fact has a timestamp
refer this video : https://youtu.be/OBf0rjpp5Hw
and then try measure like
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |