<?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: Working days in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832007#M68635</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142538"&gt;@Fahad&lt;/a&gt;&amp;nbsp; what do you mean by excluding time? Could you share a example with expected output?&lt;/P&gt;</description>
    <pubDate>Sun, 29 Aug 2021 16:31:48 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2021-08-29T16:31:48Z</dc:date>
    <item>
      <title>Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831976#M68620</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Issue where I need to calculate and assign a flag the working days time minus the weekend time to get the exact working days but It's not working&amp;nbsp; I would really appreciate your Input In It.&lt;/P&gt;&lt;P&gt;here Is what I have:&lt;/P&gt;&lt;P&gt;If(num(Today()-StartProjectDate) - num(Today()-StartProjectDate and IsWorkingDay=0) &amp;lt;1,'1',&lt;BR /&gt;If(num(Today()-StartProjectDate) - num(Today()-StartProjectDate and IsWorkingDay=0) &amp;lt;=3,'2',&lt;BR /&gt;If(num(Today()-StartProjectDate) - num(Today()-StartProjectDate and IsWorkingDay=0) &amp;gt;=4,'3','4'))) as NumberOfDaysOpenFlag&lt;/P&gt;&lt;P&gt;IsWorkingDay=0 Is a flag Indicating the weekends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 07:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831976#M68620</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-29T07:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831990#M68626</link>
      <description>&lt;P&gt;You could try to use&amp;nbsp;&lt;SPAN&gt;networkdays() to solve this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;networkdays (StartProjectDate, today()-1) as&amp;nbsp;NumberOfDaysOpenFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;networkdays() automatically exclude weekends from the calculation.&amp;nbsp; It is also possible to add more custom non working days in a third parameter if needed.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 10:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831990#M68626</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-08-29T10:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831992#M68627</link>
      <description>&lt;P&gt;I would think your trying to do (Today() - StartProjectDate - If(IsWorkingDay = 0,1))&lt;/P&gt;&lt;P&gt;Not sure how your dataset is structured.&amp;nbsp; It seems like StartProjectDate is a single record per project and IsWorkingDate is a daily granularity, but that should give the number of IsWorkingDay = 1 from today - startproject.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 10:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831992#M68627</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-29T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831995#M68630</link>
      <description>&lt;P&gt;Thanks For the help All&lt;/P&gt;&lt;P&gt;Mr.Vegar&lt;/P&gt;&lt;P&gt;Some of the projects starts in the weekend so i don't want to exclude the weekend i just want to exclude it's time So dose the Function Only exclude the time and shows the record Thanks And I appreciate your support and waiting for your replay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mr.Steve&amp;nbsp;&lt;/P&gt;&lt;P&gt;am not sure what the output of the Calculation you provided would give but for the date field I have it represent the start of the project as a datetime and I want to count the days the project been opened without counting the weekend time ,Note that some of the projects start in the weekend.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 11:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1831995#M68630</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-29T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832007#M68635</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142538"&gt;@Fahad&lt;/a&gt;&amp;nbsp; what do you mean by excluding time? Could you share a example with expected output?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 16:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832007#M68635</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-08-29T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832045#M68644</link>
      <description>&lt;P&gt;Hey Kushal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example a project start In the weekend&amp;nbsp; and It's been opened for 5 days since the start I don't want It to show 5 days It should be 3 days not counting the weekend, my fear Is If I exclude the weekend the projects that have been opened In the weekend will be excluded as well.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 05:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832045#M68644</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-30T05:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832195#M68668</link>
      <description>&lt;P&gt;I think you missunderstood the networkingdays function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at this script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;SET DateFormat='YYYY-MM-DD';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD *, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;WeekDay(StartProjectDate) as ProjectStartWeekday, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;today()-StartProjectDate as DaysSinceProjectStart, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NetWorkDays(StartProjectDate, today()-1) as NumberOfDaysOpenFlag &lt;FONT color="#008000"&gt;//Is this what you are trying to do?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; ProjectName, StartProjectDate, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Alfa, 2021-08-24&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Bravo,2021-08-25&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Charlie, 2021-08-26&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Delta, 2021-08-27&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Echo, 2021-08-28&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Foxtrot, 2021-08-29&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Golf, 2021-08-30&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;It will be able to give you this output data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 840px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60963i6FC32CB4AFDC58AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 14:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832195#M68668</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-08-30T14:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Working days</title>
      <link>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832391#M68689</link>
      <description>&lt;P&gt;Yes Thank you very Much for your support&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Working-days/m-p/1832391#M68689</guid>
      <dc:creator>Fahad</dc:creator>
      <dc:date>2021-08-31T07:29:14Z</dc:date>
    </item>
  </channel>
</rss>

