You create a SQL Server 2008 Analysis Services (SSAS) solution. Your solution contains a
time dimension named DimTime that contains a hierarchy named Yr-Qtr-Mth.
You have a measure named Amount from a measure group named Measures.
You need to create a calculated member to display the Amount measure in the previous time
period for the current level of the Yr-Qtr-Mth hierarchy.
Which expression should you use?
A.
([Measures]. [Amount], OPENINGPERIOD( [DimTime].[Yr-Qtr-Mth] .FirstSibling.Level))
B.
([Measures]. [Amount], LASTPERIODS( 0,[DimTime].[Yr-Qtr-Mth].PrevMember))
C.
([Measures]. [Amount], [DimTime].[Yr-Qtr-Mth].PrevMember)
D.
([Measures]. [Amount], [DimTime].[Yr-Qtr-Mth].FirstSibling)
Explanation:
PrevMember returns the previous member in the level that contains a specified member.Incorrect answer:
FirstSibling returns the first child of the parent of a member.
LastPeriods returns a set of members up to and including a specified member