Forum Discussion
shanipowerbi
Helper III
6 years agoCalculate Last month Amount
Hi Hope you all are fine and healthy I need very little help from you guys I have two Columns Date Amount Last Month 01 Jan 2020 $ 5000 02 Feb 2020 ...
- 6 years ago
Hi shanipowerbi ,
Your method is right. You just need to add filter conditions to your formula.
last_month = IF(MAX('table'[date].[Date]<TODAY(),CALCULATE(SUM('table'[amount]),DATEADD('table'[date].[Date],-1,MONTH)))Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
V-lianl-msft
Community Support
6 years agoHi shanipowerbi ,
Your method is right. You just need to add filter conditions to your formula.
last_month = IF(MAX('table'[date].[Date]<TODAY(),CALCULATE(SUM('table'[amount]),DATEADD('table'[date].[Date],-1,MONTH)))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.