Forum Discussion
MoM error
I have a measure of MOM growth created
Nimai123 , Try like
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
5 Replies
- amitchandakSuper User
Nimai123 , Is this date column [FullDateAlternateKey]
and the table is marked as Date?
- Nimai123Post Patron
- amitchandakSuper User
Nimai123 , Try like
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
- V-lianl-msftCommunity Support
Hi Nimai123 ,
Yes, this is related to the feature of measure, which is calculated according to the current context.
When you select slicer, it means that the context changes so that the measure you created will take effect.
Or you can recreate the measure, but you need to define your own filter conditions instead of using time intelligence functions.
You can refer to this thread:https://community.powerbi.com/t5/Desktop/calculate-the-total-sales-of-last-3-months-vs-current-month-of/m-p/859498#M412345
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.