newTwoDimensional()
Home > @gooddata/sdk-model > newTwoDimensional
newTwoDimensional() function
Creates new two dimensional specification where each dimension will have the provided set of identifiers.
Signature:
export declare function newTwoDimensional(dim1Input: DimensionItem[], dim2Input: DimensionItem[]): IDimension[];
Parameters
Parameter | Type | Description |
---|---|---|
dim1Input | DimensionItem[] | items to put into the first dimension, this can be item identifiers or totals |
dim2Input | DimensionItem[] | items to put into the second dimension, this can be item identifiers or totals |
Returns:
array with exactly two dimensions
Remarks
The 'measureGroup' identifier MAY be specified in only one of the dimensions.