Create cascading parameters in the Bold Reports® Web Report Designer
In the Bold Reports® Web Report Designer, a cascading parameter is a parameter whose list of values depends on the value chosen in another parameter. Use this type of parameter when a parameter has a long list of values.
How do I create cascading parameters?
You create Bold Reports® cascading parameters in five stages: create the main dataset, create and assign a dataset for the independent parameter, then create and assign a dataset for the dependent parameter. The following sections walk through each stage in the Web Report Designer.
How do I create the main dataset?
The main dataset holds the report data and one query parameter for each cascading parameter. Create a new dataset by following the steps in the Create Data section, then continue with these steps:
-
In the Name field, type the name of the dataset. This example uses SalesbyCategory as the dataset name.
-
Click the
switcherin the query designer toolbar to switch to query mode.
-
Make sure the query has the following parts:
-
A list of column fields in
SELECTstatement to fetch from any specific table. -
One query parameter for each cascading parameter. For example, the following query uses the tables SalesPerson, SalesOrderHeader, SalesOrderDetail, Product, ProductSubcategory, and ProductCategory from the
AdventureWorksdatabase, with the query parameters @Category and @Subcategory:SELECT PC.Name AS Category, PSC.Name AS Subcategory, SOH.[OrderDate], SOH.SalesOrderNumber, SD.OrderQty, SD.LineTotal FROM [Sales].[SalesPerson] SP INNER JOIN [Sales].[SalesOrderHeader] SOH ON SP.[SalesPersonID] = SOH.[SalesPersonID] INNER JOIN Sales.SalesOrderDetail SD ON SD.SalesOrderID = SOH.SalesOrderID INNER JOIN Production.Product P ON SD.ProductID = P.ProductID INNER JOIN Production.ProductSubcategory PSC ON P.ProductSubcategoryID = PSC.ProductSubcategoryID INNER JOIN Production.ProductCategory PC ON PC.ProductCategoryID = PSC.ProductCategoryID WHERE (PC.Name = (@Category) AND PSC.Name = (@Subcategory))Paste the preceding query in the query editor.

-
-
Click the
Runicon in the toolbar. The Parameters dialog opens automatically. Type the value you want for each query parameter in the parameter value column. For example:-
In the @Category parameter, type
Componentsas the value. -
In the @Subcategory parameter, type
Brakesas the value.
-
-
Click the
Finishbutton. TheSalesbyCategorydataset is listed under theDATApane.
After you save the dataset, equivalent report parameters are created under the PARAMETERS panel, as shown in the following image.

How do I create a dataset for the independent parameter?
The independent parameter dataset supplies the list of values for the first parameter (Category). Follow these steps in the Web Report Designer:
-
Create a new dataset by following the steps in the Create Data section, then continue with these steps.
-
In the Name field, type the name of the dataset. This example uses CategoryValues as the dataset name.
-
Paste the following query text in the query editor:
SELECT DISTINCT Name AS Category FROM Production.ProductCategoryThe preceding query uses the column Name and the table ProductCategory to create the dataset for the independent parameter
Category.
-
Click the
Runicon in the toolbar to see the result.
-
Click the
Finishbutton. TheCategoryValuesdataset is listed under theDATApane.
How do I set available values for the independent parameter?
You assign the CategoryValues dataset as the available values of the Bold Reports® Category parameter. Follow these steps:
- Click the
Parametericon in the configuration panel to open thePARAMETERSpanel.
- Edit the Category parameter. In the name field, verify that the name is Category. See the Edit Report Parameter section.
- Click
Assign Value >>to open theParameter Assigndialog. - Select the
Query Valueoption under theAvailable Valuetab. - Select
CategoryValuesin the dataset field, andCategoryin the value and label fields.
- Click the
Okbutton andSavethe parameter.
How do I create a dataset for the dependent parameter?
The dependent parameter dataset returns values filtered by the independent parameter. In this example, @Subcategory is the dependent parameter.
-
Create a new dataset by following the steps in the Create Data section, then continue with these steps.
-
In the Name field, type the name of the dataset. This example uses SubcategoryValues as the dataset name.
-
Switch to query editor mode and paste the following query text in the query editor:
SELECT DISTINCT PSC.Name AS Subcategory FROM Production.ProductSubcategory AS PSC INNER JOIN Production.ProductCategory AS PC ON PC.ProductCategoryID = PSC.ProductCategoryID WHERE PC.Name = (@Category)The preceding query joins the Name column of the ProductSubCategory table with the ProductCategory table. It includes a condition on the independent parameter
Categoryto create the dataset for the dependent parameterSubCategory.
-
Click the
Runicon in the toolbar. The Parameters dialog opens automatically. For example, in the @Category parameter, typeComponentsas the value.
-
Click the
OKbutton. The result set displays 14 rows.
-
Click the
Finishbutton. TheSubcategoryValuesdataset is listed under theDATApane.
How do I set available values for the dependent parameter?
You assign the SubcategoryValues dataset as the available values of the Bold Reports® Subcategory parameter. Follow these steps:
- Click the
Parametericon in the configuration panel to open theParameterconfiguration panel. - Edit the Subcategory parameter. In the name field, verify that the name is Subcategory.
- Click
Assign Value>>to open theParameter Assigndialog. - Select the
Query Valueoption under theAvailable Valuetab. - Select
SubcategoryValuesin the dataset field, andSubcategoryin the value and label fields.
- Click the
Okbutton andSavetheSubcategoryparameter.
How do I filter table data based on cascading parameters?
You filter a Bold Reports® table with cascading parameters by assigning the main dataset to the table and choosing values at preview. Follow these steps:
- Design a simple table report and assign the
SalesbyCategorydataset to the table.
To create a table report in the Web Report Designer, see the Design a simple table report section.
- Click the
Previewbutton in the report header. - Choose
Accessoriesin theCategoryparameter dropdown. TheSubCategorydropdown is populated with values based on theAccessoriescategory.
- Choose
Bike Racksin theSubcategorydropdown and click theView Reportbutton.
Download this report design from the create cascading parameter RDL sample.
Frequently asked questions
When should I use a cascading parameter?
Use a Bold Reports® cascading parameter when a parameter has a long list of values. The values of the dependent parameter change based on the value chosen in another parameter.
How many query parameters does the main dataset need?
The main dataset query needs one query parameter for each cascading parameter.