<?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 Have multiple records with same field value.  Only want one record per distinct field value. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Have-multiple-records-with-same-field-value-Only-want-one-record/m-p/379274#M494831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&amp;nbsp; I have a field say social security number that has mulitple records in the table due to different employee numbers or name changes.&amp;nbsp; I only want to load one record, I don't care which, per social security number.&amp;nbsp; Any ideas how to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2012 21:04:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-20T21:04:43Z</dc:date>
    <item>
      <title>Have multiple records with same field value.  Only want one record per distinct field value.</title>
      <link>https://community.qlik.com/t5/QlikView/Have-multiple-records-with-same-field-value-Only-want-one-record/m-p/379274#M494831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&amp;nbsp; I have a field say social security number that has mulitple records in the table due to different employee numbers or name changes.&amp;nbsp; I only want to load one record, I don't care which, per social security number.&amp;nbsp; Any ideas how to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 21:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Have-multiple-records-with-same-field-value-Only-want-one-record/m-p/379274#M494831</guid>
      <dc:creator />
      <dc:date>2012-08-20T21:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Have multiple records with same field value.  Only want one record per distinct field value.</title>
      <link>https://community.qlik.com/t5/QlikView/Have-multiple-records-with-same-field-value-Only-want-one-record/m-p/379275#M494832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon, Do you have an 'Update Time' for these records? Please follow this logic if Yes and let me know if this works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT SSN, &lt;/P&gt;&lt;P&gt;max ([Updated Time]) AS UpdatedTime&lt;/P&gt;&lt;P&gt;FROM xyz.qvd&lt;/P&gt;&lt;P&gt;GROUP BY SSN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;SSN&amp;amp;'_'&amp;amp;UpdatedTime AS Key&lt;/P&gt;&lt;P&gt;RESIDENT Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActualTable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;SSN&amp;amp;'_'&amp;amp;UpdatedTime AS Key&lt;/P&gt;&lt;P&gt;WHERE EXISTS (Key, SSN&amp;amp;'_'UpdatedTime);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Key;&lt;/P&gt;&lt;P&gt;DROP FIELD Key;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 21:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Have-multiple-records-with-same-field-value-Only-want-one-record/m-p/379275#M494832</guid>
      <dc:creator>manojkvrajan</dc:creator>
      <dc:date>2012-08-20T21:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Have multiple records with same field value.  Only want one record per distinct field value.</title>
      <link>https://community.qlik.com/t5/QlikView/Have-multiple-records-with-same-field-value-Only-want-one-record/m-p/379276#M494833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD *, RecNo() as RecId INLINE [&lt;/P&gt;&lt;P&gt;SSN, Name&lt;/P&gt;&lt;P&gt;1234, Rob&lt;/P&gt;&lt;P&gt;1234, Rob W&lt;/P&gt;&lt;P&gt;4567, Jane&lt;/P&gt;&lt;P&gt;7890, Joe&lt;/P&gt;&lt;P&gt;7890, Joey&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Inner JOIN (data)&lt;/P&gt;&lt;P&gt;LOAD min(RecId) as RecId&lt;/P&gt;&lt;P&gt;RESIDENT data&lt;/P&gt;&lt;P&gt;GROUP By SSN&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 04:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Have-multiple-records-with-same-field-value-Only-want-one-record/m-p/379276#M494833</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-08-21T04:28:43Z</dc:date>
    </item>
  </channel>
</rss>

