book
Article ID: KB0072356
calendar_today
Updated On:
Description
Consider the below data set.
Name Age Sex Order ID
John | 23 | m | 1234 |
Tanya | 19 | f | 7863 |
Cena | 42 | m | 7856 |
Jill | 40 | f | 8907 |
Note: the "Order ID" column name contains a blank space. Create a Drop-down Property control named "test" in text area to dynamically choose the column for X axis of the Bar Chart visualization. In the X-axis of Bar Chart Visualization using the expression "${test}" rightly populates the column selected in the Property Control for all columns except for "Order ID".
When Property control selected is "Order ID" the Bar Chart Visualizations throws an error " The expression is not valid after 'Order' on line 1 character 1. The reason for this is because of the space between 'Order' and 'ID' in the 'Order ID' column.
Issue/Introduction
Column selection for visualizations in TIBCO Spotfire using property controls may fail for some columns, with errors like "The expression is not valid after 'xxx' on line 1 character 1". This article describes how to handle the case where the column name contains blank space.