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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
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))