Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I am having one field called created date with value as 19/12/2015 15:45:34 (this format). Also having 2 more fields as start time and end time in same format.
One record is having unique number for identification. One record will have only one created time but there could be many records with start n end time. It means one to many relation. Here comes my requirement -
I want to have only start and end time capture for one unique number. For example;
Created time -19/12/2015 15:45:34
Start time -19/12/2015 15:43:34
End time -19/12/2015 15:47:34
Start time -19/12/2015 15:44:34
End time -19/12/2015 15:48:34
I want to have first record because start date falls between first start and end time and that is the most closest one.
Kindly suggest me the solution.
Regards,
Imran Khan
Dataset A
CREATED TIME | Contact | Interaction ID |
01/11/2015 20:09:51 | 9619137131 | 12797733 |
01/11/2015 20:24:04 | 9619137131 | 12797764 |
01/11/2015 20:30:44 | 9619137131 | 12797775 |
Dataset B
Start Time | EndTime | NEW Talk Time |
01/11/2015 20:22:35 | 01/11/2015 20:10:03 | 00:00:40 |
01/11/2015 20:05:50 | 01/11/2015 20:24:03 | 00:04:12 |
01/11/2015 20:25:54 | 01/11/2015 20:30:54 | 00:04:58 |
Want to do intervalmatch with Created Time and want to look if created time falls between Start Time and End time and would like to tag row with respective Interaction ID
Events:
Load * From DataSet A;
Intervals:
Load * From DataSet B;
IntervalMatch:
IntervalMatch (CreatedTime)
Load distinct StartTime, EndTime resident Intervals;
Just modified HIC suggestion
I tried at my end but it is not working. Ideally it should work but don't know the reason why it is not working..
HI Imran,
PFA ,
Might be issue with Date formats
Attachment is missing
HI,
i am able to see the attachment , check once