<?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: Exclude Weekends from Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889749#M1217237</link>
    <description>&lt;P&gt;Actually discussed with the end user and they agreed straight days only would be sufficient for the needs. Thanks!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 13:37:19 GMT</pubDate>
    <dc:creator>JustinRamsey</dc:creator>
    <dc:date>2022-02-07T13:37:19Z</dc:date>
    <item>
      <title>Exclude Weekends from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889373#M1217214</link>
      <description>&lt;P&gt;I am in need of assistance writing a formula to give me the time between two time stamps excluding weekends. See image for the data. I want the end result to be as in the chart with days and the decimal not strictly the number of days as it is below just excluding the weekends. Networkdays wont work with the set analysis and using time. Formulas for columns&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Picking =SUM({&amp;lt;%KEY_ARBPL={2001}&amp;gt;}Date_Time)&lt;/P&gt;
&lt;P&gt;RGA=&amp;nbsp;SUM({&amp;lt;%KEY_ARBPL={2000}&amp;gt;}Date_Time)&lt;/P&gt;
&lt;P&gt;Difference = Column(2)-Column(1)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinRamsey_1-1644006317174.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71653i3BDE568513917C79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinRamsey_1-1644006317174.png" alt="JustinRamsey_1-1644006317174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 20:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889373#M1217214</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2022-02-04T20:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889524#M1217221</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64434"&gt;@JustinRamsey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try this:&lt;/P&gt;
&lt;P&gt;Difference = &lt;STRONG&gt;NetWorkDays(Column(1),Column(2))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 15:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889524#M1217221</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2022-02-06T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889549#M1217223</link>
      <description>&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>Sun, 06 Feb 2022 22:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889549#M1217223</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2022-02-06T22:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889707#M1217233</link>
      <description>&lt;P&gt;This formula works to get the total days but only gives the whole number of days. Would like to see the number of days and a decimal for the amount of hours.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 12:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889707#M1217233</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2022-02-07T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889713#M1217234</link>
      <description>&lt;P&gt;I cannot get this to give results. I am not sure if I am defining the variables wrong or not. Also attempted to use just the columns instead of variables to no avail. Variable definitions below. I will admit I have not used variables much so I may be going about that portion incorrectly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinRamsey_0-1644236222196.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71705iE8AF8728FEB81D82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinRamsey_0-1644236222196.png" alt="JustinRamsey_0-1644236222196.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 12:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889713#M1217234</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2022-02-07T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889749#M1217237</link>
      <description>&lt;P&gt;Actually discussed with the end user and they agreed straight days only would be sufficient for the needs. Thanks!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/1889749#M1217237</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2022-02-07T13:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Weekends from Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/2482232#M1226113</link>
      <description>&lt;P&gt;I have used the same formula, However, it is giving incorrect results when the start date and end date are falling on weekends. Any suggestions ??&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 10:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Weekends-from-Calculation/m-p/2482232#M1226113</guid>
      <dc:creator>Krishn1</dc:creator>
      <dc:date>2024-09-18T10:31:27Z</dc:date>
    </item>
  </channel>
</rss>

