<?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: Interval time to remove Weekend days with networkdays in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815451#M1212985</link>
    <description>&lt;P&gt;Can you share sample of your qvw please&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 10:47:35 GMT</pubDate>
    <dc:creator>yassinemhadhbi</dc:creator>
    <dc:date>2021-06-16T10:47:35Z</dc:date>
    <item>
      <title>Interval time to remove Weekend days with networkdays</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815365#M1212974</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blurrblurr_0-1623816374399.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56865i5C4078CDEBFB91DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blurrblurr_0-1623816374399.png" alt="blurrblurr_0-1623816374399.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have these 2 dates 04 Jun 2021 is a Friday while 05 Jun 2021 is a Sat&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;EM&gt;Interval(DATE_END - DATE_START,'DD hh:mm:ss' )&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blurrblurr_1-1623816554018.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56866i48382D1CA5C519FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blurrblurr_1-1623816554018.png" alt="blurrblurr_1-1623816554018.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get the time difference 06:16:15&lt;/P&gt;&lt;P&gt;But I need to remove the Weekend time starting from 05 Jun 2021 00:00:00 so the expected result is&amp;nbsp;&lt;/P&gt;&lt;P&gt;the difference between 04 Jun 23:47:35 to 05 Jun 00:00:00&lt;/P&gt;&lt;P&gt;I search the entire community chat and tried the script below as I think is more suitable.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Interval(DATE_END - DATE_START,'DD hh:mm:ss' )&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;- NetWorkDays(DATE_START,DATE_END )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blurrblurr_2-1623816805413.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56867i50EBECCC4A8D31FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blurrblurr_2-1623816805413.png" alt="blurrblurr_2-1623816805413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But it gave me a negative value. I tried many ways to but I am not getting anything close.&lt;/P&gt;&lt;P&gt;is there any solution for is?&lt;/P&gt;&lt;P&gt;Expected result shall be formatted to DD hh:mm:ss&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 04:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815365#M1212974</guid>
      <dc:creator>blurrblurr</dc:creator>
      <dc:date>2021-06-16T04:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Interval time to remove Weekend days with networkdays</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815398#M1212980</link>
      <description>&lt;P&gt;Good morning&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Recomend that you put a condition , if end date is sat then 05/06/2021 00:00:00&lt;/P&gt;&lt;P&gt;If(num(weekday(DateEnd))=5,date(DateEnd,'DD/MM/YYYY 00:00:00'),DateEnd)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 08:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815398#M1212980</guid>
      <dc:creator>yassinemhadhbi</dc:creator>
      <dc:date>2021-06-16T08:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interval time to remove Weekend days with networkdays</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815445#M1212984</link>
      <description>&lt;P&gt;But how shall I use it?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815445#M1212984</guid>
      <dc:creator>blurrblurr</dc:creator>
      <dc:date>2021-06-16T10:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Interval time to remove Weekend days with networkdays</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815451#M1212985</link>
      <description>&lt;P&gt;Can you share sample of your qvw please&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815451#M1212985</guid>
      <dc:creator>yassinemhadhbi</dc:creator>
      <dc:date>2021-06-16T10:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Interval time to remove Weekend days with networkdays</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815454#M1212986</link>
      <description>&lt;P&gt;I only have access to data load editor and it look something like this&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;DATE_START,&lt;BR /&gt;DATE_END&lt;BR /&gt;FROM [lib://WorkingENV/TEST/DATA.qvd]&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815454#M1212986</guid>
      <dc:creator>blurrblurr</dc:creator>
      <dc:date>2021-06-16T10:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Interval time to remove Weekend days with networkdays</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815460#M1212987</link>
      <description>&lt;P&gt;LOAD&lt;BR /&gt;DATE_START,&lt;BR /&gt;If(NUM(WEEKDAY(DATEEND))=5,date(DATEND,'DD/MM/YYYY 00:00:00'),DATEND)&lt;BR /&gt;FROM [lib://WorkingENV/TEST/DATA.qvd]&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 11:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815460#M1212987</guid>
      <dc:creator>yassinemhadhbi</dc:creator>
      <dc:date>2021-06-16T11:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interval time to remove Weekend days with networkdays</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815574#M1212990</link>
      <description>&lt;P&gt;I tried, but I have another scenario that I need to remove start date and time on Weekend. so I use another conditon for start weekend?&lt;/P&gt;&lt;P&gt;is there a simpler solution like I convert networkdays to DD HHMMSS?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 16:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-time-to-remove-Weekend-days-with-networkdays/m-p/1815574#M1212990</guid>
      <dc:creator>blurrblurr</dc:creator>
      <dc:date>2021-06-16T16:34:02Z</dc:date>
    </item>
  </channel>
</rss>

