Returns a value for the specified member or tuple.
Syntax
tuple[.Value]member[.Value]| Parameter | Description |
|---|---|
A tuple for which to return a value. | |
A member for which to return a value. |
Notes
The VALUE keyword is optional. In Example 2, the value of Sales can be represented either as [Sales].VALUE or [Sales]. Any value expression (for example, the value expressions supplied to functions such as Filter, Order, or Sum) has an implicit Value function in it. The expression [Qtr1] <= 0.00 is a shortcut for [Qtr1].VALUE <= 0.00.
Example
[Sales].Value
Returns the value of the Sales measure.
([Product].CurrentMember, [Sales]).Value
Returns the value of the Sales measure for the current member of the Product dimension.
Note: | The Value keyword is optional. The above expressions can also be entered as: |
[Sales]
Which is equivalent to [Sales].Value
([Product].CurrentMember, [Sales])
Which is equivalent to ([Product].CurrentMember, [Sales]).VALUE
The following query sorts level-0 members of the Product dimension by the value of Sales, in descending order.
SELECT
{[Sales]}
ON COLUMNS,
Order([Product].Levels(0).Members,
[Sales].VALUE, BDESC)
ON ROWS
FROM Sample.BasicThis query returns the grid:
| (axis) | Sales |
|---|---|
| 100-10 | 62824 |
| 300-10 | 46956 |
| 200-10 | 41537 |
| 200-20 | 38240 |
| 200-20 | 38240 |
| 300-30 | 36969 |
| 300-30 | 36969 |
| 400-10 | 35799 |
| 400-20 | 32670 |
| 100-20 | 30469 |
| 100-20 | 30469 |
| 200-30 | 17559 |
| 300-20 | 17480 |
| 400-30 | 15761 |
| 100-30 | 12841 |
| 200-40 | 11750 |