1 olap.query.setSortBy
<olap.query.setSortBy
measure='measure'
mode='mode'
>
<query /> !
</olap.query.setSortBy>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Ameasure | String | Column for which you want to order. | |||
Amode | String | ASC | Type of order:
|
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Equery | query | Query on which you modify the sort of columns. |
Returns | |
---|---|
Type | Description |
VTable | Returns the same Query object passed as argument. |
Example
Copy
<xsql-script name="olap_xsql_script_query_setSortBy"> <body> <set name='m_query'> <olap.query rows="[Department].[Department]" cols="[Measures].[Budget]" > <olap.schema.getCube name="Quadrant Analysis"> <olap.schema name="p_sd" /> </olap.schema.getCube> </olap.query> </set> <olap.query.setSortBy measure='[Measures].[Budget]' mode='DESC'> <m_query /> </olap.query.setSortBy> <return> <olap.query.execute iwa-accelerate="on" iwa-fallback="on" clear-groups="true" remove-empty="true" remove-zeros="false" > <m_query /> </olap.query.execute> </return> </body> </xsql-script>