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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
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
MVP
MVP

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