Use of axes in MDX

Source: Internet
Author: User
Tags query

The SQL ANALYSIS2000 supports a maximum of 0-128 total 129 axes.
1:select 0 axes, it shows all the aggregation of the quantity.
Select
From Sales
Indeed, the quantity is [Measures]. Aggregation of all axes of the [unit Sales].
2:1 results with the following one axis query results
Select
{[Measures]. [Unit Sales]} On columns
From Sales
3: The results of the following two axes query results from the previous 1 and 2
Select
{[Measures]. [Unit Sales]} On columns,
{[Customers]. [All Customers]} On Rows
From Sales
4: The name of the axis
Axis (0), axis (1) ... Axis (N)
Must be arranged from small to large, cannot be omitted, such as axis (0), axis (1), Axis (3) is illegal;

Axis (0), axis (1), Axis (2), Axis (3), Axis (4) can be represented separately by columns,rows,pages,chapters and sections.
And both can be mixed use!
For example, axis (0), rows, pages, Axis (3) are legal.


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.