<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Testing for duplicate timelines in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Testing-for-duplicate-timelines/m-p/1289219#M403341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day Qlikview geniuses...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would one test for duplicate timelines if you have a (Originally a unix timestamp)Date Field DD-MM-YYYY a Time from Field hh:mm and a Time to field also hh:mm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now basicly I need to check that on the same DATE field there isn't more that one row where the two time fields for that day could intersect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Practical example: An IT support technician inputs his/her date of dealing with a call and the time from anf to spent on that call. Sometimes by accident or human error their date's timelines intersect each other hence between call 1 08:00 hours to 12:00 hours&amp;nbsp; and call 2 from 11:40 to 13:00 hours on the same date there is an error because the timelines intersect i.e. by 20 minutes on the same day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they do intersect it means the IT Tech's time is being double booked. Henc I wish to display both intersecting timelines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heinrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 10:49:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-20T10:49:34Z</dc:date>
    <item>
      <title>Testing for duplicate timelines</title>
      <link>https://community.qlik.com/t5/QlikView/Testing-for-duplicate-timelines/m-p/1289219#M403341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day Qlikview geniuses...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would one test for duplicate timelines if you have a (Originally a unix timestamp)Date Field DD-MM-YYYY a Time from Field hh:mm and a Time to field also hh:mm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now basicly I need to check that on the same DATE field there isn't more that one row where the two time fields for that day could intersect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Practical example: An IT support technician inputs his/her date of dealing with a call and the time from anf to spent on that call. Sometimes by accident or human error their date's timelines intersect each other hence between call 1 08:00 hours to 12:00 hours&amp;nbsp; and call 2 from 11:40 to 13:00 hours on the same date there is an error because the timelines intersect i.e. by 20 minutes on the same day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they do intersect it means the IT Tech's time is being double booked. Henc I wish to display both intersecting timelines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heinrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 10:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Testing-for-duplicate-timelines/m-p/1289219#M403341</guid>
      <dc:creator />
      <dc:date>2016-12-20T10:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for duplicate timelines</title>
      <link>https://community.qlik.com/t5/QlikView/Testing-for-duplicate-timelines/m-p/1289220#M403342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heinrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would test this in the load script using previous on in the front end using 'before' or 'above'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a search on here then there should be many threads which should help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 13:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Testing-for-duplicate-timelines/m-p/1289220#M403342</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-20T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for duplicate timelines</title>
      <link>https://community.qlik.com/t5/QlikView/Testing-for-duplicate-timelines/m-p/1289221#M403343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a quick example of previous (wanted to refresh my memory) there might be a neater way of doing this but this flags both rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14822404346268823 jive_text_macro" jivemacro_uid="_14822404346268823"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//load our data into a temp table&lt;/P&gt;
&lt;P&gt;tmp:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;load date(start, 'DD/MM/YYYY hh:mm:ss') as start, date(end, 'DD/MM/YYYY hh:mm:ss') as end;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;start,end&lt;/P&gt;
&lt;P&gt;42724.5457086806,42724.5873753472&lt;/P&gt;
&lt;P&gt;42724.6701157407,42724.7035821017&lt;/P&gt;
&lt;P&gt;42724.7127686295,42724.7223902525&lt;/P&gt;
&lt;P&gt;42724.640089132,42724.6770561259&lt;/P&gt;
&lt;P&gt;42724.7333916693,42724.7651089855&lt;/P&gt;
&lt;P&gt;42724.7751203203,42724.8136669279&lt;/P&gt;
&lt;P&gt;42724.5998508548,42724.6383613843&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate //switch off any concatenation to force new table&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//load this data into a new table, noting the order by so we can use previous&lt;/P&gt;
&lt;P&gt;tmp2:&lt;/P&gt;
&lt;P&gt;LOAD rowno() as line,start,end, if(Previous(end) &amp;gt;= start, 1,0) as overlapflag&lt;/P&gt;
&lt;P&gt;resident tmp order by start asc;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table tmp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;fact:&lt;/P&gt;
&lt;P&gt;//finally flip this into our fact table so we can flag the second of the overlap rows&lt;/P&gt;
&lt;P&gt;load *,if(previous(overlapflag) =1,1,0) as overlapflag2&lt;/P&gt;
&lt;P&gt;resident tmp2&lt;/P&gt;
&lt;P&gt;order by line desc;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table tmp2;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 13:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Testing-for-duplicate-timelines/m-p/1289221#M403343</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-20T13:27:17Z</dc:date>
    </item>
  </channel>
</rss>

