TX Sheet Control

AnalyticsMeasure Interface

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

PropertyDescription
aggregationThe aggregation value of AnalyticsMeasure.
aliasThe alias value of AnalyticsMeasure.
fieldThe 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);
}

See Also