I am writing DAX in a ssas tabular model and running into a problem.
I wish to calculate the total amount purchased MTD.
I have a measure which calculates the total purchased which works fine however when I use the below queries they will not produce the expected result...
Total Purchased MTD:= CALCULATE([Total Purchased],DATESMTD('Date'[Date]))
Total Purchased YTD:= CALCULATE([Total Purchased],DATESYTD('Date'[Date]))
Total Purchased calculation:
Total Purchased:= CALCULATE([Total Orders],'Order'[Is Sale] = TRUE())
I have checked and there is an active relationship between the date and order table.
Any help would be appreciated.
Thanks
Will