Set up dimension limits on the dimensions of an hypercube by using OtherTotalSpecProp.
In this example,the definition of the hypercube is the following:
Regarding the above definition, the hypercube has the following properties:
- Is handled as a pivot table ("qMode": "EQ_DATA_MODE_PIVOT")
- Has four dimensions defined in the following order: CategoryName, ProductName, City and Customer.
The measure is Sum(OrderTotal).
- The inter column sort order is [0,1, 3, 2].
- Contains 3 left dimensions ("qNoOfLeftDims": 3).
- CategoryName, ProductName and Customer are left dimensions (according to the inter column sort order and the number of left dimensions).
- City is a top dimension (according to the inter column sort order (qInterColumnSortOrder ) and the number of left dimensions (qNoOfLeftDims)).
- In the first dimension, qOtherTotalSpec/qOtherMode is set to OTHER_COUNTED so that the values are limited to a fixed number.
In the first dimension, qOtherTotalSpec/qOtherCounted is set to 2 to limit the number of values to 2.
- In the first dimension, qOtherTotalSpec/qOtherSortMode is set to OTHER_SORT_DESCENDING so that the order of the values is descending.
- In the first dimension, qOtherLabel is set to Others so that all values except the biggest value are aggregated in the group Others.
The hypercube contains the following data, as shown in the representation below:
Get the values of the pivot table. In this example, the handle of the pivot table is 2 and the paging is composed of the first 5 lines (qHeight is 5) and 4 columns (qWidth is 4) starting from the top left (qTop and qLeft are 0).
The client sends:
The engine returns:
Only the biggest value 6558,341 that corresponds to the category Condiments and the value associated to the Others group are returned in qData.
For more information on the returned parameters, see GetHyperCubePivotData method.