Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

arsenal83
Not applicable

NULL vs SPACE

Hello, I would like to create column in loading script base on the source column. My new column should be a flag:

if (isnull(SOURCE), 1, 0)

The problem is that in source data sometimes I have null but sometimes it is space or even several spaces. I tried with TRIM function:

if(isnull(trim(SOURCE)), 1, 0)

but it did not work.

Could you help me please?

Tags (3)
1 Solution

Accepted Solutions
robert_mika
Not applicable

Re: NULL vs SPACE

try:

if(Len(TRIM((SOURCE))=0....

1 Reply
robert_mika
Not applicable

Re: NULL vs SPACE

try:

if(Len(TRIM((SOURCE))=0....