Home > @gooddata/sdk-model > defaultDimensionsGenerator
Default dimension generator for execution definition behaves as follows:
export declare function defaultDimensionsGenerator(definition: IExecutionDefinition): IDimension;
|definition||IExecutionDefinition||execution definition to get dims for|
- If the definition was created WITHOUT 'buckets', then: - If there are no measures specified, then single dimension will be returned and will contain all attributes - If there are measures, then two dimensions will be returned; measureGroup will be in the first dimension and all attributes in the second dimension
If the definition was created WITH 'buckets' then: - If there is just one bucket and it contains only attributes, then single dimension with all attributes will be returned - If there is just one bucket and it contains both attributes and measures, then two dimensions will be returned: measureGroup will be in first dimension, all other attributes in the second dimension - If there are multiple buckets, then all attributes from first bucket will be in first dimension and all attributes from other buckets in the second dimension. If the first bucket contains measure(s), then the MeasureGroup will be in first dimension. Otherwise it will be in second dimension.