I am stumped with what seems to be a simple formula. I need to create a measure that calculates the YTD totals for each row. This is what I have:
TOTALYTD ( sum ( Fact[Amount] ) , 'Date'[Date] , ALL ('Date'))
'Date'[Date] is the table where I store all possible dates and months.
The problem I am getting is that this formula is showing totals for all the periods I have on the database, not just for the current year or up to the month I'm running the report to (e.g., if I run a report for March 2012, it shows the info for 2010, 2011 and thru Dec of 2012). It must be a filter that I am not applying, but I cannot make sense out of it. Dec 31 is our year end.
Any lead will be greatly appreciated.
TOTALYTD ( sum ( Fact[Amount] ) , 'Date'[Date] , ALL ('Date'))
'Date'[Date] is the table where I store all possible dates and months.
The problem I am getting is that this formula is showing totals for all the periods I have on the database, not just for the current year or up to the month I'm running the report to (e.g., if I run a report for March 2012, it shows the info for 2010, 2011 and thru Dec of 2012). It must be a filter that I am not applying, but I cannot make sense out of it. Dec 31 is our year end.
Any lead will be greatly appreciated.