Hello QuickSight Community,
I have a question about filtering dataset rows using a parameter value.
I would like to pass a string value via a QuickSight parameter (for example, from a URL or embed parameters), and then filter the dataset so that only rows where a specific column contains that parameter value are shown.
Example:
- Parameter name: DefaultShopID (String)
- Parameter value: “4860”
- Dataset column: shop_name_ids (String)
- Column values example:
- “TestShop(4567)”
- “TestShop2(4678)”
- “AnotherShop(4860)”
Expected behavior
-
Filtering
Only rows whereshop_name_idscontains"4860"should be shown.
(Equivalent to SQL:WHERE shop_ids LIKE '%' || :DefaultShopID || '%') -
Filter control default value
I want to displayshop_name_idsas a filter control (dropdown or list),
and have the control default to the value that contains the parameter, e.g.:- When
DefaultShopID = "4860" - The control should automatically select “AnotherShop(4860)” (because it contains 4860)
- When
Questions
- Is it possible in QuickSight to filter rows based on “column contains parameter value”?
- Can a filter control automatically select the matching value based on a parameter?
- If not directly supported, what is the recommended workaround (calculated field, dataset prep, etc.)?
Thank you in advance for your help.