Im trying to get a list of years from a Date dimension that includes a limited number of values. I want the current year and the previous 5 years. The year number in the cube is actually a char(4) value so I will have to cast that.
Also I want to alias the field, since Im using this list to use as a parameter in an SSRS report.
The MDX I have at the moment is this:<br/>
MEMBER [SALESYEAR] AS
CInt([DimCalendar].[Year].CURRENTMEMBER)
SELECT
NULL ON COLUMNS,FILTER(
[DimCalendar].[Year].MEMBERS , [SALESYEAR] > 2012) ON ROWS
FROM [MySalescube]
The above returns empty, but I also need to define an expression that is the current year - 5 years
- Edited by shiftbit 18 hours 9 minutes ago sdfgsdfg