<?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: Find dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365855#M418036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you share excel data and expected result please? Because first loaded time you used hard coded date. We are not getting it the use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 03:30:45 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-04-10T03:30:45Z</dc:date>
    <item>
      <title>Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365850#M418031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to count the number of days consecutively based on the list of dates in the data(irrespective of any holidays) .&lt;/P&gt;&lt;P&gt;For the "counter" Iam getting just one value '1'.&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="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 21:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365850#M418031</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-07T21:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365851#M418032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Please help with finding consecutive dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 07:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365851#M418032</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-09T07:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365852#M418033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this ?? &lt;A href="https://community.qlik.com/thread/67321"&gt;How to calculate consecutive work days?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 07:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365852#M418033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-09T07:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365853#M418034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it, it wasn't working for me. Can you please help or correct the script I posted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 07:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365853#M418034</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-09T07:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365854#M418035</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;Can you attach the data file, that may help to understand the problem better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhuvan Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 12:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365854#M418035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-09T12:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365855#M418036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you share excel data and expected result please? Because first loaded time you used hard coded date. We are not getting it the use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 03:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365855#M418036</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-10T03:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365856#M418037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the file to my original post.&lt;/P&gt;&lt;P&gt;I need&amp;nbsp; to find employees who worked for more than 10 consecutive dates.&lt;/P&gt;&lt;P&gt;I don't have the count of no.of consecutive days of work in the data source.&lt;/P&gt;&lt;P&gt;I need to find the count of consecutive dates from the list of dates an employee has worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam looking for something like this &lt;A href="https://community.qlik.com/thread/67321"&gt;How to calculate consecutive work days?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 04:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365856#M418037</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-10T04:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365857#M418038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never worked with it, That is the case &lt;A _jive_internal="true" data-avatarid="6257" data-externalid="" data-online="false" data-presence="null" data-userid="96544" data-username="gwassenaar" href="https://community.qlik.com/people/gwassenaar" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8ca9cd;"&gt;Gysbert Wassenaar&lt;/A&gt; can help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 05:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365857#M418038</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-10T05:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365858#M418039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) This can not be achieved (or say very difficult) to do at front end. We have to achieve the same using Script. For that you have to provide sample (dummy) data. &lt;/P&gt;&lt;P&gt;2) If you can't provide dummy data then you can try &lt;A href="https://community.qlik.com/thread/67321"&gt;How to calculate consecutive work days?&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 06:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365858#M418039</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-04-10T06:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365859#M418040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached sample data and the error to my post. Please help me to correct this.&lt;/P&gt;&lt;P&gt;I need to count the number of days consecutively based on the list of dates in the data(irrespective of any holidays) .&lt;/P&gt;&lt;P&gt;I have written sum() for the sake of writing group by like in the other thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365859#M418040</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-10T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365860#M418041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try first loading everything from the different files and then either store the results on a QVD and using the GROUP BY there or doing a RESIDENT load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can apply the same logic than in the post as Gysbert explains.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 15:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365860#M418041</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-04-10T15:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365861#M418042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Iam using resident load. No QVDs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the number of days consecutively based on the list of dates in the data(irrespective of any holidays) .&lt;/P&gt;&lt;P&gt;For the "counter" Iam getting just one value '1'.&lt;/P&gt;&lt;P&gt;I have updated my workfile. Ihave removed group by.&lt;/P&gt;&lt;P&gt;I am not sure if Iam missing something. can you please help with this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="countr1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159648_countr1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 15:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365861#M418042</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-10T15:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365862#M418043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt; can you please help with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365862#M418043</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-10T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365863#M418044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14918901498951856 jive_text_macro" jivemacro_uid="_14918901498951856" modifiedtitle="true"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;&amp;nbsp; *,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If([Employee Name] &amp;lt;&amp;gt; previous([Employee Name]),1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF(DATE-1=Previous(DATE),RangeSum(Peek('Counter'),1),1)) as Counter&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;Resident Work order by [Employee Name],DATE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;Drop table Work;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 05:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365863#M418044</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-04-11T05:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365864#M418045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached updated work files.&lt;/P&gt;&lt;P&gt;when I make selections, Iam getting incorrect results.&lt;/P&gt;&lt;P&gt;if I select&amp;nbsp; a counter value, it will not show correct results as the employee name and the consecutive dates that they worked on.&lt;/P&gt;&lt;P&gt; there are no consecutive dates, some of the dates in between are missing .&lt;/P&gt;&lt;P&gt; Please help with this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 15:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365864#M418045</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2017-04-11T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find dates</title>
      <link>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365865#M418046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;1) NewFlag_14DaysCounter is having Value 1 and 0. 1 will give you employee worked &amp;gt;=15 Days consecutively.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;2) Select 1 from this list box. This will filter Counter having values &amp;gt;=15 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;3) This will also filter Employee ID respectively.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;4) Select any Employee ID.. i.e. 5666.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;5) Table box now will show you data correspond to this Employee. You can see that his emplyee worked between 11/15/2016 to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/2/2016 (18 days).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;6) I have also created FromDate and ToDate which will give you information when the consecutive work days start and finish.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;HTH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;MK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Employee ID],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; DATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(rowno()=1 or [Employee ID] &amp;lt;&amp;gt; previous([Employee ID]) ,1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(DATE-previous(DATE)=1,RangeSum(Peek('Counter'),1),1)) as Counter, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(rowno()=1 or [Employee ID] &amp;lt;&amp;gt; previous([Employee ID]) or (DATE - Previous(DATE))&amp;lt;&amp;gt;1,DATE,PEEK(TEMPDATE)) as TEMPDATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Kronos &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;order by [Employee ID],DATE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *, AutoNumber([Employee ID] &amp;amp; TEMPDATE, 'TEMPDATE') as Flag&amp;nbsp; Resident Temp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Temp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Employee ID],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Flag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max(Counter) as Counter, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Min(DATE)) as FromDate, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Max(DATE)) as ToDate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Temp2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Flag, [Employee ID];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(Temp3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load [Employee ID], Flag, Max(Counter) as MaxCounter Resident Temp3 Group By [Employee ID],Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(Temp2) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,If(MaxCounter &amp;gt;= 15, 1,0) as Flag_15DaysCounter Resident Temp3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Temp3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp4:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,If(IsNull(Flag_15DaysCounter),Peek('NewFlag_15DaysCounter'), Flag_15DaysCounter) as NewFlag_15DaysCounter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,If(IsNull(MaxCounter),Peek('NewMaxCounter'), MaxCounter) as NewMaxCounter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,If(IsNull(FromDate),Peek('NewFromDate'),FromDate) as NewFromDate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,If(IsNull(ToDate),Peek('NewToDate'),ToDate) as NewToDate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Temp2 Order By [Employee ID], DATE Desc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Temp2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Fields FromDate, ToDate, TEMPDATE, MaxCounter, Counter, Flag_15DaysCounter, Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rename Fields NewFromDate to FromDate, NewToDate to ToDate, NewMaxCounter to Counter, Flag_15DaysCounter to Flag_15DaysCounter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Kronos)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * Resident Temp4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Temp4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXIT SCRIPT;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 07:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-dates/m-p/1365865#M418046</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-04-12T07:52:26Z</dc:date>
    </item>
  </channel>
</rss>

