Forum Discussion
Calculate Previous Month Without Using Measure
- 7 years ago
Try this one
Column = CALCULATE ( SUM ( Table1[MetricValue] ), DATEADD ( Table1[Date], -1, MONTH ), ALLEXCEPT ( Table1, Table1[Date] ) )or this one
Column = CALCULATE ( SUM ( Table1[MetricValue] ), FILTER ( Table1, Table1[Date].[MonthNo] = EARLIER ( Table1[Date].[MonthNo] ) - 1 ) ) - 7 years ago
Did you use first formula?
Could you show your formula?
Column = CALCULATE ( SUM ( Table1[MetricValue] ), DATEADD ( Table1[Date], -1, MONTH ), ALLEXCEPT ( Table1, Table1[Date] ) ) - 7 years ago
Hi atul9063,
By my tests, the last formula from Zubair_Muhammad should solve your problem.
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
Zubair_Muhammad I have used below formula and not able to get desired result.March 1,2017 values didnt match with Feb 1,2017 value
Hi atul9063,
By my tests, the last formula from Zubair_Muhammad should solve your problem.
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
- atul90637 years agoHelper III
Sorry for late for reply.Its working now
Thanks for the solution !!