Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikapple
Creator
Creator

Getting new date field withexisting two dates -please help

 
5 Replies
qlikapple
Creator
Creator
Author

Alt dateTarg dateNo
1-Aug-182-Aug-1812
 3_aug-2018123
4-Aug-18 12345
  1234567
6-Aug-187-Aug-18123123
 8-Aug-181212
   

 

Now the Requirement is

 

Introduce new field call due date where the logic will be like below
a) If “Alt date” field is blank, then it captures the “Targ date” in the “due date” field.
b) If “Alt date” field has an entry, then it captures the “Alt date” in the “Due date” field.
c) If “Alt date” field and “Targ date” field are both populated, then it captures “Alt date” in the “Due date” field.
    
qlikapple
Creator
Creator
Author

can anyone please check and help

qlikapple
Creator
Creator
Author

hi anyone please check and help

Akhil_Reddy
Contributor III
Contributor III

load
altdate,
targdate,

if( altdate <> null() and targdate <> null(),altdate,
if( altdate = null() ,targdate,

if( altdate <> null() ,altdate) ))as duedate,
no

Brett_Bleess
Former Employee
Former Employee

Did the poster's comment help you resolve things?  If so, please be sure to give them credit by clicking the Accept as Solution button on their post.  If not, please leave an update on where things stand.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.