<?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: Transforming Biometric data. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224716#M17313</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Even though it looks straightforward in simple use cases, it is having many sub user stories.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I believe we need to have a type code for IN and OUT swipes else we may classify the IN and OUT swipes wrongly.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Some example scenarios are:-&lt;/P&gt; 
&lt;P&gt;a) How we will capture if a person has multiple entries for same day say 10 times IN and OUT swipes. If we are capturing only time, it may error out.&lt;/P&gt; 
&lt;P&gt;b) Do you need to handle night shifts? If yes, what are the user stories around this?&lt;/P&gt; 
&lt;P&gt;c) In practical scenarios, employees may miss a swipe like tail gating, swipe was not captured by sensor etc. If we are not having IN/OUT swipe categories and if we are calculating everything only based on time, the entire calculation will become different category and calculation will be totally wrong.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I am just highlighting some major user stories but there could be multiple more based on your specific use case. So please add these conditions before trying to apply the solution.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 09:06:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-29T09:06:46Z</dc:date>
    <item>
      <title>Transforming Biometric data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224715#M17312</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;S.No&lt;/TD&gt;&lt;TD&gt;Emp ID&lt;/TD&gt;&lt;TD&gt;Emp Name&lt;/TD&gt;&lt;TD&gt;Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ABC(First-Swipe)&lt;/TD&gt;&lt;TD&gt;23-01-2019 11:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;23-01-2019 12:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;23-01-2019 13:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ABC(Last-Swipe)&lt;/TD&gt;&lt;TD&gt;23-01-2019 20:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;XYZ(First-Swipe)&lt;/TD&gt;&lt;TD&gt;23-01-2019 11:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;XYZ&lt;/TD&gt;&lt;TD&gt;23-01-2019 14:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;XYZ&lt;/TD&gt;&lt;TD&gt;23-01-2019 15:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;XYZ(Last-Swipe)&lt;/TD&gt;&lt;TD&gt;23-01-2019 21:30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above are the Biometric entries of 2 company employees for 23rd January each time they enter or exit their workspace.&lt;/P&gt;&lt;P&gt;Based on this I want to calculate&amp;nbsp;&lt;BR /&gt;1. Total hours the employee spent in office.[For ABC: Difference in time of (S.No4-S.No1); For XYZ: Difference in time of(S.No8-S.No5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Emp Id&lt;/TD&gt;&lt;TD&gt;Emp Name&lt;/TD&gt;&lt;TD&gt;In-Time(First swipe)&lt;/TD&gt;&lt;TD&gt;Out-Time(Last Swipe)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23-01-2019&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;11:30:00&lt;/TD&gt;&lt;TD&gt;20:30:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23-01-2019&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;XYZ&lt;/TD&gt;&lt;TD&gt;11:30:00&lt;/TD&gt;&lt;TD&gt;21:30:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, this was just a sample. I have similar data for 70 odd employees for each day. and I aim at getting a daily report. For that I need the data to be transformed in the following manner:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Incase of any queries please comment below.&lt;/SPAN&gt;&lt;BR /&gt;How can I achieve it in Talend?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 07:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224715#M17312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-29T07:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming Biometric data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224716#M17313</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Even though it looks straightforward in simple use cases, it is having many sub user stories.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I believe we need to have a type code for IN and OUT swipes else we may classify the IN and OUT swipes wrongly.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Some example scenarios are:-&lt;/P&gt; 
&lt;P&gt;a) How we will capture if a person has multiple entries for same day say 10 times IN and OUT swipes. If we are capturing only time, it may error out.&lt;/P&gt; 
&lt;P&gt;b) Do you need to handle night shifts? If yes, what are the user stories around this?&lt;/P&gt; 
&lt;P&gt;c) In practical scenarios, employees may miss a swipe like tail gating, swipe was not captured by sensor etc. If we are not having IN/OUT swipe categories and if we are calculating everything only based on time, the entire calculation will become different category and calculation will be totally wrong.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I am just highlighting some major user stories but there could be multiple more based on your specific use case. So please add these conditions before trying to apply the solution.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 09:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224716#M17313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-29T09:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming Biometric data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224717#M17314</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt; 
&lt;P&gt;Thanks for your reply.&lt;/P&gt; 
&lt;P&gt;You have rightly pointed out the potential scenarios, I'll be addressing them one by one.&lt;/P&gt; 
&lt;P&gt;a) Presently, the data for multiple swipes of an employee is being stored as separate rows in the database with the timestamp.&lt;/P&gt; 
&lt;P&gt;b) No, the last shift ends at 10 PM. So no night shifts are to be considered.&lt;/P&gt; 
&lt;P&gt;c) Tailgating is a major concern, for now If the first and the last swipe can be identified for a particular day, then the 'Total hours' can be calculated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So to summarize it, for the initial release if the first and last swipes of an employee can be captured for a particular day then the Total Hours can be obtained. So any help in this regard will be helpful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;P.S I have edit the original question for according to the changed requirements&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 07:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224717#M17314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-30T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming Biometric data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224718#M17315</link>
      <description>&lt;P&gt;Hi Karan,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Below logic will help you to find the first and last swipes. Please refer the screenshots below for details.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sample input data is as below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 361px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M21L.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151953i48D7692FF7D69AC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M21L.png" alt="0683p000009M21L.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The output is as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2JS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155430i90C6D57B21492B59/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2JS.png" alt="0683p000009M2JS.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The screen shot for each components is as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2JX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138785i1A5704A8378AE87E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2JX.png" alt="0683p000009M2JX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M26R.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149842i51853D450E8EBC52/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M26R.png" alt="0683p000009M26R.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2FC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157009i8B47AF4738516A92/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2FC.png" alt="0683p000009M2FC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2Jc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139572i2213E3CBAEC7B4A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2Jc.png" alt="0683p000009M2Jc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The date parsing logic in tMap is as below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Date -&amp;gt;    TalendDate.parseDate("dd-MM-yyyy",row1.DateTime.substring(0,10)) 
DateTime -&amp;gt;   TalendDate.parseDate("dd-MM-yyyy HH:mm",row1.DateTime) &lt;/PRE&gt; 
&lt;P&gt;The logic to find effective time is tricky as I had described above. The main headache will be tailgating. You will have to arrive at the business logic before doing it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I hope I have helped to resolve your query for stage 1. Please spend a second to mark the topic as resolved and Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 09:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224718#M17315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-30T09:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming Biometric data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224719#M17316</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLaXAAW"&gt;@KaranGupta&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sorry for the chase. But it will be really great if you could mark the topic as resolved?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It will definitely help other Talend community members during their search in future and it is a way of showing thanks to the author for spending his time for your query in between their busy schedules.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you understand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 09:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224719#M17316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-30T09:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming Biometric data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224720#M17317</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;Thanks a lot for the help. I have marked it as a solution.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 10:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224720#M17317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-30T10:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming Biometric data.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224721#M17318</link>
      <description>&lt;P&gt;i am working with the issues which you are explained in the topic please give solution for that issues.&lt;/P&gt;&lt;P&gt;its urgent i am dealing the project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 08:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transforming-Biometric-data/m-p/2224721#M17318</guid>
      <dc:creator>palkondatharun</dc:creator>
      <dc:date>2019-07-12T08:35:36Z</dc:date>
    </item>
  </channel>
</rss>

