Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Fill in empty fields by loading a table

Hello,

Loading the table, the empty fields has to get a default text like "Not_Filled_in".

The fields that are not empty has to be load of course.

I forgot the script text.

Can you help me with this easy question.

Thanks,

Ralph

1 Solution

Accepted Solutions
Not applicable
Author

Hi Ralph,

something like

If(Len([Field])>0,[Field],'Not_Filled_in') AS [Field]

in your load script should do the trick for you, will catch zero length and null values.

Alternately have a look at the 'map using' function  if this to be a wider requirement across a large number of fields

hope that helps

Joe

View solution in original post

4 Replies
Not applicable
Author

Hi Ralph,

something like

If(Len([Field])>0,[Field],'Not_Filled_in') AS [Field]

in your load script should do the trick for you, will catch zero length and null values.

Alternately have a look at the 'map using' function  if this to be a wider requirement across a large number of fields

hope that helps

Joe

sunny_talwar

Are you looking to do something like this?

Table:

Load If(IsNull(FieldName), 'Not_Filled_in', FieldName) as FieldName

Resident SourceFile;

Best,

S

Not applicable
Author

Thanks,

It works.

Not applicable
Author

no problem, glad to help