Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Null value in a Date column updated with other date column

Hello QV Experts,

I have two columns DateReceived & DateApproved.

In DateApproved column having few null values, so that i need to update those DateApproved column with (DateReceived + 5).

Can you please suggest me.

Appreciate your prompt response.

Thanks,
Sasi

3 Replies
sunny_talwar

May be this:

LOAD DateReceived,

          Date(If(Len(Trim(DateApproved)) = 0, DateReceived + 5, DateApproved)) as DateApproved

FROM ....

Not applicable
Author

Thanks Boss. It worked for me.

sunny_talwar

Great