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

List Box (With 1 fixed selection & 1 mandatory Selection)

Hello,

I would like to create a list box with 1 fixed selection & 1 mandatory Selection.

Eg. List Box has following Selection

A

B

C

D

E

I would like to have "E" locked all the time regardless of other selections, and user must select one of A - D on top of E.

Is there any possibility to do that?

Thank you.

9 Replies
arulsettu
Master III
Master III

hi

select E and go to properties then in general enable always one selected value

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Right click on 'E' in the list box and select Lock.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hi Arul,

By utilizing that, I can only select E but not E + (One of A - D) on top of E.

Any other way to do it?

Not applicable
Author

HI Jonathan, by locking the list box, I cannot add One of A - D on top of E.

Not applicable
Author

select E> and goto selections(in main tab)>click  on set clear state

if u clear also e selections will be there till u click on reset clear state which is avaliable in same location

Not applicable
Author

Tried that option but when I clear selections, the selected E disappears as well

Not applicable
Author

Hi ashley,

i dont think so.

click on E > click on set clear state

i think it should work

Not applicable
Author

Hi Manojqlik, Yes, I clicked on E and it is appearing in my Current Selections screen.

Then I went to Selections -> Set clear State

But when I click on clear all later, E disappears from my current selections screen.

To my understanding, it should still remain there right?

Michiel_QV_Fan
Specialist
Specialist

Ashley,

Do this in your expressions:

sum({<your_field = {'E'}>}measure) + sum({< your_field  = {'$(=GetFieldSelections(your_field ))'}>} measure)

you can always add this to a variable and add the variable to the set analyses with {<$(your_variable)>}