Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Not applicable

listbox selection

How to select only maxstring from number of selection of listbox in qlik sense.

can any one suggest me?

8 Replies
agigliotti
Honored Contributor II

Re: listbox selection

please attach a print screen to better understand what are you looking for.

jcramirez472
New Contributor II

Re: listbox selection

I think I know what you are saying. First you need to create a field that gives you the length of the string in the script. Once that is created, you can use set analysis to find the field that has the longest string based on its length.

Only({<FieldLength={$(=Max(FieldLength))}>}Field)

Please mark as correct if this was helpful.

Thanks!

Not applicable

Re: listbox selection

Hi John, Andrea,

Thanks for your reply, Please find the requirement below

Filter-

In case of multiple selection, last selected value will be considered and selection removed from all other values in filter. Example if Jan, Feb and Mar selected where Mar is last selection, filter visualization on Mar month and remove selection in filter from Jan and Feb. Similarly for Quarter and Year filters.

Not applicable

Re: listbox selection

Hi John,

I think you thought this is the issue in qlikview. I am facing issue in qlik sense listbox. This expression I used already. please suggest me for qlik sense listbox actions.

jcramirez472
New Contributor II

Re: listbox selection

This kind of requirement needs an extension. As you may know, Qlik Sense does not support this type of action out of the box. Another work around is to allow the selection, but only evaluate max month in the visualization. It will appear as though multiple values are selected, however, only the max month or quarter is being evaluated in the visualization.

Please mark correct if helpful.

dwforest
Valued Contributor

Re: listbox selection

Qlik Sense does not have actions

Not applicable

Re: listbox selection

ohh ok, thanks everyone

jcramirez472
New Contributor II

Re: listbox selection

Please mark as correct if you received an answer

"This kind of requirement needs an extension. As you may know, Qlik Sense does not support this type of action out of the box. Another work around is to allow the selection, but only evaluate max month in the visualization. It will appear as though multiple values are selected, however, only the max month or quarter is being evaluated in the visualization."