dimensionSetTotals()
Home > @gooddata/sdk-model > dimensionSetTotals
dimensionSetTotals() function
Creates a new dimension which has same items as the provided dimension but different totals.
Signature:
export declare function dimensionSetTotals(dim: IDimension, totals?: ITotal[]): IDimension;
Parameters
| Parameter | Type | Description |
|---|---|---|
| dim | IDimension | dimension to inherit item identifiers from |
| totals | ITotal[] | (Optional) totals to have in the new dimension |
Returns:
new dimension