Exam Ref 70-768 Developing SQL Data Models by Varga Stacia
Author:Varga, Stacia [Varga, Stacia]
Language: eng
Format: azw3
Publisher: Pearson Education
Published: 2017-05-05T04:00:00+00:00
* * *
SELECT
[Measures].[Sales Amount Without Tax] ON COLUMNS,
HEAD(
/* First argument – set of stock items sorted by profit
in descending order */
ORDER(
[Stock Item].[Stock Item].[Stock Item].Members,
[Measures].[Profit],
DESC),
/* Second argument – specify the number of members of set
in first argument to return */
5)
ON ROWS
FROM
[Wide World Importers DW];
* * *
FIGURE 3-19 Results of ORDER and HEAD functions applied to Stock Item members
This example is also good for reviewing what happens when the SSAS formula engine processes the query. Remember that the first steps are to resolve the members to place on columns and rows. There is only one measure on columns, Sales Amount Without Tax, which is explicitly stated and does not require any further processing by the formula engine.
On the other hand, the set to place on rows does require processing. The following steps must occur before the tuples are constructed to return the values that you see in the measure column:
1. Specifically, the formula engine starts by resolving the ORDER function. It constructs a tuple for the measure in the second argument, Profit, and each member in the ORDER function’s first argument, the set of members on the Stock Item level of the Stock Item attribute hierarchy in the Stock Item dimension. That is, all members except the All member. The tuple also includes the WHERE clause in the query, if one exists.
2. The formula engine then retrieves the value for each of those tuples and sorts the members in descending order.
3. Next, the formula engine applies the HEAD function to reduce the set of all sorted members to the first five members, which are placed on rows.
4. The final step is to compute the tuples for each cell resulting from the intersections of rows and columns and return the results.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Red Hat Certified Specialist in Services Management and Automation EX358 Exam Guide by Eric McLeroy(6163)
The KCNA Book by Nigel Poulton(4242)
Microsoft Security, Compliance, and Identity Fundamentals Exam Ref SC-900 by Dwayne Natwick(3611)
Designing and Implementing Microsoft Azure Networking Solutions by David Okeyode(3515)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart and Joe Anich(3466)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart & Joe Anich(3390)
TCP IP by Todd Lammle(2982)
Microsoft Power BI Data Analyst Certification Guide by Ed Corcoran Orrin Edenfield(2921)
Unity Certified Programmer: Exam Guide by Philip Walker(2563)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2520)
Networking A Beginner's Guide by Bruce Hallberg(2209)
Microsoft Power Platform Solution Architect's Handbook by Hugo Herrera(2037)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1860)
CompTIA A+ Practice Tests Core 1 (220-1101) and Core 2 (220-1102) by Ian Neil and Mark Birch(1794)
MCSA Windows Server 2016 Study Guide: Exam 70-741 by William Panek(1666)
PHP 7 Zend Certification Study Guide by Andrew Beak(1645)
Healthcare Information Security and Privacy (All-In-One) by Sean Murphy(1551)
CompTIA A+ Certification Guide (220-901 and 220-902) by Matthew Bennett(1526)
RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300), Third Edition by Asghar Ghori(1488)
