Interface FieldInstance
aggregation: FieldAggregationType;
columnType: ColumnType;
dataFormat?: DataFormat;
dataType: undefined | DataType;
description: undefined | string;
fieldId: string;
isCalculatedField: boolean;
isCombinedField: boolean;
isGenerated: boolean;
isGeospatial: boolean;
isHidden: boolean;
isPresentOnPublishedDatasource: boolean;
name: string;
role: FieldRoleType;
semanticRole?: string;
}
Properties
Readonlyaggregation
ReadonlycolumnType
OptionaldataFormat
Data formatting options for the field.
ReadonlydataType
Readonlydescription
ReadonlyfieldId
Returns
The unique representation of the field across all data sources in the workbook. In summary data, this includes aggregation. Note that the fieldId could change if you change the data source. For example after replacing the data source [Clipboard_20210305T164000].[sum:Sales:qk] could become [federated.12usuoq1171o1b1ebdyh60fjnev1].[sum:Sales:qk].
ReadonlyisCalculatedField
ReadonlyisCombinedField
ReadonlyisGenerated
Returns
True if this field is generated by Tableau, false otherwise. Tableau generates a number of fields for a data source, such as Number of Records, or Measure Values. This property can be used to distinguish between those fields and fields that come from the underlying data connection, or were created by a user.
ReadonlyisGeospatial
ReadonlyisHidden
ReadonlyisPresentOnPublishedDatasource
Readonlyname
Readonlyrole
OptionalsemanticRole
The semantic role of the field. Can be either a geographic role (e.g. latitude, longitude, city, country, etc...) or an image role
Returns
The type of aggregation for this field.