<?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: Number of working days during a month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46581#M3183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a table where the working days are listed as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;City Work Days:&lt;/P&gt;&lt;P&gt;City&amp;nbsp;&amp;nbsp; :&amp;nbsp; Day&lt;/P&gt;&lt;P&gt;NewYork: Mon&lt;/P&gt;&lt;P&gt;NewYork: Tue&lt;/P&gt;&lt;P&gt;NewYork: Wed&lt;/P&gt;&lt;P&gt;NewYork: Thu&lt;/P&gt;&lt;P&gt;NewYork: Fri&lt;/P&gt;&lt;P&gt;LosAngeles: Mon&lt;/P&gt;&lt;P&gt;LosAngeles: Tue&lt;/P&gt;&lt;P&gt;LosAngeles: Wed&lt;/P&gt;&lt;P&gt;LosAngeles: Thu&lt;/P&gt;&lt;P&gt;LosAngeles: Fri&lt;/P&gt;&lt;P&gt;LosAngeles: Sat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula should look into this table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Feb 2018 07:19:12 GMT</pubDate>
    <dc:creator>madnanansari</dc:creator>
    <dc:date>2018-02-04T07:19:12Z</dc:date>
    <item>
      <title>Number of working days during a month</title>
      <link>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46579#M3181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am working on Retail Sales data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In some cities the stores works 7 days whereas in some they work 6 days a week and 5 days a week as well. My requirement is to find out the number of working days for a specific store during a month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am using standard master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The below are the table formats:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;City:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-CityID&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-City&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Store:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-StoreID&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-CityID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;City Operational Days:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CityID&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Operational Day. (Sat, Sun, Mon etc)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2018 14:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46579#M3181</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2018-02-03T14:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Number of working days during a month</title>
      <link>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46580#M3182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #993300;"&gt;=count({&amp;lt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date= {"=match(weekday(Date),'Tue','Thu','Sat')"} ,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month={'Jan'}&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;} Date)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2018 17:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46580#M3182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-03T17:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Number of working days during a month</title>
      <link>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46581#M3183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a table where the working days are listed as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;City Work Days:&lt;/P&gt;&lt;P&gt;City&amp;nbsp;&amp;nbsp; :&amp;nbsp; Day&lt;/P&gt;&lt;P&gt;NewYork: Mon&lt;/P&gt;&lt;P&gt;NewYork: Tue&lt;/P&gt;&lt;P&gt;NewYork: Wed&lt;/P&gt;&lt;P&gt;NewYork: Thu&lt;/P&gt;&lt;P&gt;NewYork: Fri&lt;/P&gt;&lt;P&gt;LosAngeles: Mon&lt;/P&gt;&lt;P&gt;LosAngeles: Tue&lt;/P&gt;&lt;P&gt;LosAngeles: Wed&lt;/P&gt;&lt;P&gt;LosAngeles: Thu&lt;/P&gt;&lt;P&gt;LosAngeles: Fri&lt;/P&gt;&lt;P&gt;LosAngeles: Sat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula should look into this table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 07:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46581#M3183</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2018-02-04T07:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Number of working days during a month</title>
      <link>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46582#M3184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Network Days function -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="script_token"&gt;networkdays (&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;start_date, end_date [, holiday]&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You need to specify the holidays in networkday().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For example you want networkdays between 2006-12-18 and 2006-12-31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you just give this without the specific holidays you will get 10 as output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But say you have holiday on 2006-12-25 and 2006-12-26&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then specify like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&amp;nbsp;&amp;nbsp; networkdays&lt;/SPAN&gt; ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26') &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and you will get answer as 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 17:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46582#M3184</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-02-04T17:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Number of working days during a month</title>
      <link>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46583#M3185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll probably need something like this then :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;=count({&amp;lt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;Date= {"=match ( weekday(Date) , $(=concat( chr(39) &amp;amp; Day &amp;amp; chr(39), ',')) )"}&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;} Date)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect you'll need to adjust it to fit in with your &lt;SPAN style="font-size: 10pt;"&gt;precise data model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have problems with it then post a sample qvf.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 18:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Number-of-working-days-during-a-month/m-p/46583#M3185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-04T18:35:38Z</dc:date>
    </item>
  </channel>
</rss>

