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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

NULL value replacement in load

Hi Everyone,

I have a really large dataset which has been exported from SQL server to a flat file.  The Null values are assigned as 'NULL' ( a text string ).  Is there a way I can replace all instances of NULL with a blank or a system missing?

Thanks

Gareth

5 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   For replacing any string with other string, Replace(Text, From_Text, To_Text) function is used.

 

   So in your case it will be

   Load

      Replace(Field1,'NULL','') as FIeld1

    From xyz.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

So I have to go through every variable?  This is a massive dataset.  Is there no way to define what the missing value is?  i.e. tell QV that for this document NULL = a null value?

Not applicable
Author

Hello

You can replace all Nulls by putting this at the start of your load script.

It is very useful for debugging and data verification.

SET NULLDISPLAY = '#Null' ;  //you can put anything in the quotes

Regards

Greenee

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     This is not the variable its a field. And you need to say QV that search in this field for value NULL and replace it with ''.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Sorry I misread post.