<?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: Unique IDs with singular related records in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701869#M702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;ID,&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; Tom&lt;/P&gt;&lt;P&gt;aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; TOM&lt;/P&gt;&lt;P&gt;bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; Janny&lt;/P&gt;&lt;P&gt;bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; Ja_ny&lt;/P&gt;&lt;P&gt;ba33,&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/P&gt;&lt;P&gt;ab43,&amp;nbsp;&amp;nbsp;&amp;nbsp; Michael&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp2:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;ID, &lt;/P&gt;&lt;P&gt;MaxString(Name) as Name, &lt;/P&gt;&lt;P&gt;concat(Name, '---') as AllNames&lt;/P&gt;&lt;P&gt;Resident tmp group by ID; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 14:30:02 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-09-03T14:30:02Z</dc:date>
    <item>
      <title>Unique IDs with singular related records</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701866#M699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QV developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would highly appreciate your advice on the following issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let there is a table with a list of IDs and Names. Due to wrong (misspelled) Names IDs are non-unique. For instance, there are entries like these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt; [ID],&amp;nbsp;&amp;nbsp;&amp;nbsp; [Name]&lt;BR /&gt; 11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Tom"&lt;BR /&gt; 11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TOM"&lt;BR /&gt; 23,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Janny"&lt;BR /&gt; 23,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Ja_ny"&lt;BR /&gt; 33,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "John"&lt;BR /&gt; 43,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Michael"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aim is to get a table with unique IDs and singular Names. And it does not matter if grammatically right or wrong name is assigned to a particular ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a solution, which deals the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A clip from my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;[Table1]:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; 11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Tom"&lt;BR /&gt; 11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TOM"&lt;BR /&gt; 23,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Janny"&lt;BR /&gt; 23,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Ja_ny"&lt;BR /&gt; 33,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "John"&lt;BR /&gt; 43,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Michael"&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; [Table2]:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Dist_ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; [Table1]&lt;BR /&gt; ;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;For&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;v_i&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;('Table2')-1)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;vLine&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;$(v_i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;vID&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;('Dist_ID',&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;vLine&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,'Table2');&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;First&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; 1 &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[ID]&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[NewID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[Name]&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[NewName]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; [Table1] &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;v_i&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if the IDs are non-integers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt; [ID],&amp;nbsp;&amp;nbsp;&amp;nbsp; [Name]&lt;BR /&gt; aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; "Tom"&lt;BR /&gt; aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; "TOM"&lt;BR /&gt; bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; "Janny"&lt;BR /&gt; bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; "Ja_ny"&lt;BR /&gt; ba33,&amp;nbsp;&amp;nbsp;&amp;nbsp; "John"&lt;BR /&gt; ab43,&amp;nbsp;&amp;nbsp;&amp;nbsp; "Michael"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code does not work. May you, please, advise me on this issue? Perhaps there exists a better solution, than the one I have found?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701866#M699</guid>
      <dc:creator />
      <dc:date>2014-09-03T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unique IDs with singular related records</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701867#M700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just vary the code very slightly and you'll have it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Name_IDs_v1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;Sample_20140903.xlsx&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Sheet1);&lt;BR /&gt;&lt;BR /&gt;Name_IDs_v2:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Dist_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Dist_name&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Name_IDs&lt;BR /&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Name_IDs;&lt;BR /&gt;&lt;BR /&gt; Voila, there is a unique record with every distinct ID and a name attached. Basically your code with just one line added.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701867#M700</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-09-03T14:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unique IDs with singular related records</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701868#M701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benas,&lt;/P&gt;&lt;P&gt;If we assume that you want the first name found for the ID (and don't care if this is the "right" name), then simply use a where exists() statement, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;ID,&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; Tom&lt;/P&gt;&lt;P&gt;aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; TOM&lt;/P&gt;&lt;P&gt;bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; Janny&lt;/P&gt;&lt;P&gt;bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; Ja_ny&lt;/P&gt;&lt;P&gt;ba33,&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/P&gt;&lt;P&gt;ab43,&amp;nbsp;&amp;nbsp;&amp;nbsp; Michael&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID as newID, Name as newName&lt;/P&gt;&lt;P&gt;Resident tmp&lt;/P&gt;&lt;P&gt;where not exists(newID,ID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, your code works as well if you change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; [Table1] &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;$(vID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; [Table1] &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='&lt;/SPAN&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;$(vID)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701868#M701</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2014-09-03T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unique IDs with singular related records</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701869#M702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;ID,&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; Tom&lt;/P&gt;&lt;P&gt;aa11,&amp;nbsp;&amp;nbsp;&amp;nbsp; TOM&lt;/P&gt;&lt;P&gt;bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; Janny&lt;/P&gt;&lt;P&gt;bb23,&amp;nbsp;&amp;nbsp;&amp;nbsp; Ja_ny&lt;/P&gt;&lt;P&gt;ba33,&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/P&gt;&lt;P&gt;ab43,&amp;nbsp;&amp;nbsp;&amp;nbsp; Michael&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp2:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;ID, &lt;/P&gt;&lt;P&gt;MaxString(Name) as Name, &lt;/P&gt;&lt;P&gt;concat(Name, '---') as AllNames&lt;/P&gt;&lt;P&gt;Resident tmp group by ID; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701869#M702</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-03T14:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Unique IDs with singular related records</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701870#M703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Björn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701870#M703</guid>
      <dc:creator />
      <dc:date>2014-09-03T14:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unique IDs with singular related records</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701871#M704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;To get the result that I need it still requires &lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;where not exists([Dist_ID],ID)&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; font-style: normal;"&gt;condition. Thanks, though!&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 06:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Unique-IDs-with-singular-related-records/m-p/701871#M704</guid>
      <dc:creator />
      <dc:date>2014-09-04T06:39:18Z</dc:date>
    </item>
  </channel>
</rss>

