<?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 Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151941#M902815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try below script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempOffDays:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OFF_DT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthYear(&lt;SPAN style="font-size: 13.3333px;"&gt;OFF_DT) AS MonthYear_Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(OFF_DT &amp;gt; Today(),0,1) AS CurrentDaysFlag&lt;/P&gt;&lt;P&gt;FROM Stage1_ZCALENDER.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OffDays:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;MonthYear_Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(&lt;SPAN style="font-size: 13.3333px;"&gt;OFF_DT) as TotalOffDays,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;CurrentDaysFlag) as CurrentOffDays&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident &lt;SPAN style="font-size: 13.3333px;"&gt;TempOffDays;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table &lt;SPAN style="font-size: 13.3333px;"&gt;TempOffDays;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join "&lt;SPAN style="font-size: 13.3333px;"&gt;OffDays" with you calendar and calculate the Total Working days or Current Working days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2016 17:48:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-30T17:48:16Z</dc:date>
    <item>
      <title>working Days Logic</title>
      <link>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151940#M902814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Guys,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have attached one QVD data, i this you will see Plant as WERKS, PRCTR as Profit Centre, MATKL of Material Group and OffDate as Date of Holiday.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;You will see the only entries of holidays. if the entry is not There against any possible combination than it means All day working.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Possible Combination are below&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * Inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[PRCTR, MATKL, WERKS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2001, 14001, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2002, 14002, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2003, 14003, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2004, 14004, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2005, 14009, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2001, 14010, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2011, 14007, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2012, 14005, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2013, 14006, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2101, 14011, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2102, 14012, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2103, 14013, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2104, 14014, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2105, 14018, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2112, 14015, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2290, 14101, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2291, 14101, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2292, 14101, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2293, 14101, 1001&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3001, 14001, 1002&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;5001, 14001, 1003&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;6002, 14002, 1004&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;7001, 14001, 1005&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;7002, 14002, 1005];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now my requirement is i want to calculate the No of Working Days of the Month and No of Current Working Days.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;e.g.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PRCTR, MATKL, WERKS, OffDate&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2001, 14001, 1001, 12.06.2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;that above entry means with above combination No of working Days would be 29 current as well as for the month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Current Working Days Definition is = if&amp;nbsp; there are four holidays and and one holiday is on 30.06.2016 and you are in 29.06.2016 than current working days would be 29 total days - 3 holidays = 26&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and Total working Days = 30 days - 4 holidays = 26&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Hope m clear thanks in advance&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151940#M902814</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: working Days Logic</title>
      <link>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151941#M902815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try below script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempOffDays:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OFF_DT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthYear(&lt;SPAN style="font-size: 13.3333px;"&gt;OFF_DT) AS MonthYear_Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(OFF_DT &amp;gt; Today(),0,1) AS CurrentDaysFlag&lt;/P&gt;&lt;P&gt;FROM Stage1_ZCALENDER.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OffDays:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;MonthYear_Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(&lt;SPAN style="font-size: 13.3333px;"&gt;OFF_DT) as TotalOffDays,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;CurrentDaysFlag) as CurrentOffDays&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident &lt;SPAN style="font-size: 13.3333px;"&gt;TempOffDays;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table &lt;SPAN style="font-size: 13.3333px;"&gt;TempOffDays;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join "&lt;SPAN style="font-size: 13.3333px;"&gt;OffDays" with you calendar and calculate the Total Working days or Current Working days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 17:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151941#M902815</guid>
      <dc:creator />
      <dc:date>2016-06-30T17:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: working Days Logic</title>
      <link>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151942#M902816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JO dathu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for revert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TempOffDays:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD DISTINCT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OFF_DT,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthYear(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;OFF_DT) AS MonthYear_Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(OFF_DT &amp;gt; Today(),0,1) AS CurrentDaysFlag&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Stage1_ZCALENDER.qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;this script giving error, What monthyear function will do????bcoz of it getting error..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151942#M902816</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2016-07-01T03:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: working Days Logic</title>
      <link>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151943#M902817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;with the below script we must have to use group by function right?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OffDays:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;MonthYear_Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;OFF_DT) as TotalOffDays,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;CurrentDaysFlag) as CurrentOffDays&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Resident &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;TempOffDays;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 03:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/working-Days-Logic/m-p/1151943#M902817</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2016-07-01T03:46:48Z</dc:date>
    </item>
  </channel>
</rss>

