Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
I have this field 'Field 1' with rows composed of strings as follows:
Field 1
"Value1,Value2,Value3"
"Value4"
...
"Value21, Value1, Value23"
And I would like to filter this field based on the different 23 string "Values" (Values1,...,Values23) that migh composed a row of this field. For example, if I click on 'Value2' in the filter, it should display all the rows where 'Value2' is in it.
I think its possible to do it with 23 IF conditions but I was wondering if there is a better solution.
Thanks for your help.
@epocin31 you need to do it in script instead of front end
LOAD Field,
subfield(Field,',') as Values
FROM table;
I tried with 'subfield([Field1],',',1)' but this solution is partial because my filter only contains the first values of each string.
Just use subfield([Field1],',') without the 3rd parameter (this is optional)
Qlik will create a row for each value
Thanks for your answer, It works partially
@epocin31 share sample data with expected output
Here is my file
The expected output is for example: when I click on 'Value1' its shows all the rows that contain 'Value1'
But I noted some anomalies with subfield:
@epocin31 you need to do it in script instead of front end
LOAD Field,
subfield(Field,',') as Values
FROM table;
There is no work-around in the front-end?
I have some limitation in the back-end (professionnal usage)
@epocin31 If it is just about searching and filtering, you can use the wildcard search option of filter like below to select all values