Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
taz803
Contributor III
Contributor III

How can i change NULL with a date

i want to replace NULL with a date (if  DT_EVENT is null replace with 01/01/2023 ) 

how can i hundle it 

Labels (4)
2 Replies
Chanty4u
MVP
MVP

Try this 

LOAD

    IF(ISNULL(DT_EVENT), Date#('01/01/2023', 'DD/MM/YYYY'), DT_EVENT) AS DT_EVENT

FROM YourTable;

Vegar
MVP
MVP

Id your field is numeric/date the you can use Alt(DT_EVENT,makedate(2023,1,1))

if its a string and you are on a recent Qlik Sense release.

Coalesce(DT_EVENT,makedate(2023,1,1))