Select some dimension cells in a stacked table
Select dimension cells in a stacked table by using the SelectPivotCells method.
Example
The definition of the hypercube is the following:
Regarding the above definition, the hypercube has the following properties:
- Is handled as a stacked table ("qMode": "EQ_DATA_MODE_PIVOT_STACK")
- The cells are always fully expanded ("qAlwaysFullyExpanded": true).
- CategoryName and ProductName are left dimensions ("qNoOfLeftDims": -1).
- There is one measure Sum(OrderTotal).
The data structure under Beverages is not shown in the above representation since the data inside Beverages are of no interest in this example. Beverages is the first category in the hypercube and Condiments is the category just after.
1. Select the product Grandma's Boysenberry Spread.
Grandma's Boysenberry Spread is a left dimension cell, located at the 13th row (The category Beverages contains 12 products) and second column (qCol is 1). The handle of the request is 2 because the hypercube has 2 as a handle.
The client sends:
The engine returns:
The product Grandma's Boysenberry Spread is selected.
2. Retrieve the values related to the product Grandma's Boysenberry Spread.
The paging is composed of the first 10 lines (qHeight is 10) from the top (qTop is 0).
The client sends:
The engine returns:
qData returns the calculated data related to the product Grandma's Boysenberry Spread. There is only one value (qType is V) since there is only one measure Sum(OrderTotal). Condiments and Grandma's Boysenberry Spread have N as a type because they are left dimension cells.