Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I restrict the entries in a list box ?


Hi All,

I have a list box which lists employee names (Employee_Name). I would like to only list those names in the list box depending on the selection in another field (Department_Name). Currently it lists all the names for all departments.

Thanks

MV

1 Solution

Accepted Solutions
tresesco
MVP
MVP

List box expression: =Aggr(Employee_Name,Employee_Name)

View solution in original post

7 Replies
Anonymous
Not applicable
Author

you can use "hide excluded" in the defintion of the listbox.

you will see gray rows instead

ashfaq_haseeb
Champion III
Champion III

Hi,

Right Qlik on Employee list box --> go to properties --> General tab --> Select hide excluded.

Regards

ASHFAQ

tresesco
MVP
MVP

List box expression: =Aggr(Employee_Name,Employee_Name)

MK_QSL
MVP
MVP

Instead of selecting Employee_Name Field in List Box, use below expression in List Box ... This will solve your purpose..

Aggr(Employee_Name,Employee_Name)

rustyfishbones
Master II
Master II

Create a List Box with Expression

2014-09-03_1016.png

And then add the following expression like tresesco says above

2014-09-03_1015.png

aveeeeeee7en
Specialist III
Specialist III

Hi

Use Expression: Aggr(ListBoxName,ListBoxName) or Aggr(Only(Name),Name)  in List Box whose values you want to hide.

See the Snapshots:

List Box Setting1.png

List Box Setting2.png

Also, see the Attached QVW.

Regards

Aviral Nag

Not applicable
Author

Hi,

I did as you suggested but all it did was create a list box with two columns of identical names.Maybe I didn't explain myself clearly enough.

I have a container object with two pivot tables - one for Department A, the other for Department B. If I select Department B pivot table, I only want those employee names associated with Department B to be listed in the Employee Name listbox.

The same principle applies to the Department A pivot table.