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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Always show list box

I have a list box with "Windows Checkboxes" as selection style.

This list box has an expression defined like below:

=if([Has-license-car]=1,'Has license car')

Field [Has-license-car] is a bit type (0 or 1) that is loaded from a SQL table:

IDCategoryHas-license-car
1Analyst1
2Director1
3Manager0
4Analyst0
5Comercial1

When I check the list box this only shows personal that has license car. Otherwise it shows all the personal.

The problem here is when I have a table like below in which all "Has-license-car" values are 0:

IDCategoryHas-license-car
1Analyst0
2Director0
3Manager0
4Analyst0
5Comercial0

In this case since all "Has-license-car" values are 0 then list box is never shown.

So what I am trying to do is to always show the list box even if all "Has-license-car" values are 0.

10 Replies
rahulpawarb
Specialist III
Specialist III

Hello Tony,

Trust that you are doing good!

You can make use of Data Island to solve your query. Create data island table using below load script and post that you can use Has-license-car field in List box.

MyIsland:

LOAD * INLINE [

Metric, Has-license-car

Has-license-car, 1

];

Hope this will be helpful.

Regards!

Rahul