<?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: Count days between current selection in Master Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452529#M698474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood, you need to count non-continous workdays of a selection. You can add the following line in MasterCalendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( WeekDay(TempDate)&amp;lt;5, 1) as _Work_Day_Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, your expression could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (_Work_Day_Flag), and it will give you the number of working days with every selection. This is the easiest way, because the expression is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to change the script, the expression could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( If ( WeekDay (TempDate) &amp;lt;5, 1 ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 13:21:28 GMT</pubDate>
    <dc:creator>sebastiandperei</dc:creator>
    <dc:date>2013-01-24T13:21:28Z</dc:date>
    <item>
      <title>Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452525#M698470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master Calendar setup on my dashboard (Code Below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Code Below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find the number of weekdays days (Monday - Friday inclusive) currently selected on the master calendar in order to use it as part of an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I vaguely remember covering somehting about calculating current selections in Qlikview Training but that was a while back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 12pt;"&gt;//**** MASTER CALENDAR****&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;MINMAX:&lt;BR /&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;LoggedDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;MinDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;LoggedDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;MaxDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; Richmond;&lt;BR /&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;vMinDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;('MinDate',0,'MinMax'));&lt;BR /&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;('MaxDate',0,'MinMax'));&lt;BR /&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;vToday&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;$(vMaxDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 12pt;"&gt;//**** Temp Calendar****&lt;BR /&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;TempCal:&lt;BR /&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;$(vMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;()-1) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;$(vMaxDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;$(vMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; MINMAX;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 12pt;"&gt;//********Master&lt;BR /&gt;Calendar******&lt;BR /&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;LoggedDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Weekday&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;WeekDay&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;'Q' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) / 3) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;Quarter&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Monthstart&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;),'MMM-YYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;)&amp;amp;'-'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;WeekYear&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;InYearToDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: Consolas;"&gt;$(vToday)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;,0)*-1 &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;LastYTDFlag&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; TempCal&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;BY&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;ASC&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: blue; font-size: 12pt; font-family: Consolas;"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; TempCal;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 09:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452525#M698470</guid>
      <dc:creator />
      <dc:date>2013-01-24T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452526#M698471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your date field is named LoggedDate as far as I can tell. So you want the number of weekdays between the minimum selected LoggedDate and the maximum selected LoggedDate. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should calculate the number of working days between the min and max selected LoggedDate: networkdays(min(LoggedDate),max(LoggedDate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 09:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452526#M698471</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-24T09:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452527#M698472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this, It is very nearly there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It calculates perfectly when there is nothing selected.&lt;/P&gt;&lt;P&gt;Also works when I select any time period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I make a selection in another list it throws off the figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other list is 'Specialist' and contains names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think when I select an individual name it is counting network days for ONLY days that specialist has logged records for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get around this? I need the calculation to be locked to the days between the master calendar selection so other selections do not impact it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 11:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452527#M698472</guid>
      <dc:creator />
      <dc:date>2013-01-24T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452528#M698473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll have to use two calendar objects that each set a variable and use the variable in the networkingdays function. That way you can select a start and end date with the calendar objects and have the expression return the number of working days between the start and end date. You can also use the same objects to select a date range in your LoggedDate field. See &lt;A _jive_internal="true" href="https://community.qlik.com/thread/67712"&gt;here&lt;/A&gt; for a tutorial about this subject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 12:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452528#M698473</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-24T12:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452529#M698474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood, you need to count non-continous workdays of a selection. You can add the following line in MasterCalendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( WeekDay(TempDate)&amp;lt;5, 1) as _Work_Day_Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, your expression could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (_Work_Day_Flag), and it will give you the number of working days with every selection. This is the easiest way, because the expression is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to change the script, the expression could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( If ( WeekDay (TempDate) &amp;lt;5, 1 ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 13:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452529#M698474</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2013-01-24T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452530#M698475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a look at the _Work_Day_Flag method which seems to make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It calculates fine when no selection is made.&lt;/P&gt;&lt;P&gt;Calculates fine when a date selection is made.&lt;/P&gt;&lt;P&gt;However when I select a specialist the number it throws back is not correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking at December 2012 (21 Weekdays)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates that are logged against the selected Specialist Specialist are as follows, This method returns 14 when it should return 21:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Tue 04-Dec-12&lt;/P&gt;&lt;P&gt;Fri 07-Dec-12&lt;/P&gt;&lt;P&gt;Mon 10-Dec-12&lt;/P&gt;&lt;P&gt;Tue 11-Dec-12&lt;/P&gt;&lt;P&gt;Wed 12-Dec-12&lt;/P&gt;&lt;P&gt;Wed 12-Dec-12&lt;/P&gt;&lt;P&gt;Wed 12-Dec-12&lt;/P&gt;&lt;P&gt;Wed 12-Dec-12&lt;/P&gt;&lt;P&gt;Wed 12-Dec-12&lt;/P&gt;&lt;P&gt;Thu 13-Dec-12&lt;/P&gt;&lt;P&gt;Thu 13-Dec-12&lt;/P&gt;&lt;P&gt;Thu 13-Dec-12&lt;/P&gt;&lt;P&gt;Fri 14-Dec-12&lt;/P&gt;&lt;P&gt;Tue 18-Dec-12&lt;/P&gt;&lt;P&gt;Wed 19-Dec-12&lt;/P&gt;&lt;P&gt;Thu 20-Dec-12&lt;/P&gt;&lt;P&gt;Mon 24-Dec-12&lt;/P&gt;&lt;P&gt;Thu 27-Dec-12&lt;/P&gt;&lt;P&gt;Fri 28-Dec-12&lt;/P&gt;&lt;P&gt;Fri 28-Dec-12&lt;/P&gt;&lt;P&gt;Mon 31-Dec-12&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Calibri&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-fareast-language: EN-US; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA;"&gt;Mon 31-Dec-12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;amp;quot;Calibri&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-fareast-language: EN-US; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA;"&gt;I also tried the method using the expression and the TempDate field but it locked the number to count weekdays in the entire dataset without reflecting the selections made in the Master Calendar.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 14:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452530#M698475</guid>
      <dc:creator />
      <dc:date>2013-01-24T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452531#M698476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see you need to count the repeated days as different days.... that is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempDate is key field between MasterCalendar and success table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 14:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452531#M698476</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2013-01-24T14:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452532#M698477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The days that are listed above are the dates that a particular specialist has logged. (Fieldname: Loggeddate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a way, these are irrelevant as I am only looking for the number of working days reflected in the date selection. So if December is selected it will count all weekdays in December, If a year is selected it will count all weekdays in that year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I remember the TempDate is a field used in the master calendar to hold the lowest date, the code below is what assigns this field, however this table iss dropped at the end of the master calendar script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 12pt;"&gt;//**** Temp Calendar****&lt;BR /&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;TempCal:&lt;BR /&gt;&lt;STRONG style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-family: Consolas; font-size: 12pt;"&gt;$(vMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;()-1) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: Consolas; font-size: 12pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-family: Consolas; font-size: 12pt;"&gt;$(vMaxDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-family: Consolas; font-size: 12pt;"&gt;$(vMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt;+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;DROP&lt;/STRONG&gt; &lt;SPAN style="color: blue; font-family: Consolas; font-size: 12pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 12pt;"&gt; MINMAX;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 14:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452532#M698477</guid>
      <dc:creator />
      <dc:date>2013-01-24T14:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452533#M698478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, I will access this link as soon as the IT department unrestrict youtube! I will let you know if solves it for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 15:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452533#M698478</guid>
      <dc:creator />
      <dc:date>2013-01-24T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452534#M698479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this list, you have only 14 days, not 21. If you want to get 21, that isn't the "number of working days".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make the expression "doesn't care" about specialist selection (in the list, it gives you only the working days that your selections are related to) you could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;specialist=&amp;gt;}_Work_Day_Flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Sum( {&amp;lt;specialist=&amp;gt;} If ( WeekDay (TempDate) &amp;lt;5, 1 ) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 16:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452534#M698479</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2013-01-24T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count days between current selection in Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452535#M698480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastian! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BINGO! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;specialist=&amp;gt;}_Work_Day_Flag) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;worked perfectly! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It now 'locks' the calculation down to the selected dates just like I wanted! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you soooo much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 16:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-between-current-selection-in-Master-Calendar/m-p/452535#M698480</guid>
      <dc:creator />
      <dc:date>2013-01-24T16:19:54Z</dc:date>
    </item>
  </channel>
</rss>

