CSV Connection
Access the steps to develop a data connection based on the CSV file.
Use a CSV Connection to load data from a .csv
file into the Designer and bind it to charts and other components.
Creating a New CSV Connection
Click the Data Connectors icon to display all available data connector types.
Click the Create New Connection icon next to CSV. Result: A new connection gets added under the CSV connection type.
Click the new CSV connection to display the connection-specific details.
Configure the following information:
Name: Name the connection.
Browse: Click the Browse icon to select a CSV file.
Load at Start: Enable this option to get the updated data from the data source before loading it into charts.
Condition
Apply a filter at the connection level.
Select the Condition tab.
Put a check mark in the given box to enable a condition.
Provide a condition to be applied as a filter on the selected data.
E.g., as displayed in the following image, a specific date has been provided under the Conditions column for the Timeline, so data for the given date will be taken.
Calculated Fields
Add derived fields directly on the connection.
Navigate to the Data Connectors page.
Create a connection by selecting the specific Data Connector type (CSV in this case).
Connect to the desired data source to access the available fields.
Click the Calculated Fields tab. Result: The Calculated Field Editor dialog box opens.
Name: Provide a name for the calculated field.
Script Editor: Use the Script Editor space to insert the desired calculation formula using the rule given below.
Click Create to create the calculated field.
Script on Load for a Data Connection
Apply modifications or preferences at the connection level using the scripting window to get the modified data.
Navigate to the Data Connectors page.
Select a Data Connector type.
Create a new Connection and configure it.
Select the Script on Load icon provided next to the connection.
Opening the Scripting Help / Advanced Scripting
Click the Help icon on the Script on Load page. Result: The Scripting Help tab opens with some predefined scripts.
Click Advanced Scripting to display the chart-wise advanced scripts.
Associate the CSV Connection with a Charting Component
Open the Designer canvas for your dashboard.
From the Component Library, drag a charting component onto the canvas.
Right-click the chart and select Dataset (or Dataset property).
Choose your CSV connection from the list.
Drag the required fields (dimensions/measures) to the chart’s bindings.
Preview the dashboard to validate; Save when satisfied.
Troubleshooting
Fields not visible in Field Set: Re-check the selected file and delimiter; ensure the CSV has a header row if expected.
Condition not applied: Verify the condition is enabled (checkmark) and field names match those in Field Set.
Calculated field errors: Confirm field names are enclosed in
[]
and globals in{}
exactly as shown.Script on Load has no effect: Ensure the script is saved and the connection is refreshed or reloaded (use Load at Start or rebind).
Chart shows no data: Confirm the chart is bound to the correct CSV connection and the required fields are mapped.