<?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: Duplicate Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547560#M1137263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while using date in the chart apply only(Distinct date_field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will not duplicate the dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 12:41:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-11T12:41:14Z</dc:date>
    <item>
      <title>Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547557#M1137260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="_jivemacro_uid_13814932653082055 jive_text_macro jive_macro_code" jivemacro_uid="_13814932653082055"&gt;
&lt;P&gt;No1:&lt;BR /&gt;SQL SELECT assetno,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assetshortdesc,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "org_date",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "orig_priority",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; originator,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "plan_priority",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wo,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "work_type"&lt;BR /&gt;FROM MainSaver11.dbo.wkaw;&lt;BR /&gt;store No1 into No1.qvd(qvd);&lt;BR /&gt;drop table No1;&lt;/P&gt;
&lt;P&gt;Directory;&lt;BR /&gt;LOAD assetno, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assetshortdesc, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date (org_date) as org_date, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orig_priority, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; upper (originator) as originator, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plan_priority, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wo, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; work_type&lt;BR /&gt;FROM&lt;BR /&gt;No1.qvd&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE(org_date &amp;gt;= '01/01/2013')&lt;BR /&gt;and left (wo,1)&amp;lt;&amp;gt;'P' and left (wo,1)&amp;lt;&amp;gt;'T';&lt;/P&gt;
&lt;P&gt;No2:&lt;BR /&gt;SQL SELECT "login_id",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wo&lt;BR /&gt;FROM MainSaver11.dbo.wkaws;&lt;BR /&gt;store No2 into No2.qvd(qvd);&lt;BR /&gt;drop table No2;&lt;/P&gt;
&lt;P&gt;Directory;&lt;BR /&gt;LOAD login_id, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wo&lt;BR /&gt;FROM&lt;BR /&gt;No2.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to Qlikview, so please be patient &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;I have loaded my data into Qlkiview (see above), but have just come up against a problem with duplication of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know why this is, but I am unsure how to to go about fixing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have loaded data from a call logging system and for every call logged a unique reference number is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a call is logged the system logs the users LOGIN ID name details. Then for every time a user makes a change to the call (for example completes or closes the call) the system logs the users LOGIN ID name again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview is currently showing me (for example) x3 of each unique reference number and a different LOGIN ID for each time a change was made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get Qlkiview to only show me the first initial record of the LOGIN ID on creation of the job, not the each individual change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is anything else I can attach to help you answer my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI - I have attached an image of both tables I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547557#M1137260</guid>
      <dc:creator />
      <dc:date>2013-10-11T12:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547558#M1137261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Witch if the table store duplicates? No1 or No2?&lt;/P&gt;&lt;P&gt;Example of the data would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547558#M1137261</guid>
      <dc:creator />
      <dc:date>2013-10-11T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547559#M1137262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its the WO that is the duplicate (it sits in both table 1 &amp;amp; 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example of the data. I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547559#M1137262</guid>
      <dc:creator />
      <dc:date>2013-10-11T12:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547560#M1137263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while using date in the chart apply only(Distinct date_field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will not duplicate the dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547560#M1137263</guid>
      <dc:creator />
      <dc:date>2013-10-11T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547561#M1137264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, can you send me your qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 12:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547561#M1137264</guid>
      <dc:creator>ecahen</dc:creator>
      <dc:date>2013-10-11T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547562#M1137265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. How is the best way to send it to you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 15:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547562#M1137265</guid>
      <dc:creator />
      <dc:date>2013-10-11T15:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547563#M1137267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hannah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies, but how would I do that exactly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 15:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547563#M1137267</guid>
      <dc:creator />
      <dc:date>2013-10-11T15:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547564#M1137269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the file is not to heavy, simply by uploading it. Other why you can empty some dimension before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edouard Cahen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directeur Associé -  &amp;lt;mailto:ecahen@excelcio.com&amp;gt; ecahen@excelcio.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description : Description : Signature Ted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excelcio est une société spécialisée en pilotage de la performance  &amp;lt;http://www.excelcio.com/&amp;gt; www.excelcio.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : Susan Horn  &lt;/P&gt;&lt;P&gt;Envoyé : vendredi 11 octobre 2013 17:27&lt;/P&gt;&lt;P&gt;À : Edouard CAHEN&lt;/P&gt;&lt;P&gt;Objet : Re:  - Duplicate Data&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;http://community.qlik.com/&amp;gt; QlikCommunity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duplicate Data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Susan Horn &amp;lt;http://community.qlik.com/people/SusanHorn?et=watches.email.thread&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/404926?et=watches.email.thread#404926&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 15:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547564#M1137269</guid>
      <dc:creator>ecahen</dc:creator>
      <dc:date>2013-10-11T15:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547565#M1137271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lift the unique identification of the oldest records by using the GROUP BY clause and the min() function, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entries:&lt;/P&gt;&lt;P&gt;LOAD UniqueReferenceNr, Min(DateOfRecord) as CreationDate FROM File.qvd GROUP BY UniqueReferenceNr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then JOIN the original table to Entries to add further details to the record identifiers you want to keep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the brevity. If you post your document in this discussion, we could provide you with a ready example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 15:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547565#M1137271</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-11T15:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547566#M1137272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having problems attaching documents on the forum, so fingers crossed this has worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and advice so far. Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 08:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547566#M1137272</guid>
      <dc:creator />
      <dc:date>2013-10-14T08:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547567#M1137274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a question. Every record with a unique WO occurs only once in your table WKAW, correct? Then the field "originator" already has the login id of the person that created the record, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, you'll have to change the SELECT statement for table WKAWS so that only the oldest record is retained. Does that table include a timestamp of the login of person "login_id" for workorder "wo"? If it does, your code can become something like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;No2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "login_id",&amp;nbsp; wo, timestamplogin&lt;BR /&gt;FROM MainSaver11.dbo.wkaws;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;store&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; No2 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; No2.qvd(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; No2;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SingleLoginID:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; wo, &lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue(&lt;/SPAN&gt;login_id, timestamplogin) as login_id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;No2.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;GROUP BY&lt;/SPAN&gt; wo; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Make sure that the timestamp in table WKAWS actually includes a time part, otherwise you'll end up with many login-id's again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 10:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547567#M1137274</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-14T10:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547568#M1137276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI - The unique WO's that occur in the table WKAW are attached to an 'Originator'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Login_ID'&amp;nbsp; that you find in the table WKAWS is attached to the login-id of the person logged into system at the time, who raises that WO (therefore the Login_ID is not necessarily the Origiantor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I can raise a WO and my Login-ID against that WO will be recorded as 'Susan Horn'. I can however add in the Orirginator of that WO as 'Joe Bloggs' and therefore the 'Originator' against that WO will be recorded as 'Joe Bloggs' (please see attached WO and specific 'Originator' field I am making reference too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 15:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547568#M1137276</guid>
      <dc:creator />
      <dc:date>2013-10-14T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547569#M1137278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Susan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using any of the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIRSTSORTEDVALUE&lt;/P&gt;&lt;P&gt;LASTSORTEDVALUE&lt;/P&gt;&lt;P&gt;MAXSTRING&lt;/P&gt;&lt;P&gt;MINSTRING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These videos may help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=JxI6ZyaxOsM" title="https://www.youtube.com/watch?v=JxI6ZyaxOsM"&gt;Qlikview FIRSTVALUE &amp;amp; LASTVALUE in Script by RFB 152 - YouTube&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=0Eye7_tKU0M" title="https://www.youtube.com/watch?v=0Eye7_tKU0M"&gt;https://www.youtube.com/watch?v=0Eye7_tKU0M&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 15:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547569#M1137278</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-10-14T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547570#M1137280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfectly clear. Upon inspecting your data, I saw that Originator may or may not appear in the list of login_ids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your DB Table WKAWS contains a timestamp for each login_id that makes a change to the wo, then you can use my SingleLoginID suggestion to attach the creator to the WO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 08:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547570#M1137280</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-15T08:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547571#M1137281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WKAWS table has a separate date and time (see attached excel spreadsheet I have pulled information into). I can also pull out an end date and time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before I begin trying your suggestion, i thought it be better to check that this will work first &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;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 08:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547571#M1137281</guid>
      <dc:creator />
      <dc:date>2013-10-17T08:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547572#M1137282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Peter's suggestion is not possible, i will begin investigating this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 08:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547572#M1137282</guid>
      <dc:creator />
      <dc:date>2013-10-17T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547573#M1137283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Susan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will work, I am sure about that.&lt;/P&gt;&lt;P&gt;However, I don't see an Excel yet.&lt;/P&gt;&lt;P&gt;What you can do is modify my code so that Date and Time are loaded into table No2 (call them WKAWS.Date and WKAWS.Time) and merged into one in the call to FirstSortedValue() like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ... FirstSortedValue(login_id, date#(WKAWS.Date &amp;amp; ' ' &amp;amp; WKAWS.Time)) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 08:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547573#M1137283</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-17T08:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547574#M1137284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just added the excel document mentioned &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;I am going to try your suggestion now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is much appreciated Peter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 09:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547574#M1137284</guid>
      <dc:creator />
      <dc:date>2013-10-17T09:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547575#M1137285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK here goes. In my earlier example code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Replace timestamplogin in the SQL SELECT with:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;start_date, start_time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;to load the date and time value into table No2.&lt;/LI&gt;&lt;LI&gt;Replace the call to FirstSortedValue() in the LOAD for SingleLoginID with:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(login_id, &lt;SPAN style="color: #0000ff;"&gt;date#(&lt;/SPAN&gt;start_date &amp;amp; ' ' &amp;amp; start_time, 'D/MM/YYYY 0:00 hhmm'))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;to pick the first login Id for a specific WO based on the timestamp&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you should be set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547575#M1137285</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-17T11:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547576#M1137286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! That seems to be working great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only problem now is i would like to add the LOGIN_ID as a column into my table box. Is there anyway to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 15:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-Data/m-p/547576#M1137286</guid>
      <dc:creator />
      <dc:date>2013-10-17T15:57:55Z</dc:date>
    </item>
  </channel>
</rss>

