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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Date

HI ,

I want display when there is no date , for which iam trying to write the below expression ...

if (Date=null,0)

to which it is giving error in expression , Can someone please suggest me how to write this

Thanks in Advance

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this, Because you are talking about Text object

If(IsNull(Date),0, Concat(Date,','))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

5 Replies
tresB
Champion III
Champion III

Try like:

if (IsNull(Date),0)

Or,

If( Len(trim(Date))=0, 0)

sunny_talwar

Where are you trying to do this? Script or front end? Dimension or expression (if its in front end)?

smilingjohn
Specialist
Specialist
Author

Front end it is an expression within the text object

sunny_talwar

Have you tried tresesco‌'s suggestions? May be doing that will resolve your issues

Anil_Babu_Samineni

May be this, Because you are talking about Text object

If(IsNull(Date),0, Concat(Date,','))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful