defTotals()
Home > @gooddata/sdk-model > defTotals
defTotals() function
Gets totals from particular dimension in the provided execution definition.
Signature:
export declare function defTotals(def: IExecutionDefinition, dimIdx: number): ITotal[];
Parameters
Parameter | Type | Description |
---|---|---|
def | IExecutionDefinition | definition to get totals from |
dimIdx | number | dimension index |
Returns:
ITotal[]
empty list if no definition or dimension with the provided index not defined or if there are no totals in the dimension