Create a Dataset Using CSV
This guide walks you through creating a dataset in AIV using CSV (Comma-Separated Values) files. CSV is one of the most commonly used formats for importing and exporting tabular data.
What You’ll Learn
- What a CSV file is and when to use it
- How to prepare and upload your CSV file
- Three ways to create a dataset: simple selection, custom query, or with parameters
What is a CSV File?
A Comma-Separated Values (CSV) file is a plain text format that stores tabular data. Each line represents a row, and values within a row are separated by commas.
| Characteristic | Description |
|---|---|
| Format | Plain text, human-readable |
| Structure | Rows = records, commas = column separators |
| Use case | Data exchange, imports, exports |
CSV files are widely supported across applications—spreadsheets, databases, and analytics tools—making them ideal for sharing and migrating structured data.
Prerequisites
Before you begin, complete these steps:
- Download the sample file: csv.zip
- Extract the zip archive
- Upload
retail_sales.csvinto AIV
Need help uploading? See the Upload guide for instructions.
Video Tutorial
Watch a quick walkthrough of creating a dataset from a CSV file in AIV:
Steps to Create a Dataset Using CSV
Complete Step 1 (Navigate to the Dataset Section) and Step 2 (Create a New Dataset) from the Create Dataset guide, then choose one of the three methods below.
| Method | Best for |
|---|---|
| Method 1: Simple | Loading all CSV data with no changes |
| Method 2: Custom SQL Query | Filtering, selecting columns, or transforming data |
| Method 3: With Parameters | Letting users filter data at runtime (e.g., in dashboards) |
Method 1: Simple — Select File and Use Default Data
Use this method when you want to load all data from your CSV file without filtering or custom queries.
Step 1: Select CSV as the Data Source
-
Choose CSV Files as the data source type.

Step 2: Connection Selection
For details specific to CSV file selection, see Connection Selection for Excel, CSV, and JSON.
-
Click Select Existing Files.
-
Search for
retail_sales.csv. -
Select the file from the list.

-
Open the Output Columns tab to review column names and data types.

-
Open the Preview Results tab to verify the data.

Step 3: Save Dataset
-
Click Save.
-
In the Save Dataset dialog, enter the dataset name (if needed) and choose the target folder.
-
Click Save Dataset to complete the process.

Step 4: View Your Dataset
-
Go to the Dataset Grid view.
-
Search for your dataset by name.
-
Your dataset is now available for use in dashboards, reports, and visualizations.

Method 2: Custom SQL Query
Use this method when you need to filter, transform, or select specific columns using a custom SQL query.
Step 1: Select CSV as the Data Source
Same as Method 1: Simple . Choose CSV Files as the data source type.
Step 2: Connection Selection
-
Click Select Existing Files.
-
Search for
retail_sales.csvand select it from the list. -
Enable SQL Query—the system generates a base query automatically.

-
Modify the query to filter columns, add conditions, or transform data as needed.
-
Open the Output Columns tab to review column names and data types.
-
Open the Preview Results tab to verify the query output.
Step 3: Save Dataset
Same as Method 1: Save Dataset: Click Save, optionally rename and select the folder in the dialog, then click Save Dataset to confirm.
Step 4: View Your Dataset
Same as Method 1: View Dataset. Go to the Dataset Grid view and search for your dataset. Your dataset is now ready for use in dashboards and reports.
Method 3: With Parameters (Dynamic Filtering)
Use this method when you want users to filter data at runtime (e.g., by store location, date range, or category).
Step 1: Select CSV as the Data Source
Same as Method 1: Simple. Choose CSV Files as the data source type.
Step 2: Connection Selection
Same as Method 2: Connection Selection. Click Select Existing Files, search for retail_sales.csv, select it, and enable SQL Query.
Step 3: Add Parameters to the Query
-
Update the SQL query to include a parameter placeholder:
SELECT * FROM retail_sales WHERE StoreLocation IN ({{StoreLocation}})
-
Click Preview Results.
-
When prompted, enter a value (for example,
Chicago) for the parameter. -
Click Submit to view the filtered data.
-
Verify the output in Preview Results.

Step 4: Save Dataset
Same as Method 1: Save Dataset. Click Save, optionally rename and select the folder in the dialog, then click Save Dataset to confirm.
Step 5: View Your Dataset
Same as Method 1: View Dataset. Go to the Dataset Grid view and search for your dataset. When used in dashboards or reports, users will be prompted to enter parameter values to filter the data dynamically.
Related Guides
Create datasets using other data sources:
| Data Source | Guide |
|---|---|
| Drag & drop | Create Dataset |
| Excel | Dataset using Excel |
| JSON | Dataset using JSON |
| Parquet | Dataset using Parquet |
| NoSQL | Dataset using NoSQL |
| Flat files | Dataset using Flat files |
| Google BigQuery | Dataset using Google BigQuery |
| Google Sheet | Dataset using Google Sheet |
| External sources | Dataset using External sources |
| Stored Procedure | Dataset using Stored Procedure |
| View | Dataset using View |