Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey, I am trying to write an if statement to say if the status is "Done" before the "Target Date", it was delivered "On-Time"...if not, it is "Late". How would I do this in an if statement?
Tyler,
You can try something like this:
If ( StatusDate < TargetDate, 'On-Time', 'Late') as Status
Good luck!
Oscar
please post some sample data and your expected result.
thanks
regards
Marco
If ( (Status='Done' and StatusDate < TargetDate), 'On-Time', 'Late') as Status
Hth
Sasi
Tyler,
If anyone was helpful or if they answered your question would you please close the post.
Qlik Community Tip: Marking Replies as Correct or Helpful
Thanks
Oscar
If ( (Status='Done' and StatusDate <= TargetDate), 'On-Time', 'Late') as Status
Just make sure that status date and target date are in same format.