Forum Discussion
Total Sales Last Year
Hi umpoohg
The syntax of your measure is correct but:
1. Did you make sure you have created a relationship between Calendar and Sales Table ?
2. What is the current filter context regarding Calendar ? Do you use a slicer or a 'row'/'column' argument from the calendar table to filter the data ?
Yes, I thought of that right after I sent the original post. Now that I am thinking, maybe it is still a problem with this relationship
- FuhaiLiu9 years agoFrequent Visitor
Hi ,I use below calculation to return last year to date, ubt it returned last year plus this year to date. Any idea?
I have a calendar table like below , and the year to date calculates fine.
Total Sales YTD = TOTALYTD([Total Sales],'Calendar'[Date])
Total Sales YTD LY = calculate([Total Sales YTD],dateadd('Calendar'[Date],-1,YEAR))