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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

replace null in load script

how via script load to replace null with 'Other'

LOAD * INLINE [
NAME, GRADE
A, 100
B,
C, 90
D
]
;

so looking for

Name Grade

A      100

B      Other

C      90

D      Other

1 Solution

Accepted Solutions
sunny_talwar

May be this

LOAD NAME,

    If(Len(Trim(GRADE)) = 0, 'Other', GRADE) as GRADE;

LOAD * INLINE [
NAME, GRADE
A, 100
B,
C, 90
D
];

View solution in original post

1 Reply
sunny_talwar

May be this

LOAD NAME,

    If(Len(Trim(GRADE)) = 0, 'Other', GRADE) as GRADE;

LOAD * INLINE [
NAME, GRADE
A, 100
B,
C, 90
D
];