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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Calculate( sum( value) ,previousmonth( date ) ) will give me last month but how do I pick before that? Like 3 months ago for example
Solved! Go to Solution.
Hi @VinhTon ,
How about this:
CALCULATE ( SUM ( table[value] ), DATEADD(table[date], -3, MONTH) )
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Hi @VinhTon ,
How about this:
CALCULATE ( SUM ( table[value] ), DATEADD(table[date], -3, MONTH) )
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
worked like a charm, thanks!
Here's a quick way.... (probably not the best way, that would be to define your Start and End Dates in a search or serach for a YYYYMM match on a Month Table?)
Calculate( sum( value) ,previousmonth( DATEADD( date, -2, months) ) )
Proud to give back to the community!
Thank You!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.