aws-cdk-lib.aws_quicksight.CfnTopic.TopicCalculatedFieldProperty

interface TopicCalculatedFieldProperty

LanguageType name
.NETAmazon.CDK.AWS.QuickSight.CfnTopic.TopicCalculatedFieldProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnTopic_TopicCalculatedFieldProperty
Javasoftware.amazon.awscdk.services.quicksight.CfnTopic.TopicCalculatedFieldProperty
Pythonaws_cdk.aws_quicksight.CfnTopic.TopicCalculatedFieldProperty
TypeScript aws-cdk-lib » aws_quicksight » CfnTopic » TopicCalculatedFieldProperty

A structure that represents a calculated field.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const topicCalculatedFieldProperty: quicksight.CfnTopic.TopicCalculatedFieldProperty = {
  calculatedFieldName: 'calculatedFieldName',
  expression: 'expression',

  // the properties below are optional
  aggregation: 'aggregation',
  allowedAggregations: ['allowedAggregations'],
  calculatedFieldDescription: 'calculatedFieldDescription',
  calculatedFieldSynonyms: ['calculatedFieldSynonyms'],
  cellValueSynonyms: [{
    cellValue: 'cellValue',
    synonyms: ['synonyms'],
  }],
  columnDataRole: 'columnDataRole',
  comparativeOrder: {
    specifedOrder: ['specifedOrder'],
    treatUndefinedSpecifiedValues: 'treatUndefinedSpecifiedValues',
    useOrdering: 'useOrdering',
  },
  defaultFormatting: {
    displayFormat: 'displayFormat',
    displayFormatOptions: {
      blankCellFormat: 'blankCellFormat',
      currencySymbol: 'currencySymbol',
      dateFormat: 'dateFormat',
      decimalSeparator: 'decimalSeparator',
      fractionDigits: 123,
      groupingSeparator: 'groupingSeparator',
      negativeFormat: {
        prefix: 'prefix',
        suffix: 'suffix',
      },
      prefix: 'prefix',
      suffix: 'suffix',
      unitScaler: 'unitScaler',
      useBlankCellFormat: false,
      useGrouping: false,
    },
  },
  isIncludedInTopic: false,
  neverAggregateInFilter: false,
  notAllowedAggregations: ['notAllowedAggregations'],
  semanticType: {
    falseyCellValue: 'falseyCellValue',
    falseyCellValueSynonyms: ['falseyCellValueSynonyms'],
    subTypeName: 'subTypeName',
    truthyCellValue: 'truthyCellValue',
    truthyCellValueSynonyms: ['truthyCellValueSynonyms'],
    typeName: 'typeName',
    typeParameters: {
      typeParametersKey: 'typeParameters',
    },
  },
  timeGranularity: 'timeGranularity',
};

Properties

NameTypeDescription
calculatedFieldNamestringThe calculated field name.
expressionstringThe calculated field expression.
aggregation?stringThe default aggregation.
allowedAggregations?string[]The list of aggregation types that are allowed for the calculated field.
calculatedFieldDescription?stringThe calculated field description.
calculatedFieldSynonyms?string[]The other names or aliases for the calculated field.
cellValueSynonyms?IResolvable | IResolvable | CellValueSynonymProperty[]The other names or aliases for the calculated field cell value.
columnDataRole?stringThe column data role for a calculated field.
comparativeOrder?IResolvable | ComparativeOrderPropertyThe order in which data is displayed for the calculated field when it's used in a comparative context.
defaultFormatting?IResolvable | DefaultFormattingPropertyThe default formatting definition.
isIncludedInTopic?boolean | IResolvableA boolean value that indicates if a calculated field is included in the topic.
neverAggregateInFilter?boolean | IResolvableA Boolean value that indicates whether to never aggregate calculated field in filters.
notAllowedAggregations?string[]The list of aggregation types that are not allowed for the calculated field.
semanticType?IResolvable | SemanticTypePropertyThe semantic type.
timeGranularity?stringThe level of time precision that is used to aggregate DateTime values.

calculatedFieldName

Type: string

The calculated field name.


expression

Type: string

The calculated field expression.


aggregation?

Type: string (optional)

The default aggregation.

Valid values for this structure are SUM , MAX , MIN , COUNT , DISTINCT_COUNT , and AVERAGE .


allowedAggregations?

Type: string[] (optional)

The list of aggregation types that are allowed for the calculated field.

Valid values for this structure are COUNT , DISTINCT_COUNT , MIN , MAX , MEDIAN , SUM , AVERAGE , STDEV , STDEVP , VAR , VARP , and PERCENTILE .


calculatedFieldDescription?

Type: string (optional)

The calculated field description.


calculatedFieldSynonyms?

Type: string[] (optional)

The other names or aliases for the calculated field.


cellValueSynonyms?

Type: IResolvable | IResolvable | CellValueSynonymProperty[] (optional)

The other names or aliases for the calculated field cell value.


columnDataRole?

Type: string (optional)

The column data role for a calculated field.

Valid values for this structure are DIMENSION and MEASURE .


comparativeOrder?

Type: IResolvable | ComparativeOrderProperty (optional)

The order in which data is displayed for the calculated field when it's used in a comparative context.


defaultFormatting?

Type: IResolvable | DefaultFormattingProperty (optional)

The default formatting definition.


isIncludedInTopic?

Type: boolean | IResolvable (optional)

A boolean value that indicates if a calculated field is included in the topic.


neverAggregateInFilter?

Type: boolean | IResolvable (optional)

A Boolean value that indicates whether to never aggregate calculated field in filters.


notAllowedAggregations?

Type: string[] (optional)

The list of aggregation types that are not allowed for the calculated field.

Valid values for this structure are COUNT , DISTINCT_COUNT , MIN , MAX , MEDIAN , SUM , AVERAGE , STDEV , STDEVP , VAR , VARP , and PERCENTILE .


semanticType?

Type: IResolvable | SemanticTypeProperty (optional)

The semantic type.


timeGranularity?

Type: string (optional)

The level of time precision that is used to aggregate DateTime values.