exam questions

Exam 70-768 All Questions

View all questions & answers for the 70-768 exam

Exam 70-768 topic 1 question 16 discussion

Actual exam question from Microsoft's 70-768
Question #: 16
Topic #: 1
[All 70-768 Questions]

You are a business analyst for a retail company that uses a Microsoft SQL Server Analysis Services (SSAS) multidimensional database for reporting. The database contains the following objects:

You must create a report that shows, for each month, the Internet sales for that month and the total Internet sales for the calendar year up to and including the current month.
You create the following MDX statement (Line numbers are included for reference only.):

You need to complete the MDX statement to return data for the report.
Which MDX segment should you use in line 01?

A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B
The following example returns the sum of the Measures. [Order Quantity] member, aggregated over the first eight months of calendar year 2003 that are contained in the Date dimension, from the Adventure Works cube.

Copy -
WITH MEMBER [Date].[Calendar].[First8Months2003] AS
Aggregate(
PeriodsToDate(
[Date].[Calendar].[Calendar Year],
[Date].[Calendar].[Month].[August 2003]
)
)

SELECT -
[Date].[Calendar].[First8Months2003] ON COLUMNS,
[Product].[Category].Children ON ROWS

FROM -
[Adventure Works]

WHERE -
[Measures].[Order Quantity]
References:https://docs.microsoft.com/en-us/sql/mdx/aggregate-mdx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
othman_ee
4 years, 4 months ago
Going with B
upvoted 2 times
...
panal
4 years, 6 months ago
I think B is Correct
upvoted 3 times
...
ialberto
4 years, 8 months ago
I think it's A because we want every month of the year and the current month itself. Accordingly with the explanation and code written it's A.
upvoted 1 times
null
4 years, 8 months ago
the options are referring to the code above them, A refers to the one with QTD (which is not correct). B seems to be the correct one.
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago