Discussion Board for collaboration on QlikView Scripting.
Does anyone know another way of loading null() values with inline load ?
if(NullField='NULL', null(), NullField) as NullField;
LOAD * INLINE [
Set NullInterpret = '';
View solution in original post
I think this is the only way in case of inline load. Leaving it blank returns blank that is not the same as null.
Michael is right. The inline Load is like a text file that cannot contain NULL values. See more on http://community.qlik.com/docs/DOC-3155.
(I realise this is an old post - but I found a solution others may find useful)
You can add null values using concatenate inline loads, but a field must be specified in each load. So a solution is:
LOAD * INLINE [NullField, OtherField1,2,3,];CONCATENATE LOAD * INLINE [OtherField1];DROP Fields OtherField;
I suspect for most cases other fields would exist - you would necessarily need to create (and drop) an 'OtherField'.