<?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 Interval Hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160582#M889732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What filters used for Appears: 2491: 05?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 21:26:50 GMT</pubDate>
    <dc:creator>othniel2014</dc:creator>
    <dc:date>2016-08-23T21:26:50Z</dc:date>
    <item>
      <title>Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160571#M889716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding the time interval calculation in QlikView. I am using the following expression:&lt;/P&gt;&lt;P&gt;"Interval (sum ([hours worked]) - sum ([Total Business Hours]), 'hh: mm')" whose purpose is to calculate the balance of hours (bank of hours) of my company. However, if the balance exceeds 24:00, the value will be incorrect. If I have, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Business Hours: 2659:05&lt;/P&gt;&lt;P&gt;Hours worked: 2856:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My balance of hours would be: 196:55&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my qvw appears: 2491:05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160571#M889716</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160572#M889718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression looks fine for me. Can you share a sample app to look further if possible ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 20:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160572#M889718</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-23T20:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160573#M889720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="135343" alt="Capture_Interval.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135343_Capture_Interval.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;works for me...&lt;/P&gt;&lt;P&gt;attach an application for extra help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;Edit:&lt;/SPAN&gt; within the pivot table works this otherwise&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time#(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Interval(sum(HoursWorked)-sum(BusinessHours), 'h: mm : ss')&lt;/P&gt;&lt;P&gt;,'h: mm : ss'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 20:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160573#M889720</guid>
      <dc:creator>othniel2014</dc:creator>
      <dc:date>2016-08-23T20:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160574#M889722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The image bellow show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carga Horária: Interval(Sum([Horas Úteis - Total Horas])*count([Funcionário - Nome]),'HH:mm')&lt;/P&gt;&lt;P&gt;Horas Trabalhadas: Interval(sum([Ponto - Horas Trabalhadas]),'HH:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saldo de Horas: Interval(sum([Ponto - Horas Trabalhadas])-sum([Horas Úteis - Total Horas]), 'hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Balance of Hours.PNG" class="jive-image image-1" src="/legacyfs/online/135331_Balance of Hours.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You can see that if subtract "Carga Horária" to "Horas Trabalhadas", the difference is:&amp;nbsp;&amp;nbsp; 196:55. But, shows 2491:05 in "Saldo de Horas".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 20:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160574#M889722</guid>
      <dc:creator />
      <dc:date>2016-08-23T20:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160575#M889724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fine Othniel Coronado,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you put some values and use sum function the problem happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 20:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160575#M889724</guid>
      <dc:creator />
      <dc:date>2016-08-23T20:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160576#M889726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share a sample app in order to help you better.&lt;/P&gt;&lt;P&gt;Tried you expression in various scenarios and it worked perfectly, with and without the sum and changing the values order.&lt;/P&gt;&lt;P&gt;Maybe there's something with your field format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160576#M889726</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-08-23T21:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160577#M889727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this and let me know:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Saldo de Horas: = Interval( [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Horas Trabalhadas] &lt;/SPAN&gt;- [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Carga Horária&lt;/SPAN&gt;]), 'hh:mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160577#M889727</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-23T21:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160578#M889728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Carga Horária: Interval(Sum([Horas Úteis&lt;SPAN style="color: #ff0000;"&gt;]&lt;/SPAN&gt; - &lt;SPAN style="color: #ff0000;"&gt;[&lt;/SPAN&gt;Total Horas])*count([Funcionário&lt;SPAN style="color: #ff0000;"&gt;]&lt;/SPAN&gt; - &lt;SPAN style="color: #ff0000;"&gt;[&lt;/SPAN&gt;Nome]),'HH:mm')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Horas Trabalhadas: Interval(sum([Ponto&lt;SPAN style="color: #ff0000;"&gt;]&lt;/SPAN&gt; - &lt;SPAN style="color: #ff0000;"&gt;[&lt;/SPAN&gt;Horas Trabalhadas]),'HH:mm')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try to add this to your field names. We do not know how your field names are named. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160578#M889728</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-23T21:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160579#M889729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realized an important information. If I select just one professional the balance of hours it's right! But if I select more then one or all of professionals the balance of hours the problem happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160579#M889729</guid>
      <dc:creator />
      <dc:date>2016-08-23T21:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160580#M889730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vish Nagaraju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right name of the fields is "Horas Úteis - Total Horas", "Funcionário - Nome", "Ponto - Horas Trabalhadas" so I can't put "[" as you said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160580#M889730</guid>
      <dc:creator />
      <dc:date>2016-08-23T21:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160581#M889731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Not works!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160581#M889731</guid>
      <dc:creator />
      <dc:date>2016-08-23T21:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160582#M889732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What filters used for Appears: 2491: 05?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160582#M889732</guid>
      <dc:creator>othniel2014</dc:creator>
      <dc:date>2016-08-23T21:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160583#M889733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/151890"&gt;othniel2014&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You put a answer bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(&lt;/P&gt;&lt;P&gt;Interval(Sum([Horas Úteis - Total Horas])*count([Funcionário - Nome]),'HH:mm')&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Interval(sum([Ponto - Horas Trabalhadas]),'HH:mm')&lt;/P&gt;&lt;P&gt;,'hh:mm')&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;This answer solved the problem. But I couldn't see anymore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160583#M889733</guid>
      <dc:creator />
      <dc:date>2016-08-23T21:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Interval Hours</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160584#M889734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Interval(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Interval(Sum([Horas Úteis - Total Horas])*count([Funcionário - Nome]),'HH:mm')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Interval(sum([Ponto - Horas Trabalhadas]),'HH:mm')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Interval-Hours/m-p/1160584#M889734</guid>
      <dc:creator>othniel2014</dc:creator>
      <dc:date>2016-08-23T21:42:32Z</dc:date>
    </item>
  </channel>
</rss>

