The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
58 | |
56 | |
55 | |
50 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |