<?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 Difference Timestamp on Networkdays and between fixed hours of operation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144194#M505821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many records you would have in the "Table"?&lt;/P&gt;&lt;P&gt;Would it be acceptable to loop on the Table records and performing the calculations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 22:08:38 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2009-05-14T22:08:38Z</dc:date>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144193#M505820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Problemdescription:&lt;BR /&gt;I want to calculate the difference between 2 timestamps under consideration that the difference should be only calculated on:&lt;BR /&gt;- Networkdays&lt;BR /&gt;- between fixed hours of operation&lt;BR /&gt;&lt;BR /&gt;Hours of operation:&lt;BR /&gt;Type A: 07:00 - 18:00&lt;BR /&gt;Type B: 06:00 - 22:00&lt;/P&gt;&lt;P&gt;Please use the attached .qvw file for suggestions for a solution. I hope somebody could help me. Thanks.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 21:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144193#M505820</guid>
      <dc:creator />
      <dc:date>2009-05-14T21:02:15Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144194#M505821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many records you would have in the "Table"?&lt;/P&gt;&lt;P&gt;Would it be acceptable to loop on the Table records and performing the calculations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 22:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144194#M505821</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-05-14T22:08:38Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144195#M505822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are about 2000 rows in my real application.&lt;/P&gt;&lt;P&gt;I don't know how long this takes for calculating, I am very new to QlikView, but I think if it is possible everything should be done in the skript ==&amp;gt; creating a field where the difference is inside.&lt;/P&gt;&lt;P&gt;But I have no idea how I can solve this. My .qvw file is the the question thread.&lt;/P&gt;&lt;P&gt;Thanks for helping me.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 22:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144195#M505822</guid>
      <dc:creator />
      <dc:date>2009-05-14T22:21:41Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144196#M505823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be easy to calculate in your script. Try using the if statements, and date time functions.&lt;/P&gt;&lt;P&gt;Logic is simple:&lt;/P&gt;&lt;P&gt;total Time= Time on StartDate + Time on EndDate + NumberofHours*NetWorkingDays in between&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time on StartDate = rangemax(OfficeEndTime - startTime ,0) if StartDate is workingDay otherwise 0&lt;/P&gt;&lt;P&gt;Time on EndDate =rangemax( endTime-OfficeStartTime, 0) If EndDate is workingDay otherwise 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 23:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144196#M505823</guid>
      <dc:creator />
      <dc:date>2009-05-14T23:22:27Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144197#M505824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go. Something quick and dirty. You would get the idea.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 23:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144197#M505824</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-05-14T23:24:49Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144198#M505825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both solutions from Verma and Rakesh, I have tried the one from Rakesh, and on the first look it works fine and correct. But I must go through the skript to understand it is a little bit complex.&lt;/P&gt;&lt;P&gt;I will also try the solution from Verma and report here later than.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 23:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144198#M505825</guid>
      <dc:creator />
      <dc:date>2009-05-14T23:42:28Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144199#M505826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the one I was talking about. An Application without using any loops and still giving you the results that you want. Let me know how you find it.&lt;/P&gt;&lt;P&gt;Using loops for this problem is not the best way.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vidyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 22:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144199#M505826</guid>
      <dc:creator />
      <dc:date>2009-05-18T22:55:03Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144200#M505827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for giving me the solution of your idea, I was not able to implement it correctly. I tested it and it works fine, and I think it is better than using loops, because when the difference between 2 dates it to big, that the skript execution takes more time. Thanks for the 2 solutions.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 14:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144200#M505827</guid>
      <dc:creator />
      <dc:date>2009-05-19T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Difference Timestamp on Networkdays and between fixed hours of operation</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144201#M505828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need the help of the community for my problem described above. I got 2 solutions the one from Rakesh with loops, but it gets very slow when the data gets bigger and the date difference between the timestamps are also very big.&lt;/P&gt;&lt;P&gt;So I used now the solution von Verma, it is fast but is not working correct in any situation. It works fine if start date and enddate are different dates, but you get false results if the startdate is the same as the enddate, than the solution does not work anymore.&lt;/P&gt;&lt;P&gt;For example 16.04.2009 15:00 until 18.04.2009 20:00 ==&amp;gt; difference is OK,&lt;/P&gt;&lt;P&gt;14.09.2009 09:06 until 14.09.2009 09:16 ==&amp;gt; difference is false,&lt;/P&gt;&lt;P&gt;I attached a sample .qvw for the solution from Verma, maybe somebody could help me to get it working correctly also if the startdate is the same date as the enddate. Or somebody could give me another solution.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 15:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-Timestamp-on-Networkdays-and-between-fixed-hours-of/m-p/144201#M505828</guid>
      <dc:creator />
      <dc:date>2009-09-16T15:43:35Z</dc:date>
    </item>
  </channel>
</rss>

