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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Generating values to Blank or Null values in a field/column

I have a field/column called LeaveCode with different values eg(AA, PH, AS) along with blank or null values.

How do I populate or generate values for these blank values so that it can be renamed as WD?

Labels (1)
1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

Hi,

try this on the script:

if(len(trim(LeaveCode))=0,1, LeaveCode) as LeaveCode  ==> this insert the value 1 when it is blank or null


you can put whatever you want instead of 1

View solution in original post

3 Replies
YoussefBelloum
Champion
Champion

Hi,

try this on the script:

if(len(trim(LeaveCode))=0,1, LeaveCode) as LeaveCode  ==> this insert the value 1 when it is blank or null


you can put whatever you want instead of 1

Anonymous
Not applicable
Author

Thank you!

YoussefBelloum
Champion
Champion

you're welcome, good luck