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

Always one specific value is selected in the list box along with the other selections

How can I have one value always selected in the list box.

In the below tables, when I make any selection in the Region, I want APAC to be selected along with my selections. Similarly when I make any selection, in Market Sector, I should have the FI selected along with the selections I want.  When I don't select anything from the Region or Market Sector, then it should not select anything. Thanks for the help.

Region

North America
APAC
EMEA
LATAM
Market Sector
FI
ABC
SF
Copr
1 Solution

Accepted Solutions
sunny_talwar

You need this action:

='(' & Chr(34) &'APAC' & Chr(34) & '|' & If(GetSelectedCount(Region) >0, Concat(Chr(34) & Region & Chr(34), '|') & ')', ')')

View solution in original post

12 Replies
Not applicable
Author

Did you try solve it by  "Load * inline" ?

e.g.

APAC , North America

APAC , EMEA

APAC , LATAM

Not applicable
Author

I can not load it like that. It a lot of data and users will be confused. Is there any way I can use a trigger to have those values selected on any change on those fields?

sunny_talwar

So you are trying to select APAC regardless of what you have selected in your region listbox?

Not applicable
Author

Exactly.

Thanks

sunny_talwar

Have a look at the attached qvw and see if this is what you want:

Select in Field Action

Capture.PNG

Search String: ='(APAC|' & If(GetSelectedCount(Region) >0, Concat(Region, '|') & ')', ')')

HTH

Best,

Sunny

chaper
Creator III
Creator III

Try in document properties Add a trigger OnAnySelect and select Action Select in Field and use Field=Region and value='APAC'.

sunny_talwar

It is somehow isn't working with North America, may be because of the space between the two words North and America. I am trying to figure out what the issue is

Not applicable
Author

You are right. It is working for all except for North America. Thanks for the quick response.

Not applicable
Author

Then it will select only APAC regardless of what I select.