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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated Listbox Not Selecting

Hi all,

I built to calculated list boxes that search for strings in specific fields and select line items that contain them. They work perfectly for selecting the line items - not so well for providing visual feedback.

For example, one of my listboxes contains "Data Hotspot" and "Non-Hotspot." When I choose "Data Hotspot" all of the line items are selected beautifully, but the listbox remains as if nothing were selected. When I select "Non-Hotspot" - the inverse selection is greyed out, but the Non-Hotspot portion won't actually highlight in green. What's the deal with that? Below is my expression in the listbox and an associated photo of when I select "Non-Hotspot."

=if(LineName LIKE '*air*card*' OR

  DeviceModel LIKE '*air*card*' OR

    LineName LIKE '*hot*spot*' OR

    LineName LIKE '*mifi*' OR

  DeviceModel LIKE '*mifi*' OR

    DeviceModel LIKE '*jet*pack*', 'Data Hotspot', 'Non-Hotspot')

Capture.PNG.png

7 Replies
MarcoWedel

calculated listboxes do not contain field values itself.

Selections therefore are represented in the corresponding fields that contribute to the calculated values.

These "real" fields show their selection state green/white/grey as always.

regards

Marco

Not applicable
Author

And there's no way around this? Is there a better way to let my user know what they have selected?

MarcoWedel

calculated listboxes can represent selection states of related fields with green color, but maybe this is prevented in your case.

Can you post your app with test data?

thanks

regards

Marco

MarcoWedel

one example to show, that selections in calculated list boxes affect selections in other calculated list boxes and that the selection state only shows real fields:

QlikCommunity_Thread_131062_Pic1.JPG.jpg

QlikCommunity_Thread_131062_Pic2.JPG.jpg

regards

Marco

Not applicable
Author

Hmm your calculated listboxes seem to be working perfectly. Mine don't highlight when I select them (although they do select the line items/fields that I want; if I add a current selections box, I can see the items I want selected). I'm not really sure why mine doesn't work. I'll try to blind some data and upload.

Could it have anything to do with using the "LIKE" keyword? The OR operator? I have no idea why my statement won't provide visual feedback.

MarcoWedel

I tried with your expression and it seems to work.

Don't have any clue without your sample app

QlikCommunity_Thread_131062_Pic3.JPG.jpg

QlikCommunity_Thread_131062_Pic4.JPG.jpg

regards

Marco

Not applicable
Author

Hi Paul / Marco,

I am using an Expression list box and my selections are not highlighted in green.

Paul - Did it finally work out for you ?

I am using QV 11.2 SR 7 - like to know if you fixed something for this.

Thanks

Shyam