Simple MDX case and description (1)

Source: Internet
Author: User

You can use SQL to query, manage, and operate data in a relational database. In SQL Server, MDX statements are used to operate and manage multi-dimensional databases. MDX can be used not only in SSAS for query management of multi-dimensional databases, you can also use SSIS and SSRS to assist in the ETL process and report development process. Because MDX statements are not standardized, different BI solutions provide different multidimensional data query technologies. Therefore, the MDX language in SQL Server can only be used in SQL Server, if you want to query other databases, such as ORACLE and Hyperion, you need to know the corresponding MDX, which may be different from MDX in SQL Server in syntax or usage. This article focuses on MDX in SQL Server.

This article starts with a simple MDX query and parses each part of the query separately to learn the MDX syntax. But before that, we should first introduce the use case of multi-dimensional data sets.

 

I. Multi-dimensional dataset Used in the case

Dimension:

 

 

Figure 1: dimension information

Metric value:

 

Figure 2: measurement information

 

The two measurements Max Units Ordered and Total Units Ordered are the exported measurement, that is, the measurement obtained through name calculation.

Dimension Structure:

 

Figure 3:ProductDimension Structure

 

 

Figure 4:StoreDimension Structure

 

 

Figure 5:Time By DayDimension structure, that is, time dimension

 

 

Figure 6: Overall structure of a multi-dimensional dataset

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.