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: 
raadwiptec
Creator II
Creator II

if

hi

i have the following required in expression.. i have 3 columns

closing date

last date

opening date

My condition is as below

if closing date is blank or null the take the date from opening date column ,if the opening date is null or blank then take the date from last date column

21 Replies
vcanale
Partner - Creator II
Partner - Creator II

Hi,

Try to include in the condition all the possible values you can have, something like:

if(IsNull(Closing_Date) or Closing_Date='-' or Closing_Date='/',

    if(IsNull(Opening_Date) or Opening_Date='-' or Opening_Date='/', Last_Date, Opening_Date),   

               Closing_Date)



Anonymous
Not applicable

The problem with that approach is, what if there is junk in the field = something that's not a date you'll have to compensate for every conceivable scenario.

I the code I provided all field content is evaluated, and if it's not a date it'll be treated as null.