<?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 Date Time  difference in hours excluding the weekends in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-Time-difference-in-hours-excluding-the-weekends/m-p/1741070#M56741</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to calculate the Date &amp;amp; time difference in hours excluding the weekends. i have a below expression, which provides time difference in hours. But i need to exclude the weekends as well in this.&lt;/P&gt;&lt;P&gt;interval(timestamp2 - timestamp1,'hh')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;looking for any suggestion.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:09:21 GMT</pubDate>
    <dc:creator>Deepak87</dc:creator>
    <dc:date>2024-11-16T18:09:21Z</dc:date>
    <item>
      <title>Date Time  difference in hours excluding the weekends</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Time-difference-in-hours-excluding-the-weekends/m-p/1741070#M56741</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to calculate the Date &amp;amp; time difference in hours excluding the weekends. i have a below expression, which provides time difference in hours. But i need to exclude the weekends as well in this.&lt;/P&gt;&lt;P&gt;interval(timestamp2 - timestamp1,'hh')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;looking for any suggestion.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Time-difference-in-hours-excluding-the-weekends/m-p/1741070#M56741</guid>
      <dc:creator>Deepak87</dc:creator>
      <dc:date>2024-11-16T18:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time  difference in hours excluding the weekends</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Time-difference-in-hours-excluding-the-weekends/m-p/1741116#M56748</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;considering 2 variables:&lt;/P&gt;&lt;P&gt;v1 =&amp;nbsp;2020-08-21 20:00:00 (older timestamp)&lt;/P&gt;&lt;P&gt;v2 =&amp;nbsp;2020-08-24 21:00:00 (newer timestamp)&lt;/P&gt;&lt;P&gt;This expression will use the NetWorkDays function to get the working days (excluding weekends), and the second part will calculate the difference on the time part:&lt;/P&gt;&lt;P&gt;=interval((NetWorkDays('$(v1)', '$(v2)') - 1) + (frac('$(v2)') - frac('$(v1)')),'hh')&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 20:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Time-difference-in-hours-excluding-the-weekends/m-p/1741116#M56748</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-09-03T20:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time  difference in hours excluding the weekends</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Time-difference-in-hours-excluding-the-weekends/m-p/1741582#M56780</link>
      <description>&lt;P&gt;Hi Fosuzuki,&lt;BR /&gt;&lt;BR /&gt;I think your solution works when v2 is greater than v1 variable. But in my case, some times, v1 is greater than v2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak K M&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 08:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Time-difference-in-hours-excluding-the-weekends/m-p/1741582#M56780</guid>
      <dc:creator>Deepak87</dc:creator>
      <dc:date>2020-09-07T08:33:35Z</dc:date>
    </item>
  </channel>
</rss>

