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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
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?

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