The following example demonstrates how to create a new dashboard parameter and pass it to a data source' filter string.
In this example, the dashboard has two data sources. The dashboard visualizes data from dataSource1, while dataSource2 is used to provide values for the dashboard parameter.
After the dashboard parameter is created, it is passed to a data source filter string. So, the dashboard displays data according to the current parameter's value.