hi I wondering if anyone can help.
I know the following syntax works,
SELECT ([Measures].[SALES]) on columns,
LastPeriods(3,[Date].[Hierarchy].[Year].&[2008].&[WK02]) ON Rows
FROM [TestCube]
however instead of hard coding the week part i want it to pick up the last member in the hierarchy.
Eg
SELECT ([Measures].[SALES]) on columns,
LastPeriods(3,[Date].[Hierarchy].[Year].[LastMemberWeek]) ON Rows
FROM [TestCube]
Hope someone can help
I know the following syntax works,
SELECT ([Measures].[SALES]) on columns,
LastPeriods(3,[Date].[Hierarchy].[Year].&[2008].&[WK02]) ON Rows
FROM [TestCube]
however instead of hard coding the week part i want it to pick up the last member in the hierarchy.
Eg
SELECT ([Measures].[SALES]) on columns,
LastPeriods(3,[Date].[Hierarchy].[Year].[LastMemberWeek]) ON Rows
FROM [TestCube]
Hope someone can help