<?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 Creating a unique record list in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205150#M61753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post, and I´m quite new to Qlikview. I got this problem at work, and i can´t figure out a solution.&lt;/P&gt;&lt;P&gt;In the file attached, there are two tables. One with the information I currently have, and the other with the information filtered the way i need.&lt;/P&gt;&lt;P&gt;As you can see, i have two different names with the same code (Vacant and Neil, both with code 1). What i need is to create a table with unique records. In case of a code with multiple names, i need to get the newest name (according to the period row). The resulting table that i need is shown in the attached file (by the right side). How can I do this within Qlikview?&lt;/P&gt;&lt;P&gt;I need a solution which doesn´t include macros, due to security reasons at my workplace.&lt;/P&gt;&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gustavo - Brazil - São Paulo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 02:23:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-08T02:23:46Z</dc:date>
    <item>
      <title>Creating a unique record list</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205150#M61753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post, and I´m quite new to Qlikview. I got this problem at work, and i can´t figure out a solution.&lt;/P&gt;&lt;P&gt;In the file attached, there are two tables. One with the information I currently have, and the other with the information filtered the way i need.&lt;/P&gt;&lt;P&gt;As you can see, i have two different names with the same code (Vacant and Neil, both with code 1). What i need is to create a table with unique records. In case of a code with multiple names, i need to get the newest name (according to the period row). The resulting table that i need is shown in the attached file (by the right side). How can I do this within Qlikview?&lt;/P&gt;&lt;P&gt;I need a solution which doesn´t include macros, due to security reasons at my workplace.&lt;/P&gt;&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gustavo - Brazil - São Paulo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 02:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205150#M61753</guid>
      <dc:creator />
      <dc:date>2010-01-08T02:23:46Z</dc:date>
    </item>
    <item>
      <title>Creating a unique record list</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205151#M61754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gustavo,&lt;/P&gt;&lt;P&gt;I'd use Autonumber function. With that function (among others, but this one is very simple and powerful), you will create a unique number to identify objects. It's a way to create, based on the information you actually have (your field values) something like a "key". Using your example, try something like&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD Autonumber(Period &amp;amp; Name) AS KEY, * FROM yourtablepathhere&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;AS the combination of both gives a unique, non redundant result, autonumber will create a unique number so you can easily identify that record using the same Autonumber function when retrieving information from another table with the very same field values. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 08:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205151#M61754</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-01-08T08:27:32Z</dc:date>
    </item>
    <item>
      <title>Creating a unique record list</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205152#M61755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;First get the max value for each code:&lt;BR /&gt;Load&lt;BR /&gt;Code,&lt;BR /&gt;max(Period) as Period&lt;BR /&gt;from file.xls group by Code;&lt;/P&gt;&lt;P&gt;Then join with the name for given Period/Code:&lt;BR /&gt;Left join load&lt;BR /&gt;Code,&lt;BR /&gt;Period,&lt;BR /&gt;Name&lt;BR /&gt;from file.xls;&lt;/P&gt;&lt;P&gt;You can also do it all in one step as well, like this:&lt;BR /&gt;Load&lt;BR /&gt;Code,&lt;BR /&gt;max(Period) as Period,&lt;BR /&gt;firstsortedvalue(Name, -Period) as Name&lt;BR /&gt;from file.xls;&lt;/P&gt;&lt;P&gt;Look in the helpfile for aggregation functions to get more info.&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 08:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205152#M61755</guid>
      <dc:creator />
      <dc:date>2010-01-08T08:39:11Z</dc:date>
    </item>
    <item>
      <title>Creating a unique record list</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205153#M61756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gustavo,&lt;/P&gt;&lt;P&gt;here you go.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 08:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205153#M61756</guid>
      <dc:creator />
      <dc:date>2010-01-08T08:42:06Z</dc:date>
    </item>
    <item>
      <title>Creating a unique record list</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205154#M61757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tks guys! the attached qvw did the job for me! Once again, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2010 21:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-record-list/m-p/205154#M61757</guid>
      <dc:creator />
      <dc:date>2010-01-10T21:56:54Z</dc:date>
    </item>
  </channel>
</rss>

