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.
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!
User | Count |
---|---|
97 | |
78 | |
77 | |
48 | |
26 |