Skip to content
Apiary

PivotMeasure

A handle on one data field (“measure”) of a pivot table, addressed by its definition entry, so it survives reordering and a cache refresh alike. remove, or a refresh that drops the source column, marks it removed (isRemoved), after which it refuses mutation. Mutators must run inside PivotManager.update.

readonly field: PivotField;

readonly table: PivotTable;
get aggregation(): PivotDataFieldAggregation;

PivotDataFieldAggregation


get isRemoved(): boolean;

boolean


get name(): string;

string


get numberFormat(): string | undefined;

string | undefined


get position(): number;

number


get showDataAs():
| PivotMeasureShowDataAs
| null;

| PivotMeasureShowDataAs | null

remove(): void;

void


setAggregation(aggregation): void;

PivotDataFieldAggregation

void


setName(name): void;

string

void


setNumberFormat(format): void;

string | undefined

void


setShowDataAs(value): void;

| PivotMeasureShowDataAs | null

void

value.baseField belongs to another pivot table, or a cache refresh removed it