Solved! Go to Solution.
@Anonymous , what is the issue ? the first formula and one I am sharing should work with a date table. Marked as date Table. Make sure Date table is Marked as date Table
Previous month = CALCULATE([Count of delivery note] , PREVIOUSMONTH(Dates[Date]))
last MTD (complete) Sales = CALCULATE(SUM([Count of delivery note] ,DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-1,MONTH))))
@Anonymous , what is the issue ? the first formula and one I am sharing should work with a date table. Marked as date Table. Make sure Date table is Marked as date Table
Previous month = CALCULATE([Count of delivery note] , PREVIOUSMONTH(Dates[Date]))
last MTD (complete) Sales = CALCULATE(SUM([Count of delivery note] ,DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-1,MONTH))))
Thanks now it works!