Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
YanivZi
Contributor III
Contributor III

Creating a Filter Pane for Dual-Field Search

I aim to integrate the search functionality for two specific fields within the same row. The dataset, illustrated in the current table, necessitates the establishment of a filter pane, possibly implemented as a master item. This filter should selectively display rows where either F1 or F2 (or both) contain the value "2."

Person F1 F2
John 1 2
Jane  1 2
Mike 2 1
Sony 3 1
Lore 2 2

 

The desired outcome in the table results should reflect this criterion, as illustrated in the current table display.

Person F1 F2
John 1 2
Jane  1 2
Mike 2 1
Lore 2 2
Labels (1)
3 Replies
Or
MVP
MVP

If I understand the requirement, this seems to be a simple if() scenario?

Or_0-1703595649430.png

If(F1=2 or F2=2,'Only2') as FilterField

YanivZi
Contributor III
Contributor III
Author

I meant that the filter pane is already populated with the content of F1 and F2 and has values 1,2,3 but when i select "2" from the list then the table will give me the value from F1 or F2 or both

Or
MVP
MVP

In that case, you would need to load both F1 and F2 into the same field.

Load * From YourTable;

Load Person, F1 as FilterField From YourTable;

Concatenate

Load Person, F2 as FilterField From YourTable;