Order

The MDX Order function sorts members of a set in order based on an expression.

Syntax

Order ( set, string_expr | numeric_value_expression [,BASC | BDESC] )

Arguments

set

The set to sort.

string_expr

String sorting criteria.

numeric_value_expression

Numeric sorting criteria.

BASC

If this keyword is used, the returned set is arranged in ascending order. Ascending order is the default even if no keyword is used.

BDESC

If this keyword is used, the returned set is arranged in descending order.

Notes

Examples

select order(members(Calendar), (measure.[sales amount])) on 10, { (measure.[sales amount]) } on 1 from [Online Store] ;
sales amount
20190
Q10
M10
M20
M30
Q20
M40
M50
M60
Q30
M70
M80
M90
Q40
M100
M110
M120
M11440
M21440
M31440
M41440
M51440
M61440
M11440
M21440
M31440
M41440
M51440
M61440
Q14320
Q24320
Q14320
Q24320
M126793
M117148
M77238
M107290
M87359
M97491
Q421231
Q322088
202151959
M71440000
M81440000
M91440000
M101440000
M111440000
M121440000
Q34320000
Q44320000
20208648640
ALL8700599
About

What is EuclidOLAP?
Architecture
Code & Docs

EuclidOLAP
Olap Web Console
Getting Started
Download
Community


Contact Us

euclidolap@outlook.com
Copyright © 2023 euclidolap.com. All Rights Reserved