To learn how to create and define new parameters, see the parameters
overview.
How do you use parameters in your pipeline?
Once you create parameters, they are available as configuration variables in gems. You can also reference parameters using Jinja syntax in code expressions. To access parameters in a gem:- Open any gem that uses visual or code expressions, such as a Filter or Reformat.
- In Visual mode, select Configuration Variables from the visual expression builder. You’ll see a list of all existing parameters in your project.
-
In Code mode, use Jinja syntax instead. Use the following syntax to reference a parameter:
{{ var('parameter_name') }}.
Examples
Array type
This example uses a dataset with a column calledregion. You can use an Array parameter called region_list to filter rows that match one of several regions.
Create the Array parameter
- Open the pipeline parameter settings for the relevant pipeline.
- Click + Add Variable.
- Name the parameter
region_list. - Select the Type and choose Array.
- Select String for Array type.
- Click + to add items to the array.
- Click Value and enter
US-East(or another region code). - Click Done.
- Repeat steps 6-8 to add
US-WestandEuropeto the Array parameter. - Click Save.
Use the parameter in a filter
Next, you’ll filter your dataset to only include rows where theregion column matches a value in region_list.
- Add a Filter gem to your pipeline.
- Remove the default
trueexpression. - Click Select expression.
- Select Function > Array > array_contains.
- Choose value > Configuration Variable.
- Select
region_list. - Click + to add an argument for
array_containsand chooseRegion. - Click Save.
- Add a Target table gem called
sales_transactions_by_regionand connect it to the Filter gem. - Click Save.
Adjust region from a dashboard
You can now select the parameter in an analysis dashboard so that end users can select the regions they want to see in a report.- Create an analysis for the
regional_salespipeline. - Add a title for the analysis.
- Select Interactive > Checkbox Group.
- Select
region_listfor Configuration field. - Add a region in Default value, such as
US-East. - Add options such as
US-East,US-West,Europe,Mexico,Brazil,LAC, andAndean. - Open the Data Integration dropdown and select Data Preview.
- In the Inspect tab, choose
sales_transactions_by_region. - Select columns to display.
Mexico, LAC,Brazil, and Andean to view their focus regions.
Date type
This example uses a dataset with timestamped sales data. You can use two Date parameters,start_date and end_date to configure a snapshot of sales data by a time period such as week or month.
Create the Date parameters
- Open the pipeline parameter settings for the relevant pipeline.
- Click + Add Parameter.
- Name the parameter
start_date. - Select Type and choose Date.
- Click Select expression > Value.
- Enter
09/01/2025(or another default start date) and click Done. - Click Save.
- Repeat the steps above to create an
end_dateparameter with a default value of09/07/2025.
Use the parameters in a filter
- Add a Filter gem to your pipeline.
- Remove the default
trueexpression. - Click Select expression.
- Select Column and select
sales_date(or your dataset’s date column). - Choose the between operator.
- For both
start_dateandend_date, click Select expression > Configuration Variable and select corresponding parameters. - Add a Target table gem called
snapshot_by_dateand connect it to the Filter gem. - Click Save.
Adjust date from a dashboard
- Create an analysis for the
sales_snapshotpipeline. - Add a title.
- Select Interactive > Date Field.
- For Configuration field, choose
start_date. - Add another Date Field and select
end_date. - Open the Data Integration dropdown and select Data Preview.
- In the Inspect tab, choose
snapshot_by_date. - Select columns to display.
start_date and end_date.
String type
This example uses a dataset with a column calledcustomer_category with values such as Premium, Basic, and Standard. You can use a String parameter called customer_type to filter rows for a specific group of customers.
Create the String parameter
- Open the pipeline parameter settings for the relevant pipeline.
- Click + Add Parameter.
- Name the parameter
customer_type. - Select the Type and choose String.
- Click Select expression > Value.
- Enter
Premiumand click Done. - Click Save.
Use the parameter in a filter
Next, you’ll filter your dataset based on thecustomer_type parameter.
- Add a Filter gem.
- Remove the default
trueexpression. - Click Select expression > Column and select
customer_category. - Choose the Equals ( = ) operator.
- Click Select expression > Configuration Variable.
- Select
customer_type. - Add a Target table gem called
filtered_customersand connect it to the Reformat gem. - Click Save.
Adjust customer type from a dashboard
- Create an analysis for the
customer_segmentpipeline. - Add a title for the analysis.
- Select Interactive > Dropdown.
- Give the dropdown a label.
- Select
customer_typefor Configuration field. - Open the Data Integration dropdown and select Data Preview.
- In the Inspect tab, choose
filtered_customers. - Select the columns to display.
customer_type parameter from Premium to Standard (or another category) to explore different customer groups.
Boolean type
This example uses a dataset of customer reviews, in which reviews older than 5 years are designated asarchived, using a column called archived_reviews with Boolean values. You can use a Boolean parameter to create an analysis dashboard that lets users choose whether to include archived reviews.
Create the Boolean parameter
- Open the pipeline parameter settings for the relevant pipeline.
- Click + Add Parameter.
- Name the parameter
include_archived. - Select the Type and choose Boolean.
- Click Select expression > Value.
- Click False and click Done.
- Click Save.
Use the parameter in a filter
Next, you’ll create a Filter gem that uses theinclude_archived parameter in an expression.
- Create and open the Filter gem.
- Remove the default
trueexpression. - Click Select expression > Column and select
archived. - In the Select operator dropdown, select equals.
- In the Select expression dropdown of the Filter condition, select Configuration variable and select
include_archived. - Add a Target table gem called
prod_filtered_archivedand connect it to the Filter gem. - Click Save.
include_archived is false. In the steps below, you’ll create an analysis dashboard that lets users change include_archived to true.
Adjust reviews from a dashboard
- Create an analysis for the
reviewspipeline. - Add a Title for the analysis.
- Add a Toggle that uses
include_archivedas a Configuration field, with a label readingInclude archived reviews?. - Open the Data Integration dropdown and select Data Preview.
- In the Inspect tab, choose
prod_filtered_archivedfor Data table. - Select columns to display.
Include archived reviews? to include archived reviews in results.
Double type
This example uses a dataset that includes a column calleddiscount_rate that applies a discount for customers in certain cases.
You can use a Double parameter inside an analysis dashboard that lets users adjust this rate.
Create the Double parameter
- Open the pipeline parameter settings for the relevant pipeline.
- Click + Add Parameter.
- Name the parameter
discount_rate. - Select the Type and choose Double.
- Click Select expression > Value.
- Enter
.15and click Done. - Click Save.
Use the parameter in a reformat
Next, you’ll create a Reformat gem that uses thediscount_rate parameter in an expression that uses Jinja syntax.
- Add a Reformat gem.
- Under Target Column, add
price,product, andquantity. - Under Target Column, add a new column called
discounted_price. - Click Select expression > Custom code and enter
price * (1 - {{ var('discount_rate') }}). - Add a Target table gem called
products_discountedand connect it to the Reformat gem. - Click Save.
Adjust discount rate from a dashboard
- Create an analysis for the
products_with_reviewspipeline. - Add a title for the analysis.
- Select Interactive > Number Input.
- Select
discount_ratefor Configuration field. - Give the field a label.
- Open the Data Integration dropdown and select Data Preview.
- In the Inspect tab, select
products_discountedfor Data table. - Select columns to display.
discount_rate.
Long type
This example uses a dataset for a telecom company that includes aggregated usage data by month. You can use aLong parameter to set a monthly data cap in MB and flag or filter subscribers who exceed it.
Create the Long parameter
- Open the pipeline parameter settings for the relevant pipeline.
- Click + Add Parameter.
- Name the parameter
usage_cap_mb. - Select the Type and choose Long.
- Click Select expression > Value.
- Enter
50000and click Done. - Click Save.
Use the parameter in a filter
- Add a Filter gem.
- Remove the default
trueexpression. - Select Column > total_usage_mb.
- Choose Greater than ( > ).
- Click Select expression > Configuration Variable and select
usage_cap_mb. - Add a Table gem called
usage_over_capand connect it to the Filter gem. - Click Save.
Adjust usage cap from a dashboard
- Create an analysis for the
usage_cap_monitorpipeline. - Add a title for the analysis.
- Select Interactive > Number Input.
- Select
usage_cap_mbfor Configuration field and label it Monthly Cap (MB). - Open Data Integration > Data Preview.
- In the Inspect tab, choose
usage_over_capfor Data table. - Select columns to display (e.g.,
subscriber_id,total_usage_mb,billing_period).
usage_cap_mb to see which subscribers are affected.
Float type
This example uses dataset of sensor data with a column calledsensor_temp. You can use a Float parameter called temperature_threshold to filter out rows below a certain temperature.
Create the Float parameter
- Open the pipeline parameter settings for the relevant pipeline.
- Click + Add Parameter.
- Name the parameter
temperature_threshold. - Select the Type and choose Float.
- Click Select expression > Value.
- Enter
72.1and click Done. - Click Save.
Use the parameter in a filter
Next, you’ll use thetemperature_threshold parameter to filter your data.
- Add a Filter gem.
- Remove the default
trueexpression. - Select Column > sensor_temp.
- Choose the Greater than ( > ) operator.
- Click Select expression > Configuration Variable.
- Select
temperature_threshold. - Add a Table gem called
filtered_temperatureand connect it to the Filter gem. - Click Save.
Adjust temperature threshold from a dashboard
- Create an analysis for the
temperature_monitorpipeline. - Add a title for the analysis.
- Select Interactive > Number Input.
- Select
temperature_thresholdfor Configuration field. - Give the field a label, such as Temperature Threshold.
- Open the Data Integration dropdown and select Data Preview.
- In the Inspect tab, choose
filtered_temperature. - Select columns to display.
temperature_threshold to make filtering more or less sensitive.
Best practices
To make the most out of parameters, we suggest you:- Use meaningful parameter names that indicate their purpose.
- Validate inputs to prevent unexpected errors during execution.
- Keep sensitive values such as API keys in secrets rather than passing them as plain parameters.

