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: 
mdmukramali
Specialist III
Specialist III

Select the second field value if the first field value is null

Dear ,

i want to create a new field which contains A values, if any place A value is missing (Null) then it should select the value from second  B field.

i don't remember the function for it.

example:

a:

LOAD * Inline

[

A,B

1,

,4

2,3

6,2

]

;

LOAD * ,

{FUNCTION} (A,B) AS NewField

Resident a;

DROP Table a;

OUTPUT:

NewField

1

4

2

6



Thanks,

mukram

10 Replies
Anonymous
Not applicable

Got it