70-448 · Question #145
You are a database developer and you have about two years experience in creating business intelligence (BI) solutions by using SQL Server 2008. Now you are employed in a company which is named…
The correct answer is C. You should write PeriodsToTime([DimTime].[Spr-Sum-Aut].[Spr], [DimTime]. PeriodsToDate (MDX) SQL Server 2008 R2 Other Versions Returns a set of sibling members from the same level as a given member, starting with the first sibling and ending with the given member, as constrained by a specified level in the Time Syntax PeriodsToDate( […
Question
You are a database developer and you have about two years experience in creating business intelligence (BI) solutions by using SQL Server 2008. Now you are employed in a company which is named NaproStar and work as the technical support for the company which uses SQL Server 2008. To meet the business development, you create a SQL Server 2008 Analysis Services (SSAS) solution, which has a hierarchy named Season in a Time dimension named Dimtime. The attributes of Spring level, Summer level, Autumn level and Winter level are contained in the Season hierarchy. Now you are assigned a task to create a named set to refer to the first season of the year 2008. What action should you perform to accomplish this task?
Options
- AYou should write ParallelPeriod([DimTime]. [Spr-Sum-Aut].[Spr], 1, [DimTime].
- BYou should write ParallelPeriod ([DimTime]. [Spr-Sum-Aut].[Aut], 1, [DimTime].
- CYou should write PeriodsToTime([DimTime].[Spr-Sum-Aut].[Spr], [DimTime].
- DYou should write PeriodsToTime([DimTime].[Spr-Sum-Aut].[Aut], [DimTime].
How the community answered
(55 responses)- A2% (1)
- B9% (5)
- C84% (46)
- D5% (3)
Explanation
PeriodsToDate (MDX) SQL Server 2008 R2 Other Versions Returns a set of sibling members from the same level as a given member, starting with the first sibling and ending with the given member, as constrained by a specified level in the Time Syntax PeriodsToDate( [ Level_Expression [ ,Member_Expression ] ] ) Arguments Level_Expression - A valid Multidimensional Expressions (MDX) expression that returns a level. Member_Expression - A valid Multidimensional Expressions (MDX) expression that returns a Within the scope of the specified level, the PeriodsToDate function returns the set of periods on the same level as the specified member, starting with the first period and ending with specified * If a level is specified, the current member of the hierarchy is inferred hierarchy.CurrentMember, where hierarchyis the hierarchy of the specified level. * If neither a level nor a member is specified, the level is the parent level of the current member of the first hierarchy on the first dimension of type Time in the measure group. PeriodsToDate( Level_Expression, Member_Expression ) is functionally equivalent to the following MDX expression: TopCount(Descendants(Ancestor(Member_Expression, Level_Expression), Member_Expression.Level), 1): Member_Expression
Topics
Community Discussion
No community discussion yet for this question.