<?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 Re: Calculate Time Interval Between Two Dates On Business Days For Business Hours Only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434542#M564085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Khaled,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do something similar ... have you been successful on this topic?&lt;/P&gt;&lt;P&gt;I would really appreciate, if you could share your approach!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Sep 2013 16:59:30 GMT</pubDate>
    <dc:creator>pennetzdorfer</dc:creator>
    <dc:date>2013-09-08T16:59:30Z</dc:date>
    <item>
      <title>Calculate Time Interval Between Two Dates On Business Days For Business Hours Only</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434539#M564082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dates (close date and open date). I need to calculate the interval between these two and visualize it on a bar chart or maybe, even a table chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REQUIREMENT: &lt;/STRONG&gt;Calculate Time Interval Between Close Date and Open Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VISUALIZATION:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bar Chart showing average time taken to resolve a ticket (i.e., close_date - open_date) in %&amp;nbsp; against a cyclic dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONSIDERATIONS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Calculated time interval should exclude weekends (Thu, Fri) in this case&lt;/P&gt;&lt;P&gt;2. Calculated time interval should exclude non-business hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Valid business hours are 7 AM to 5 PM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, it would be great if I could also exclude the tea/lunch break duration from the business hours of a working day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found some posts on the community that almost solve this, but I could use some assistance to get this right, esp the valid business hours and weekends (Thu, Fri). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find the Sample document attached.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&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;-Khaled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 21:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434539#M564082</guid>
      <dc:creator />
      <dc:date>2013-02-13T21:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Time Interval Between Two Dates On Business Days For Business Hours Only</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434540#M564083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;If you only need data from saturday to wednesday and from 7am to 5pm... just exclude them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;If you still need this data for other chart, add a flag for tickets that occurs during the good period of time. Then you will do your calculation using set analysis like {&amp;lt; flag_valide_ticket={1} &amp;gt;} That's it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 22:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434540#M564083</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-02-13T22:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Time Interval Between Two Dates On Business Days For Business Hours Only</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434541#M564084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vivien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I will need the data for weekends to use in other charts. &lt;/P&gt;&lt;P&gt;I have figured out most of the part (many thanks to the Community). &lt;/P&gt;&lt;P&gt;I am still hoping experts could help me with the sample I attached.&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;-Khaled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 15:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434541#M564084</guid>
      <dc:creator />
      <dc:date>2013-02-14T15:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Time Interval Between Two Dates On Business Days For Business Hours Only</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434542#M564085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Khaled,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do something similar ... have you been successful on this topic?&lt;/P&gt;&lt;P&gt;I would really appreciate, if you could share your approach!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 16:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434542#M564085</guid>
      <dc:creator>pennetzdorfer</dc:creator>
      <dc:date>2013-09-08T16:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Time Interval Between Two Dates On Business Days For Business Hours Only</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434543#M564086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look into one of the suggested approaches &lt;A _jive_internal="true" href="https://community.qlik.com/thread/60227"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 21:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434543#M564086</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-08T21:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Time Interval Between Two Dates On Business Days For Business Hours Only</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434544#M564087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Stefan - that really helps a lot!&lt;/P&gt;&lt;P&gt;At the moment I'm trying to add an additional challenge: there should be different working hours on &lt;EM&gt;&lt;STRONG&gt;Fridays&lt;/STRONG&gt;&lt;/EM&gt; (8 am to 1 pm). Have you ever done anything like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 08:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Time-Interval-Between-Two-Dates-On-Business-Days-For/m-p/434544#M564087</guid>
      <dc:creator>pennetzdorfer</dc:creator>
      <dc:date>2013-09-09T08:52:15Z</dc:date>
    </item>
  </channel>
</rss>

