newTotal()
Home > @gooddata/sdk-model > newTotal
newTotal() function
Creates a new total.
Signature:
export declare function newTotal(type: TotalType, measureOrId: IMeasure | Identifier, attributeOrId: IAttribute | Identifier, alias?: string): ITotal;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| type | type of total, one of the enumerated types | |
| measureOrId | measure instance OR measure local identifier | |
| attributeOrId | attribute instance OR attribute local identifier | |
| alias | string | (Optional) provide custom name (alias) for the total; this will be included in the computed results | 
Returns:
new total