<?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: Joining the dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351929#M834779</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;as idea look attached file. In your data where can I see that the employee has not been fired yet, and the previous dates were just his movements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 May 2017 09:25:44 GMT</pubDate>
    <dc:creator>ahaahaaha</dc:creator>
    <dc:date>2017-05-29T09:25:44Z</dc:date>
    <item>
      <title>Joining the dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351928#M834778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two tables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It consists of EmployeeID and Date of joining of the employee:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [EmpID] as&amp;nbsp; EmployeeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date(left(EmpDataofJoining, len(EmpDataofJoining)-9)),'MM/DD/YYYY') as DateofJoining&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Ava_EmployeeMasterList.csv&lt;/P&gt;&lt;P&gt;(txt, unicode, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It consists of &lt;SPAN style="font-size: 13.3333px;"&gt;EmployeeID&amp;nbsp; and RelievingDate of the employee:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD EmployeeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim(RelievingDate)) = 0, Date(Today(),'MM/DD/YYYY'), Date(RelievingDate,'MM/DD/YYYY')) as RelievingDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;EPE_LSTRelievingFormInfo.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The requirement is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to column as Date&amp;nbsp; which consists of dateofjoining as a minimum date and&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if the employee is &lt;STRONG&gt;relieved&lt;/STRONG&gt;&amp;nbsp; maximum as &lt;STRONG&gt;RelievingDate&lt;/STRONG&gt; or&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if the employee is &lt;STRONG&gt;not relieved&lt;/STRONG&gt;&amp;nbsp; maximum as &lt;STRONG&gt;today&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I have filter employeeID 138&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_63.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165043_Screenshot_63.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;the employee was joined in the organization on 08/16/2016 and not relieved and working on the organization. so I need a column Date consists of all the dates from 08/16/2016 to 05/29/2017.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Screenshot_64.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/165044_Screenshot_64.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;I have used the below script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EmployeeInfo:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD [EmpID] as&amp;nbsp; EmployeeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date(left(EmpDataofJoining, len(EmpDataofJoining)-9)),'MM/DD/YYYY') as DateofJoining&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Ava_EmployeeMasterList1.csv&lt;/P&gt;&lt;P&gt;(txt, unicode, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;LOAD EmployeeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim(RelievingDate)) = 0, Date(Today(),'MM/DD/YYYY'), Date(RelievingDate,'MM/DD/YYYY')) as RelievingDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;EPE_Data\EPE_LSTRelievingFormInfo1.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;presentEmp:&lt;/P&gt;&lt;P&gt;LOAD EmployeeID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateofJoining as DateofJoining1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; RelievingDate as RelievingDate1&lt;/P&gt;&lt;P&gt;Resident EmployeeInfo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMax:&lt;/P&gt;&lt;P&gt;LOAD Min(DateofJoining1) as Min,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(RelievingDate1) as Max&lt;/P&gt;&lt;P&gt;Resident presentEmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMin = Peek('Min');&lt;/P&gt;&lt;P&gt;LET vMax = Peek('Max');&lt;/P&gt;&lt;P&gt;DROP Table MinMax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD Date(Date,'MM/DD/YYYY') as Date ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date as MonthYear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Date($(vMin) + IterNo() - 1) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;While $(vMin) + IterNo() - 1 &amp;lt;= $(vMax);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (presentEmp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch (Date)&lt;/P&gt;&lt;P&gt;LOAD DateofJoining1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RelievingDate1&lt;/P&gt;&lt;P&gt;Resident presentEmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Fields DateofJoining1,RelievingDate1;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But it is not working it is showing as not associated&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_65.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/165046_Screenshot_65.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my sample data along with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Yoganantha Prakash G P&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/Joining-the-dates/m-p/1351928#M834778</guid>
      <dc:creator>yoganantha321</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Joining the dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351929#M834779</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;as idea look attached file. In your data where can I see that the employee has not been fired yet, and the previous dates were just his movements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 09:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351929#M834779</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-05-29T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Joining the dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351930#M834780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the employee is not fired(relieving date) &lt;/P&gt;&lt;P&gt;i.e doesn't have relieving date means he is still continuing and the max date is today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 09:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351930#M834780</guid>
      <dc:creator>yoganantha321</dc:creator>
      <dc:date>2017-05-29T09:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Joining the dates</title>
      <link>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351931#M834781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have used the data of joining as the same date of relieving it should not be like that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 10:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joining-the-dates/m-p/1351931#M834781</guid>
      <dc:creator>yoganantha321</dc:creator>
      <dc:date>2017-05-29T10:29:02Z</dc:date>
    </item>
  </channel>
</rss>

