Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jenniferboughton
Contributor
Contributor

Filtering on arrays

Hi all,

I'm trying to create a filter for what was originally an array in my dataset: 

issue_numberareasseverityareas_string
3344[
"App"
]
1App
3345[
"App",
"Website"
]
1App,Website
3346[
"Website"
]
2Website
3347[
"Website"
]
1Website

 

I'd like to create a filter (for either areas or areas_string) that when I choose "App" would return issues 3344 and 3345 and when I choose "Website" would return issues 3345, 3346, and 3347. 

How can this be done?

Thanks!

 

2 Replies
marcus_sommer

You may try the following:

load issue_number, subfield(areas_string, ',') as areas_items from source;

to create an extra dimension-table with issue_number as key and areas_items is then your selection-field.

- Marcus

jenniferboughton
Contributor
Contributor
Author

This worked! Thank you!