Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
mmg1984
Contributor II
Contributor II

Create a filter with values to check if exist in a column

Hello,

I have the following problem, I'll try to explain it with easy data, I have 2 tables:

Filtering table:

White 

Black 

Blue 

 

Data Table:

Black;White 

White 

Blue;White 

Black 

What I want to do is to put Filtering table in a filter and Data Table in a table so I can select one colour in the filtering and that will filter the Data Table by any row that contains that colour, example if I select Black the result would be:

Data table:

Black;White 

Black 

 

Any idea how can I do it?

Thanks in advance 

 

Labels (1)
1 Solution

Accepted Solutions
Digvijay_Singh

I think subfield with two parameter can help in this situation - 

Filter:
Load * inline [
Color
White
Black
Blue
];

Data:

Load *, subfield(DataColor,';') as Color inline [
DataColor
Black;White
White
Blue;White
Black
];

Digvijay_Singh_0-1677206681933.png

 

View solution in original post

1 Reply
Digvijay_Singh

I think subfield with two parameter can help in this situation - 

Filter:
Load * inline [
Color
White
Black
Blue
];

Data:

Load *, subfield(DataColor,';') as Color inline [
DataColor
Black;White
White
Blue;White
Black
];

Digvijay_Singh_0-1677206681933.png