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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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
MVP
MVP

May be this

LOAD NAME,

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

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