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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic Chart Selection , Hide/Unhide based on multiple selection in LIST BOX

Hello All,

I am a new user and I am doing a POC for a client using a personal edition.

I have a list box with a field id and id has 8 values:1,2,3,4,5,6,7,8 respectively and I have 8 charts for each. If I select then Chart1 should be displayed and rest all should be hidden and if I select 2 then Chart 2 should be displayed and rest all be hidden and so forth.

Most Importantly, if a user selects say id=1,2,3,4 then chart1,chart2,chart3 andchart4 should be displayed and rest all should be hidden, could one please help me how to do this. This is really important , Please help ASAP

I have a  personal edition and I might not be able to download and use any other Qlikview file other than the ones I create.

16 Replies
Not applicable
Author

Index(concat(DISTINCT id),1)

Try this please. I forgot that Getfieldselection has a limit of 6. Sorry

Not applicable
Author

One more change:

GetSelectedCount(id)>0 and Index(concat(DISTINCT id),1)

This will get you what you are looking for.

Thanks

AJ

Not applicable
Author


Hello Ajay,

Thanks so much. It worked like magic. I have one more question if you do not mind. Is there any way to restrict user selection here, say to a maximum of 4 id's at any given point of time, it can be anything {1,3,5,6} or {1,2,3,4}

stabben23
Partner - Master
Partner - Master

Hi or just use index(concat(id),x) x for the number in your bar 1 to 8 in your example. Works in your attached file.

Not applicable
Author

Sure. You can tweak it a little like

GetSelectedCount(id)>0 and GetSelectedCount(id)<5 and Index(concat(DISTINCT id),1)

and you can add a help text to display message as 'Select max 4 values'

This can be done in

Test.png

Not applicable
Author

Hello Ajay,

Thanks so much , your solution worked like a charm. I actually had posted one more question on the forum, is it possible for you to have a quick look at it ? Here is the link http://community.qlik.com/thread/118761.

I really appreciate your help .

Regards,

ronak Jain

Not applicable
Author


Thank you Staffan,

I actually had posted one more question on the forum, is it possible for you to have a quick look at it ? Here is the link http://community.qlik.com/thread/118761.

I really appreciate your help .

Regards,

ronak Jain