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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show date values based on condition?


Hi,

I want to show Dates when the below condition satisfy

when DateA is blank the expression should show DateB value other wise it should show DateA value. I have used below seems not working.

=Date(If((DateA='',DateB,DateA),'DD/MM/YYYY')

Please can anyone suggest me how to change this.

Thanks.

1 Solution

Accepted Solutions
buzzy996
Master II
Master II

try tis way,


=Date#(If(isnull(DateA),DateB,DateA),'DD/MM/YYYY')

View solution in original post

4 Replies
buzzy996
Master II
Master II

try tis way,


=Date#(If(isnull(DateA),DateB,DateA),'DD/MM/YYYY')

jpenuliar
Partner - Specialist III
Partner - Specialist III

Hi Amelia,

Depends on your field whether  Blank(empty) or Null.

see which apply to your case:

Len(DateA) = 0 or Isnull(DateA)

Not applicable
Author

Thanks. working.

buzzy996
Master II
Master II

ur wc