I’m reaching out regarding an error encountered while using the aws quicksight create-dashboard
command. The error message received was:
"Errors": [
{
"Type": "INVALID_CALCULATED_COLUMN_EXPRESSION",
"Message": "Calculated field calc_ER/1000_Spec failed with error code CONTEXTUAL_UNKNOWN_SYMBOL during validation",
"ViolatedEntities": [
{
"Path": "calculated-field/calc_ER/1000_Spec"
}
]
}
],
"VersionNumber": 1,
"Status": "CREATION_FAILED",
I’ve verified the calculated column in the JSON file, and all elements seem to be in the correct order. This is unexpected since the same configuration worked fine previously.
Below are the relevant calculated fields from the JSON:
{
“DataSetIdentifier”: “ds_claims_provider_metric”,
“Name”: “calc_ER/1000”,
“Expression”: “({r1000_x_factor_config} * ervisits)/(provpatients*{reporting_period_config})”
},
{
“DataSetIdentifier”: “ds_claims_provider_metric”,
“Name”: “calc_ER/1000_Spec”,
“Expression”: “avgOver({calc_ER/1000},[{PCP PrimaryCare Specialty}], PRE_FILTER)”
}
I reviewed similar issues on the portal, and one suggestion was to move the calculated column to the Dataset level. However, this solution could require significant changes, which I’d prefer to avoid if possible. Do you have any alternative recommendations or insights into the root cause of this issue?
Thank you for your help.