<?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: Employee Log in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2500952#M103251</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140733"&gt;@Sharbel&lt;/a&gt;&amp;nbsp;If you are looking whether the employee is active for the day or not the you can create flags date wise. And if you want to see whether employee left the organization then you can handle it using slowly changing dimension or creating the active period for that employee.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 05:06:35 GMT</pubDate>
    <dc:creator>Bhushan_Mahajan</dc:creator>
    <dc:date>2025-01-13T05:06:35Z</dc:date>
    <item>
      <title>Employee Log</title>
      <link>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2500936#M103246</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I built an app that performs the followings:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each day it loads an excel file that contains a list of active employees&amp;nbsp; and then saves the file into QVD file and names it emp_20250109 (the key 20250109 is derived from the file date 09/01/2025)&lt;/P&gt;
&lt;P&gt;On the next day another excel file is loaded&amp;nbsp; and then&amp;nbsp; saved in into another QVD file named&amp;nbsp; emp_20250110 and so on...&lt;/P&gt;
&lt;P&gt;If certain employee was included in emp_20250109 but not inemp_20250110 , that means the employee went Non_active on 10/01/2025.&lt;/P&gt;
&lt;P&gt;The purpose of the app is eventually to count in each month how many employees went Non_active.&lt;/P&gt;
&lt;P&gt;Any ideas on how to approach this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Sharbel&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2025 16:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2500936#M103246</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2025-01-12T16:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Employee Log</title>
      <link>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2500952#M103251</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140733"&gt;@Sharbel&lt;/a&gt;&amp;nbsp;If you are looking whether the employee is active for the day or not the you can create flags date wise. And if you want to see whether employee left the organization then you can handle it using slowly changing dimension or creating the active period for that employee.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 05:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2500952#M103251</guid>
      <dc:creator>Bhushan_Mahajan</dc:creator>
      <dc:date>2025-01-13T05:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Employee Log</title>
      <link>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2501681#M103365</link>
      <description>&lt;P&gt;Suppose we have the initial employee log table as&amp;nbsp; follows:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_2-1737064908802.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176547iCC0CE31CC270217E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sharbel_2-1737064908802.png" alt="Sharbel_2-1737064908802.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the desired output table would look like this :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_1-1737064863818.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176546iF59D7B3ED53CF1FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sharbel_1-1737064863818.png" alt="Sharbel_1-1737064863818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Tried interval match , but unfortunately didn't work for me&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sharbel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 22:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2501681#M103365</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2025-01-16T22:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Employee Log</title>
      <link>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2501685#M103366</link>
      <description>&lt;P&gt;You can do that creating a cartesian product between all possible dates and employees and after that you exclude the active employees on each date. I will attach a screenshot of my script and then real the script below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rpennacchi_0-1737068028474.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176549i2F4A6D168207E8B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rpennacchi_0-1737068028474.png" alt="rpennacchi_0-1737068028474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Active_Employees:&lt;BR /&gt;Load &lt;BR /&gt;EmployeeID&lt;BR /&gt;, FileDate&lt;BR /&gt;, EmployeeID &amp;amp; '-' &amp;amp; FileDate as Key_Employe_Date // This will be used to filter active employees&lt;BR /&gt;Inline [&lt;BR /&gt;EmployeeID , FileDate&lt;BR /&gt;101 , 09/01/2025&lt;BR /&gt;102 , 09/01/2025&lt;BR /&gt;101 , 10/01/2025&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;// Creating a table with all possible dates betwen start and end &lt;BR /&gt;// **(you can use a different start and end date)&lt;/P&gt;
&lt;P&gt;TMP_First_and_Last_Dates:&lt;BR /&gt;Load &lt;BR /&gt;Min(FileDate) as First_Date&lt;BR /&gt;, Max(FileDate) as Last_Date &lt;BR /&gt;Resident Active_Employees;&lt;/P&gt;
&lt;P&gt;let vFirst_Date = Peek('First_Date', 0, 'TMP_First_and_Last_Dates');&lt;BR /&gt;let vLast_Date = Peek('Last_Date' , 0, 'TMP_First_and_Last_Dates');&lt;/P&gt;
&lt;P&gt;Drop Table TMP_First_and_Last_Dates;&lt;/P&gt;
&lt;P&gt;All_Employees_All_Dates:&lt;BR /&gt;Load &lt;BR /&gt;Date('$(vFirst_Date)' + RowNo() - 1) as All_Date&lt;BR /&gt;Autogenerate '$(vLast_Date)' - '$(vFirst_Date)' + 1;&lt;/P&gt;
&lt;P&gt;// Creating a Cartesian Prodcut to gel all possible dates with all possible employees&lt;/P&gt;
&lt;P&gt;Left Join(All_Employees_All_Dates)&lt;BR /&gt;Load Distinct EmployeeID as All_EmployeeID Resident Active_Employees;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;// Excluding records where we have and active employee&lt;/P&gt;
&lt;P&gt;Fact_Employees_Inactivity:&lt;BR /&gt;Load &lt;BR /&gt;All_EmployeeID as EmployeeID&lt;BR /&gt;, All_Date as Inactive_Date&lt;BR /&gt;Resident All_Employees_All_Dates&lt;BR /&gt;Where Not Exists(Key_Employe_Date, All_EmployeeID &amp;amp; '-' &amp;amp; All_Date);&lt;/P&gt;
&lt;P&gt;Drop Table Active_Employees, All_Employees_All_Dates;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 22:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2501685#M103366</guid>
      <dc:creator>rpennacchi</dc:creator>
      <dc:date>2025-01-16T22:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Employee Log</title>
      <link>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2501800#M103378</link>
      <description>&lt;P&gt;the above script works fine whenever there are only 2 employees ,&lt;/P&gt;
&lt;P&gt;yet it doesn't work on tables with multiple employees since it returns more than one combination&amp;nbsp; of EmployeeID and InActive_Date instead of returning only one combination per each employee.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 12:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Employee-Log/m-p/2501800#M103378</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2025-01-17T12:03:43Z</dc:date>
    </item>
  </channel>
</rss>

