SAS 9.1.3 OLAP Server MDX Guide
Original Publication Date: 2004-Dec-31
Included in the Prior Art Database: 2015-Sep-18
SAS Institute Inc.
Page 01 of 70
SAS® 9.1.3 OLAP Server
Page 02 of 70
The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS ® 9.1.3 OLAP Server MDX Guide. Cary, NC: SAS Institute Inc.
SAS® 9.1.3 OLAP Server MDX Guide
Copyright © 2004, SAS Institute Inc., Cary, NC, USA
All rights reserved. Produced in the United States of America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc.
U.S. Government Restricted Rights Notice. Use, duplication, or disclosure of this software and related documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions set forth in FAR 52.227-19 Commercial Computer Software-Restricted Rights (June 1987).
SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513.
1st printing, July 2004
SAS Publishing provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard-copy books, visit the SAS Publishing Web site at support.sas.com/pubs or call 1-800-727-3228.
SAS® and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.
Other brand and product names are registered trademarks or trademarks of their respective companies.
Page 03 of 70
4 MDX Introduction and Overview 1
MDX Overview 1
Basic MDX and Cube Concepts 1
Additional MDX Concepts and Expressions - Tuples and Sets 2 Additional MDX Documentation 3
4 MDX Queries and Syntax 5
Basic MDX Queries and Syntax 5
MDX Drill-Through 6
Basic MDX DDL Syntax 8
SAS Functions 8
External Functions 15
4 MDX Usage Examples 21 Simple Examples 21
Query-Calculated Member Examples 23
Session-Level Calculated Member Examples 24
Drill-Down Examples 26
Session-Named Set Examples 29
4 MDX Functions 35
Dimension Functions 35
Hierarchy Functions 36
Level Functions 36
Logical Functions 36
Member Functions 37
Numeric Functions 38
Set Functions 41
String Functions 49
Tuple Functions 51
Miscellaneous Functions and Operators 51
Additional MDX Documentation 52
4 Recommended Reading 53 Recommended Reading 53
What's New v Overview v
Page 04 of 70
Page 05 of 70
The SAS OLAP Server enables users to develop and deploy scalable Online Analytical Processing (OLAP) applications. In addition, automated data loading and cube building is available through the use of a new administration interface called the SAS OLAP Cube Studio, which was developed using Java technology.
OLAP queries are performed using the Multidimensional Expressions (MDX) que...