How do I test for multiple values in a dashboard parameter?

When you’re creating a dashboard with parameters and you want to use a multi-select parameter as a filter, the OPAL that is used should reflect that the parameter is an array. The Dashboard editor should do this correctly for you.

To filter a column using a multi-select parameter in OPAL, you can use the array_contains function with the parameter. Here’s an example:

// Assuming the multi-select parameter is named $selected_values and the column to be filtered is namespace
filter array_contains($selected_values, namespace)

This will filter the dashboard to only include the values selected in the multi-select parameter.