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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
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

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

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
MVP
MVP

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
MVP
MVP

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

Anil_Babu_Samineni
MVP
MVP

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