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: 
Anonymous
Not applicable

List Box - Combining Two Data Fields

Hi -

I have a data set that has columns for Home State and Business State.  I am interested in creating one list box based on "State" that users can limit the results to.  For example if someone selects Vermont from the list box....I want it to return any one who has a home or a business address or both in Vermont within the result set.

Is this possible?

I appreciate any insight you can provide.

Best,

A

1 Solution

Accepted Solutions
manas_bn
Creator
Creator

May be: Create another column by concatenating HOME and BUSINESS States. Then add a List Box and change default search mode to Wildcard. Whenever you search in the new column, any row with HOME OR BUSINESS in that state will get picked.

Fact:

//Precedding load.

//Concatenate both Home and Business into "States" Column

Load *,Home&'-'&Business as States;

Load * inline

[ID,Home,Business

1,VA,VA

2,VA,MN

3,CA,VA

4,CA,MA

5,IL,CA];

Result: (I searched for *VA*)

states.PNG

Cheers!

View solution in original post

4 Replies
effinty2112
Master
Master

Hi Ashley,

A Search object might give you what you need. Add a search object with the two fields you want to search against and try it out.

Good Luck

Andrew

vishsaggi
Champion III
Champion III

With QV associative logic when you select any value from a list box it will be reflected and show the relevant possible values for the selected. Where exactly you want to show this data like in a table or other objects? Can you share a sample if possible with some expected output.

manas_bn
Creator
Creator

May be: Create another column by concatenating HOME and BUSINESS States. Then add a List Box and change default search mode to Wildcard. Whenever you search in the new column, any row with HOME OR BUSINESS in that state will get picked.

Fact:

//Precedding load.

//Concatenate both Home and Business into "States" Column

Load *,Home&'-'&Business as States;

Load * inline

[ID,Home,Business

1,VA,VA

2,VA,MN

3,CA,VA

4,CA,MA

5,IL,CA];

Result: (I searched for *VA*)

states.PNG

Cheers!

Anonymous
Not applicable
Author

I didn't know about the search object feature! This would definitely work, but for the application I am building I needed it to be shown as a list box.

Many thanks!