Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
vipingarg23
Creator
Creator

restrict listbox values in alternate states

I have two listboxes A and B but Listbox B has alternate state and A don't have any alternate state. I want to limit the data in B based on A selections I am using below expression but it is not working, may be due to alternate states.

=if(Year(B)=A,B)

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Working expression:         =Aggr(Only({<A=$::A>} B),B)

View solution in original post

7 Replies
mayankraoka
Specialist
Specialist

Hi Vipin,

Try this suppose you have state1 for field B.

Try this in text box this wil affect.

= concat( distinct {State1<A= $::A>}B,  )

Regards,

Mayank

tresesco
MVP
MVP

Try like:

Aggr(Only({<B=$ :: A>}B),B)

If this doesn't work, please share a sample qvw.

vipingarg23
Creator
Creator
Author

No..It is not working.

Please find the sample file as an attachment. here I want once I clicked on 2015, it should display only 201501.

vipingarg23
Creator
Creator
Author

No. mayank. It is not working as well.

mayankraoka
Specialist
Specialist

Please check attached app.

Regards.

Mayank

tresesco
MVP
MVP

Working expression:         =Aggr(Only({<A=$::A>} B),B)

vipingarg23
Creator
Creator
Author

Great Tresesco and Mayank. It is working fine now. I appreciate your help. Thanks you so much.