Forum Discussion
Anonymous
6 years agoNot applicable
Total Sales for partial year
Hi, I have a measure "TotalSalesYTD" TotalSalesYTD = CALCULATE ( Sum(Order[Sales]), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year] = MAX ( 'Calendar'[Year] ) && 'Calendar'[Month] = MAX ( 'Calen...
- Anonymous6 years ago
Hi,
Thanks you all for your prompt responces
I was able to achieve this by using the below DAX
TotalSalesIncludingPartialYear=
Var MaxMonth = MONTH(LASTDATE(Orders[OrderDate]))
RETURN
CALCULATE([TotalSales], 'Calendar'[Month]=MaxMonth)Thank you all
Anonymous
6 years agoNot applicable
Hi,
Thanks you all for your prompt responces
I was able to achieve this by using the below DAX
TotalSalesIncludingPartialYear=
Var MaxMonth = MONTH(LASTDATE(Orders[OrderDate]))
RETURN
CALCULATE([TotalSales], 'Calendar'[Month]=MaxMonth)
Thank you all