Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

Nulls from DB

Hi all,

i am getting nulls from Database only

but i want to exclude nulls from DB while loading itself  how can i do this in script?  you can see in image with empty spaces i  dont want that

Thanks

Sonyempty.PNG

11 Replies
trdandamudi
Master II
Master II

In the script do as below:

If(Len(Trim([Deal Type])) > 0,[Dea Type]) as [Deal Type]

soniasweety
Master
Master
Author

i want to write in where condition   i dont want alter the column

is there any way?

trdandamudi
Master II
Master II

Something like below:

First:
Load  *
Resident Data
Where Len(Trim(Type)) > 0;

soniasweety
Master
Master
Author

am getting  0,-1 in listbox i used above expression in script.

trdandamudi
Master II
Master II

Did you used the If() condition as below:

If(Len(Trim([Deal Type])) > 0,[Dea Type]) as [Deal Type]

soniasweety
Master
Master
Author

its working  but.  one question

if i want write with sql  condition how can i achieve this?

like

sql   filed1

field2

Deal_Type 

where is not null             like this how can i do ?

soniasweety
Master
Master
Author

i used this   but still i can see one blank in listbox  what is the wrong here?

where Deal_Type is not null and Deal_Type <>'' and Deal_Type <>'?';

vishsaggi
Champion III
Champion III

Did you try like

WHERE Len(Deal_Type) > 0

agrawalpavan
Partner - Contributor II
Partner - Contributor II

Is it MS SQL database?

There may be spaces here. You need to do a trim function in SQL where clause.