create_kpi
Build a KPI visual in QuickSight from column, aggregation, and title parameters. Use to add metric cards to analysis sheets.
Instructions
Create a KPI visual from simple parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Display title (e.g., "Total Contracts"). | |
| column | Yes | Column name (e.g., "FLIP_TOKEN"). | |
| sheet_id | Yes | The sheet to add the KPI to. | |
| aggregation | Yes | SUM, COUNT, AVG, MIN, MAX, or DISTINCT_COUNT. | |
| analysis_id | Yes | The QuickSight analysis ID. | |
| format_string | No | Display format (e.g., "#,##0", "$#,##0.00", "0.0%"). Leave empty for default formatting. | |
| conditional_format | No | JSON string of color rules. Example: '[{"condition": ">= 100", "color": "#2CAF4A"}, {"condition": "< 50", "color": "#DE3B00"}]' Leave empty for no conditional formatting. | |
| dataset_identifier | Yes | The dataset identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||