<?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 Calculation Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669753#M668954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing Calculation of Numbers based on Logic.&lt;/P&gt;&lt;P&gt;The &lt;STRONG style="font-size: 12pt;"&gt;Correct&lt;/STRONG&gt; Calculation are &lt;STRONG style="font-size: 12pt;"&gt;Green&lt;/STRONG&gt; in Color and&lt;STRONG style="font-size: 12pt;"&gt; Wrong&lt;/STRONG&gt; Calculation is &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Red&lt;/STRONG&gt;&lt;/SPAN&gt; in Color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculation&lt;STRONG style="font-size: 12pt;"&gt; Time Difference&lt;/STRONG&gt; between &lt;STRONG style="font-size: 12pt;"&gt;CreationTime&lt;/STRONG&gt; &amp;amp; &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;OutTime &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;based on:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;1. The &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG style="font-size: 12pt;"&gt;Creation Time &amp;amp; End Time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; should be considered between &lt;STRONG style="font-size: 12pt;"&gt;StartTime &amp;amp; EndTime.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;2. Eg. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;1268170, 1274294, 1300082, 1435122 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; - Consider only &lt;STRONG&gt;Mon-Fri&lt;/STRONG&gt; and exclude &lt;STRONG&gt;Saturday &amp;amp; Sunday.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented logic of Weekdays in the Logic.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="Script_1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69375_Script_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kindly, see the Attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Av7eN&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 10:19:43 GMT</pubDate>
    <dc:creator>aveeeeeee7en</dc:creator>
    <dc:date>2014-10-21T10:19:43Z</dc:date>
    <item>
      <title>Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669753#M668954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing Calculation of Numbers based on Logic.&lt;/P&gt;&lt;P&gt;The &lt;STRONG style="font-size: 12pt;"&gt;Correct&lt;/STRONG&gt; Calculation are &lt;STRONG style="font-size: 12pt;"&gt;Green&lt;/STRONG&gt; in Color and&lt;STRONG style="font-size: 12pt;"&gt; Wrong&lt;/STRONG&gt; Calculation is &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Red&lt;/STRONG&gt;&lt;/SPAN&gt; in Color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculation&lt;STRONG style="font-size: 12pt;"&gt; Time Difference&lt;/STRONG&gt; between &lt;STRONG style="font-size: 12pt;"&gt;CreationTime&lt;/STRONG&gt; &amp;amp; &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;OutTime &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;based on:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;1. The &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG style="font-size: 12pt;"&gt;Creation Time &amp;amp; End Time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; should be considered between &lt;STRONG style="font-size: 12pt;"&gt;StartTime &amp;amp; EndTime.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt;2. Eg. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;1268170, 1274294, 1300082, 1435122 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN&gt; - Consider only &lt;STRONG&gt;Mon-Fri&lt;/STRONG&gt; and exclude &lt;STRONG&gt;Saturday &amp;amp; Sunday.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented logic of Weekdays in the Logic.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="Script_1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69375_Script_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kindly, see the Attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Av7eN&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 10:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669753#M668954</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-10-21T10:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669754#M668955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join(Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;BR /&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekdays,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weekday(weekdays) as Weeknumb&lt;/P&gt;&lt;P&gt;resident Table1 where Match(weekdays,'Mon','Tue','Wed','Thu','Fri');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 12:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669754#M668955</guid>
      <dc:creator />
      <dc:date>2014-10-21T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669755#M668956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes when you are trying to solve something and understand the problem is difficult to explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, give me the exact procedure of how get 38:18 in your qvw and the other red codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 12:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669755#M668956</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2014-10-21T12:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669756#M668957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am explaining 2 scenarios how the Calculation is done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Case No.1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG __jive_id="69436" alt="WRONG dURATION.png" class="jive-image" src="/legacyfs/online/69436_WRONG dURATION.png" style="width: 620px; height: 42px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Creation Time&lt;/STRONG&gt;&lt;/SPAN&gt; is&amp;nbsp; 25/3/2014 1:11:24 PM&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;OutTime&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is&amp;nbsp;&amp;nbsp; 31/3/2014 7:40:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Reload Attached qvd DataMainData&lt;/STRONG&gt;&lt;/SPAN&gt;, than you'll see its Working weekdays are different for individual Numbers.&lt;/P&gt;&lt;P&gt;For some of the cases Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Fri&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; For some of the cases Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Sat&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;It's Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Fri&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, calculate difference b/w OutTime &amp;amp; CreationTime by considering Start Time &amp;amp; End Time i.e. different individual Numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25 = 4:18:36 hrs ( Hours b/w 9:00 to 17:30)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(17:30 - 1:11:24 = 4:18:36)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;26 = 8:30 hrs&amp;nbsp; ( Hours b/w 9:00 to 17:30)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(17:30 - 9:00= 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;27 = 8:30 hrs&amp;nbsp; ( Hours b/w 9:00 to 17:30)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(17:30 - 9:00= 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;28 = 8:30 hrs&amp;nbsp; ( Hours b/w 9:00 to 17:30)&amp;nbsp; &lt;STRONG&gt;Calculation=(17:30 - 9:00= 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;29 = 0 hrs&amp;nbsp;&amp;nbsp; ( Saturdayto be excluded since Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Fri&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;30 = 0 hrs&amp;nbsp; ( Sunday to be excluded since Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Fri&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;31 = 8:30 hrs&amp;nbsp; ( Hours b/w 9:00 to 17:30)&amp;nbsp; &lt;STRONG&gt; Calculation=(17:30 - 9:00= 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum of All = &lt;STRONG&gt;4:18:36 hrs + 8:30 hrs + 8:30 hrs + 8:30 hrs + 8:30 hrs = 38:18:36 hrs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;Case No.2:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="69444" alt="Right Duration.png" class="jive-image" src="/legacyfs/online/69444_Right Duration.png" style="width: 620px; height: 42px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Creation Time&lt;/STRONG&gt;&lt;/SPAN&gt; is&amp;nbsp; 30/3/2014 11:46:39 AM&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;OutTime&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is&amp;nbsp;&amp;nbsp; 5/4/2014 5:00:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Reload Attached qvd DataMainData&lt;/STRONG&gt;&lt;/SPAN&gt;, than you'll see its Working weekdays are different for individual Numbers.&lt;/P&gt;&lt;P&gt;For some of the cases Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Fri&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; For some of the cases Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Sat&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;It's Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Sat&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, calculate difference b/w OutTime &amp;amp; CreationTime by considering Start Time &amp;amp; End Time i.e. different individual Numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;30 = 0 hrs&amp;nbsp; ( Sunday to be excluded since Working Weekdays are &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Mon - Sat&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;31 = 8:30 hrs ( Hours b/w 9:30 to 18:00)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(18:00 - 9:30 = 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; = 8:30 hrs ( Hours b/w 9:30 to 18:00)&amp;nbsp; &lt;STRONG&gt;Calculation=(18:00 - 9:30 = 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; = 8:30 hrs ( Hours b/w 9:30 to 18:00)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(18:00 - 9:30 = 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; = 8:30 hrs ( Hours b/w 9:30 to 18:00)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(18:00 - 9:30 = 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4 = 8:30 hrs ( Hours b/w 9:30 to 18:00)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(18:00 - 9:30 = 8:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5&amp;nbsp; = 7:30 hrs ( Hours b/w 9:30 to 18:00)&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Calculation=(5:00 - 9:30 = 7:30:00)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum of All = &lt;STRONG&gt;8:30 hrs+ 8:30 hrs + 8:30 hrs + 8:30 hrs + 8:30 hrs + 7:30 hrs = 50:00:00 hrs&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 05:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669756#M668957</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-10-22T05:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669757#M668958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Suggestions?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669757#M668958</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-10-22T09:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669758#M668959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you calculate as follows in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Days between multiply by the difference of outitme - intime (use the function networkdays)&lt;/P&gt;&lt;P&gt;2. Firstdate - dayend&lt;/P&gt;&lt;P&gt;3. Lastdate - dayend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum all, as you describe in your example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later i can sent you an example with small data, but now i am very busy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 13:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669758#M668959</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2014-10-22T13:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669759#M668960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do like this for exact calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Calculate seconds&amp;nbsp; b/n 9.30 AM to 6PM&amp;nbsp; --&amp;gt; 30600&lt;/P&gt;&lt;P&gt;2. Calculate Network days b/n Start Time &amp;amp; End Time &amp;amp; Multiply with working seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NetWorkDays( Floor(StartTime) , Floor(EndTime) ) * 30600&lt;/P&gt;&lt;P&gt;3. Then calculate the First day &amp;amp; last day seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669759#M668960</guid>
      <dc:creator />
      <dc:date>2014-10-22T15:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669760#M668961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see your data again, check total number of working hours with the flag "END".&amp;nbsp; In this case you need to calculate this end hours asking if the OutTime &amp;gt; OUTTIME, because this time for the case is out of the end time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct that and check again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669760#M668961</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2014-10-22T15:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669761#M668962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again... Cerate 3 columns. I correct the values for you.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Start:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Process Flag]={'START'}&amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Timestamp(CreationTime)&amp;gt;Timestamp(Floor(CreationTime)+Time(EndTime)),0,Timestamp(Floor(CreationTime)+Time(EndTime))-Timestamp(CreationTime)))*24*60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Other:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Process Flag]={'OTHER'}&amp;gt;}[Total Number of Working Hours])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;End:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Process Flag]={'END'}&amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Timestamp(OutTime)&amp;gt;Timestamp(Floor(OutTime)+EndTime),Timestamp(Floor(OutTime)+EndTime),Timestamp(OutTime))-Timestamp(Floor(OutTime)+StartTime))*60*24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Duration:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Interval((([Start] + [Other] + [End]))/24/60, 'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 16:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669761#M668962</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2014-10-22T16:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669762#M668963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Juan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Logic and suggestion worked like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You very much no.of times. You Made my Day.........................&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 18:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669762#M668963</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-10-27T18:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculation Error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669763#M668964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 case is causing problem.&lt;/P&gt;&lt;P&gt;Could be please suggest what's going wrong???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Attached Qvw, Red Colored Case is causing problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 04:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Error/m-p/669763#M668964</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-10-29T04:30:11Z</dc:date>
    </item>
  </channel>
</rss>

