AnalyticsMeasure Interface
One numerical result column; COUNT may omit field to count rows.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
Members
Properties
| Property | Description |
|---|---|
| aggregation | The aggregation value of AnalyticsMeasure. |
| alias | The alias value of AnalyticsMeasure. |
| field | The field value of AnalyticsMeasure. |
Examples
Pass the AnalyticsMeasure value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
function inspectAnalyticsMeasureField(
analyticsMeasure: Parameters<ServerSheetControl['workbook']['analytics']['query']>[0]['measures'][number],
) {
const value = analyticsMeasure['field'];
console.log('AnalyticsMeasure.field', value);
}