<?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 Determining if there is a Sat/Sun between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544742#M457130</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to determine whether a Saturday or Sunday can be found between any two datetimes. I have a table with two datetime fields and I have determined the interval between the dates but I would like to ignore Saturdays and Sundays when calculating the interval. Networkdays() isn't accurate enough, I've tried that. If my first datetime is Friday 15th Feb at 1pm and my second datetime is Monday 18th Feb at 1pm, networkdays() returns 2 whole days, when I am looking for an exact interval in days, hours, minutes.&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 06:51:47 GMT</pubDate>
    <dc:creator>Jason1</dc:creator>
    <dc:date>2019-02-15T06:51:47Z</dc:date>
    <item>
      <title>Determining if there is a Sat/Sun between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544742#M457130</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to determine whether a Saturday or Sunday can be found between any two datetimes. I have a table with two datetime fields and I have determined the interval between the dates but I would like to ignore Saturdays and Sundays when calculating the interval. Networkdays() isn't accurate enough, I've tried that. If my first datetime is Friday 15th Feb at 1pm and my second datetime is Monday 18th Feb at 1pm, networkdays() returns 2 whole days, when I am looking for an exact interval in days, hours, minutes.&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 06:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544742#M457130</guid>
      <dc:creator>Jason1</dc:creator>
      <dc:date>2019-02-15T06:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Determining if there is a Sat/Sun between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544753#M457131</link>
      <description>A solution to your issue is to split up your transactions into days. Your example transaction, Friday 15th Feb at 1pm to Monday 18th Feb at 1pm, would split into rows like this:&lt;BR /&gt;Friday 15th; 11h&lt;BR /&gt;Saturday 16th; 24h&lt;BR /&gt;Sunday 17th; 24h&lt;BR /&gt;Monday 18th; 13h&lt;BR /&gt;&lt;BR /&gt;The benefit is that you will have better control, but you will have to multiply your transaction amount any count transactions expressions will need to be adjusted.&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544753#M457131</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-02-15T07:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Determining if there is a Sat/Sun between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544755#M457132</link>
      <description>&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;Check this, could be helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Calculate-hours-between-two-Date-Time-strings/td-p/380745" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Calculate-hours-between-two-Date-Time-strings/td-p/380745&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You have to define the holidays separately if needed.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544755#M457132</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2019-02-15T07:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Determining if there is a Sat/Sun between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544769#M457133</link>
      <description>You could calculate the number of saturdays and sundays with this:&lt;BR /&gt;Floor(EndData)-Floor(StartDate)+1-NetWorkdays(StartDate, EndDate)&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544769#M457133</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-02-15T07:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Determining if there is a Sat/Sun between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544829#M457134</link>
      <description>&lt;P&gt;I believe that&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;&amp;nbsp;solution will work as long as your start time nor end time is on a Saturday or Sunday.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 09:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544829#M457134</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-02-15T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Determining if there is a Sat/Sun between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544894#M457135</link>
      <description>&lt;P&gt;Thanks for the input everyone, I've marked what worked. Nice and simple, I should have thought of that logic in the first place.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 11:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-if-there-is-a-Sat-Sun-between-two-dates/m-p/1544894#M457135</guid>
      <dc:creator>Jason1</dc:creator>
      <dc:date>2019-02-15T11:42:13Z</dc:date>
    </item>
  </channel>
</rss>

