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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hugmarcel
Specialist
Specialist

Limit listbox values on existence in another field

Hi

I have fields


- A with values 1, 2, 3, 4, 5, 6
- B with values 1, 2, 5

Now I want to create a listbox on field A showing values only that exist in field B.
Once a value in listbox is selected, all other values in B shall still be visible greyed out.

Any idea? Something like

aggr(only({$<=p({1} )>}),)

does not work as listbox formula.

Thx - Marcel

1 Solution

Accepted Solutions
hugmarcel
Specialist
Specialist
Author

aggr(only({1<=p({1} )>} A),)

Shows the hidden values greyed out as required.

View solution in original post

2 Replies
hugmarcel
Specialist
Specialist
Author

aggr(only({$<=p({1} )>} A),)

is a better try... I missed the A as part of the only function.

hugmarcel
Specialist
Specialist
Author

aggr(only({1<=p({1} )>} A),)

Shows the hidden values greyed out as required.