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: 
TheRoo
Contributor
Contributor

I’m trying to exclude (NotNull) from a Date field,

I’m trying to exclude (NotNull) from a Date field, although I can do it by:

= If (isnull(YourExpression),0,YourExpression), unfortunately it is converting all the other dates into just numbers, so in a nutshell how do a write the script to covert the number into ‘DD-MM-YY’

2 Solutions

Accepted Solutions
Vegar
MVP
MVP

Format your output as a date

 

= If (isnull(YourExpression),0,date(YourExpression, 'DD-MM-YY') ) 

View solution in original post

tomovangel
Partner - Specialist
Partner - Specialist

Hello, easiest way is to do this
Date(If (isnull(YourExpression),0,YourExpression),'DD.MM.YYYY')

 

View solution in original post

4 Replies
Vegar
MVP
MVP

Format your output as a date

 

= If (isnull(YourExpression),0,date(YourExpression, 'DD-MM-YY') ) 

tomovangel
Partner - Specialist
Partner - Specialist

Hello, easiest way is to do this
Date(If (isnull(YourExpression),0,YourExpression),'DD.MM.YYYY')

 

TheRoo
Contributor
Contributor
Author

Tack, det fungerar nu

TheRoo
Contributor
Contributor
Author

Thank you