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

how to remove null in my listbox?

i have like

monthnum:

05

06

07

08

09

before 05 i have null how to remove this ?

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

HI Manoj,

Null is supressed in List box I think it is empty spaces, use Trim() to remove blank spaces.

Try like this in script

Load

*,

If(Len( Trim (monthnum) ) > 0 , monthnum ) AS MonthNumWONull

FROM DataSource;


Or in front end give calculated dimension

If(Len( Trim (monthnum) ) > 0 , monthnum )


Hope this helps you.


Regards,

Jagan.

View solution in original post

11 Replies
its_anandrjs

Hi,

In the list box expression write

If(Len(monthnum) > 0 , monthnum )

For remove null values.

Regards

Anand

Not applicable
Author

did not worked this

alkesh_sharma
Creator III
Creator III

Null values do not appear in list box. If you are seeing a blank, its probably because there would be Space which has its own ASCII value.

You need to remove it from the DB.

its_anandrjs

Hi,

I believe in list box you get unique values with at least minimum frequency is 1 and if you get any null values or blank space may be it is due to some symbols in the table. Check those data in the table otherwise do this in the load script.

Regards

Anand

Anonymous
Not applicable
Author

.... so try

If(Len(trim(monthnum)) > 0 , monthnum )

MK_QSL
MVP
MVP

Try below to create a List box field...

=IF(NOT IsNull(monthnum) or Len(Trim(monthnum))>0,monthnum)

rustyfishbones
Master II
Master II

IF(LEN(TRIM(monthnum)) >0 , monthnum)

its_anandrjs

Then try this ways

If(Len( Trim (monthnum) ) > 0 , monthnum )

Regards

Anand

Not applicable
Author

goto edit script ,after loading the tablefile ,before semicollen symbol use where condition

where not isNULL(monthnum)

pls try this one