This shouldn't be as hard as it seems; I want to always get the first month of the year (January) regardless of what month is the current member. I'm going to use this later on (if I get it to work) for a calculated member. The Date dimension's calendar hierarchy is Year --> Quarter --> Month.So I've tried:[code="plain"]-- Returns back the year okay --SELECT {} ON ROWS, Ancestor([Date].[Calendar].CurrentMember, [Date].[Calendar].[Year]) ON COLUMNSFROM [RoyaltyPMA]WHERE [Date].[Month].&[201209];[/code]But shouldn't this return back the first quarter of the year?:[code="plain"]-- Returns back nothing --SELECT {} ON ROWS, Ancestor([Date].[Calendar].CurrentMember, [Date].[Calendar].[Year]).FirstChild ON COLUMNSFROM [RoyaltyPMA]WHERE [Date].[Month].&[201209];[/code]Or, couldn't I get the .FirstSibling of the .CurrentMember (if CurrentMember is at the month level) like. I've also unsuccessfully tried using the OpeningPeriod.It must be too late at night; any pointing me in the correct direction would be appreciated.Thanks,Rob
↧