Forum Discussion
Anonymous
5 years agoNot applicable
line graph
hi i was trying to compare last year nd current year calls but im not getting the correct month count i was using the below dax YTD lidlit = CALCULATE(COUNT(Request[Escalated to Lidl IT]),D...
- 5 years ago
Anonymous , At least one measure seems correct. Make sure the Calendar table is marked as the Date table.
In case you do not need YTD only month data
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))
amitchandak
5 years agoSuper User
Anonymous , At least one measure seems correct. Make sure the Calendar table is marked as the Date table.
In case you do not need YTD only month data
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))