Conditional cascade for query controls establishes the linkage logic between multiple query conditions. With cascade configuration, option values in different query controls update dynamically based on each other's selection state. For example, if a region is selected in Control A, the province option list in Control B shows only the provinces under the region selected in Control A. This topic describes how to configure conditional cascade between query controls.
Prerequisites
A dashboard has been created. For more information, see Dashboard creation overview, or Create a dashboard.
At least two query controls (Text Query Control or Date Field Filters) exist on the dashboard.
Entry points
You can use either of the following entry points to open the Conditional Cascade Configuration page appears.
Entry point 1: On the dashboard editing page, follow the instructions in the figure below to enter the page.

Entry point 2: On the Query Condition Settings panel, click the Conditional Cascade Configuration button to proceed.

On the Conditional Cascade Configuration page, two cascade modes are supported: one-way cascade, two-way cascade.
One-way cascade: Query controls have a hierarchical relationship and follow the "upper levels determine lower levels" propagation logic, and reverse cascade is not supported. That is, when a user selects a condition in an upper-level control, the option list of the lower-level control is filtered automatically to show only values that meet that condition. When a condition in the lower-level control changes, it does not affect the upper-level control in reverse.
This mode applies to a clear hierarchy dimension filtering. For example, in an area filtering scenario of "Province > City", after a user selects "Zhejiang" in the "Province" control, the drop-down list of the "City" control updates automatically to show only cities in Zhejiang. Conversely, selecting a city cannot change the province options in reverse.
Two-way cascade: establish a linked relationship without hierarchy between multiple query conditions that come from the same dataset. When the selected value of any query condition changes, the available range of all other query conditions is filtered dynamically based on the currently selected values.
This mode applies to peer dimensions that need dynamic filtering. For example, when filtering "Product Type" and "Sales Region" at the same time, no matter which product type the user selects first, the Sales Region control shows only regions where that product is sold. Conversely, if a sales region is selected first, Product Type shows only products available in that sales region.
Notes
Hierarchy limits
Query controls are divided into three levels from top to bottom: Global control > Tab query control > Chart query control.
One-way cascade can be passed only from top to bottom and cannot cascade in reverse. That is, a Global control can cascade to Global controls, Tab query controls, and Chart query controls. A Tab query control can cascade to Tab query controls and Chart query controls but cannot cascade to Global controls in reverse. A Chart query control can cascade to Chart query controls but cannot cascade to Global controls or Tab query controls in reverse.
Two-way cascade is supported only at the Global control level and is not supported for Tab query controls or Chart query controls.
Maximum number:You can create multiple cascade configuration items, and each item supports up to 30 cascade conditions. However, if a field is already used in a bidirectional cascade, it cannot be used in any other cascade configuration.
Query control type support
The query control types supported by different cascade configuration items are as follows.
Cascade configuration item
Supported query control types
Unidirectional cascade
Homologous Cascade
Dropdown list and sourced from a single dataset
Tree drop
Date selection and sourced from dataset field
Non-homologous Cascade
Dropdown list and sourced from a single dataset
Date selection and sourced from dataset field
Date cascade
Date selection
Bidirectional cascade
Dropdown list and sourced from a single dataset
Tree drop
Date selection and sourced from dataset field
NoteWhen configuring Homologous Cascade, or non-homologous cascade scenarios, if you use a Date selection control as the first level, then even if the option values of the date control do not come from a dataset field, and a default date picker, it can also serve as the starting point of the cascade. Also, the selectable date range of the date control varies depending on the case:
If the first-level date condition is the default date picker and does not come from a dataset, the selectable date range is not affected by the dataset range.
If the first-level date condition comes from a dataset field, the selectable date range comes from the range of dates that have data in the dataset.
Other considerations
If a field is already used in a bidirectional cascade, it cannot be used in any other cascade configuration.
Conditional cascade does not currently apply to exclusions in dropdown lists.
Bidirectional cascade configuration is mutually exclusive with the dynamic function default value feature.
If identical fields exist under different controls, select Show Title and rename the control to differentiate them.

Create unidirectional cascade
Hover over the Conditional Cascade Configuration page's Create Unidirectional Cascade button, and then select the type of cascade configuration item to create from the dropdown list.

In unidirectional cascade mode, you can create Homologous Cascade, non-homologous cascade, and date cascade.
When the option values of multiple query controls all come from the same dataset, we recommend configuring Homologous Cascade.
If, among the query conditions of multiple query controls, at least one condition uses a dataset different from the other datasets, you need to select Non-homologous Cascade.
When the query control type is Date selection controls:
If multiple date controls exist and none of them has selected a dataset as the date source, you can directly configure cascade among these date conditions. For more information, see Date cascade.
If a single date control and text-type controls such as a dropdown list exist, homologous or non-homologous cascade is supported.
Homologous Cascade
Example: Control A has area and province fields, Control B has city and product category fields, and both use the same dataset. Linking the area field in Control A to the city field in Control B filters Control B to show only cities within the selected area.
Select the target field Conditional Cascade Configuration page's Create One-way Cascade > Homologous Cascade.

Select the target field Area in Query Control A and click the
icon.
Select the condition field City that needs to be cascaded with the target field.

