add_calculated_field
Add a new calculated field to a QuickSight analysis by providing an expression and dataset identifier. A backup is created before changes.
Instructions
Add a new calculated field to a QuickSight analysis.
WARNING: This modifies the analysis definition. A backup is automatically created before making changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new calculated field. Must be unique within the analysis. | |
| expression | Yes | QuickSight expression using curly-brace field references. Examples: - sum({Revenue}) - {Price} * {Quantity} - ifelse({Status} = 'Active', 1, 0) - dateDiff({Start}, {End}, "DAY") | |
| analysis_id | Yes | The QuickSight analysis ID. | |
| dataset_identifier | Yes | The dataset identifier this field belongs to. Find available identifiers using describe_analysis (look at dataset_identifiers). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||