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 | TotalType | type of total, one of the enumerated types |
measureOrId | IMeasure | Identifier | measure instance OR measure local identifier |
attributeOrId | IAttribute | Identifier | 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