Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Piece of logic needed

I have 2  list boxes with same data , consider 2009 and 2010 each. I want to make the selections for both listboxes independent of each other. I achieved that by applying Alternate States.

I have selected 2009 in listbox1, and now when i try to select 2009 in listbox2 it should give me an error or something else.

Finally the selection should not be done.

I used if(Getcurrentselections(listbox1)=(Getcurrentselections(listbox2),' ',' ')

Thanks in advance

2 Replies
Not applicable
Author

You probably have checked it out... but just in case. Here is a good example of alternate states:

QlikView

You could download the app and check out how it was done.

martynlloyd
Partner - Creator III
Partner - Creator III

Have you considered creating a duplicate filed in your script?  Simple options are often the best...

LOAD

...

Year(Mydate) as Year_1,

Year(Mydate) as Year_2,

...

Regards.