Click Confirm.
Now, when you select Area as Northwest in Query Control A, only cities within the Northwest area will be available in Query Control B's City field.

Non-homologous Cascade
Example: Control A has region and product type fields, Control B has province and product subcategory fields, and they use different datasets. Linking the region field in Control A to the province field in Control B filters provinces based on the selected region.
Select the target field Conditional Cascade Configuration page's Create One-way Cascade > Non-homologous Cascade.

Select the target field Area in Query Control A and click the
icon.
In the newly added cascade configuration box, complete the following:
Select the condition field in Query Control B that needs to be cascaded with the target field Province.

Select the associate field.
The associate field must be in the dataset that receives values from the upper-level condition. For example, if region cascades to province, select the field that receives the Region value.

The associate field can be a Dimension, Expression Value Placeholder, or Value Placeholder. Placeholder value-passing logic:
Query control type
Query method
Value placeholder
Expression placeholder
Date filter
Single time:
e.g., 2024-05-28
2024-05-28
>=2024-05-28,<=2024-05-28
Time interval:
2024.05.28~2024.05.28
2024-05-28
>=2024-05-28,<=2024-05-28
Time interval:
2024.05.21~2024.05.28
2024-05-21
>=2024-05-21, <=2024-05-28
Text filter
Single selection: East China
East China
in East China
Multiple selection: East China, South China, Northeast
East China, South China, Northeast
in East China, South China, Northeast
NoteFor time intervals, the Value Placeholder defaults to the start time. To use the end time, specify it in the dataset query, for example: report_date < '$val{report_date_ph.get(1)}'.
Usage details are available in the Placeholder documentation.
Click Confirm.
Selecting Region as Northeast in Control A now filters Control B's Province field to show only Northeast provinces.

Date cascade
Cascade between date controls
Example: Control-Date has quarter and month fields. Linking these fields creates a date cascade, so selecting Q1 2023 limits the month control to January, February, and March.
Select the target field Conditional Cascade Configuration page's Create One-way Cascade > Date Cascade.
NoteDate cascade supports only date-type controls. Supported granularities: year, year-quarter, year-month, year-week, year-month-day, and year-month-day-hour-minute-second.
Select the target field Quarter in Control-Date and click the
icon.
Select the condition field Month that needs to be cascaded with the target field.

Click Confirm.
Selecting the first quarter of 2023 now limits the month filter to January through March 2023.

Cascade between date controls and other controls
Date controls can cascade with dropdown lists only when the date control's data source is a dataset field, they support mutual cascade with other types of query controls (dropdown list and tree drop).
Example: Homologous cascade with a date control
Select the target field Conditional Cascade Configuration page, click Create One-way Cascade > Homologous Cascade.

Select the target field Transport Date, and click the
icon.
Select the condition field Area that needs to be cascaded with the target field.

Click Confirm.
Selecting Date as 2023-04-01 filters Area to show only areas with data on that date.

Example: Non-homologous cascade with a date control
Select the target field Conditional Cascade Configuration page, click Create One-way Cascade > Non-homologous Cascade.

In Query Control B, select the target field Promotion Activity, and click the
icon.
In the new cascade configuration box, complete the following:
Select the condition field Date that will be cascaded with the target field.

Select the associate field.
NoteThe associate field selected here must be the field in the dataset that is the source of the date query condition and that receives values passed from the upper-level condition. For example, the upper level here is Promotion Activity, the lower level is Date, the selectedPromotion Activity field is the field that receivesPromotion Activity value.

Click Confirm.
Selecting Promotion Activity as Spring Festival Activity filters the date control to show only associated dates.
NoteWhen other controls cascade to a date control, the selectable date range covers all dates associated with the selected value in the dataset.
For example, if the dataset has Spring Festival Activity entries on 2024-02-05, 2024-02-10, and 2024-02-17, the selectable range spans 2024-02-05 to 2024-02-17.
Create Two-way Cascade
Suppose the dashboard's query controls include Product Type, or Area as two query conditions, and both come from the same dataset. Creating a two-way cascade ensures that when you select a product type,Area option list shows only the regions where that product is sold; conversely, when you select a region, Product Type option list shows only the product types available under that region.
Select the target field Conditional Cascade Configuration page, click Create Two-way Cascade > Two-way Cascade.

Select the field to be cascaded Product Type and click the
icon.
Select the other condition field to be cascaded Region.

Click Confirm.
Now, in the query control, when you select Product Type as Office Supplies, you can see that under the Region condition, you can only select regions where Office Supplies are sold; select Region as Southwest, you can see that under the Product Type condition, you can only select product types available under the Southwest region.

Related operations
You can refer to the following instructions to add, delete, or modify a configured conditional cascade relationship.
Add a cascade configuration item
When you need to configure multiple cascade configuration items, in the upper-right corner of the page, click Create One-way Cascade/Create Two-way Cascade button, select the configuration item type as needed, and a new cascade configuration item is added.

Delete a cascade configuration item.
Above an added condition, you can click the Deleteicon (①) to delete this condition. You can also click theDeleteicon (②) to the right of the cascade configuration item to delete the entire configuration item.

Rename a cascade configuration item
New configurations are named Cascade Configuration Item by default. Click the title to rename.
