<?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 ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236661#M621194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ID field in my qlikview document that is considered personal/sensitive data that cannot be shown to other users. I am creating a report that needs to be grouped by this field, so i want to create a secondary ID field, based on the unique values in the original ID field, so that this new ID can be used on the report and sent to users.&lt;/P&gt;&lt;P&gt;Any ideas? I tried autonumber(Orginial ID) and it froze my entire qlikview instance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 15:41:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-21T15:41:45Z</dc:date>
    <item>
      <title>Creating a unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236661#M621194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ID field in my qlikview document that is considered personal/sensitive data that cannot be shown to other users. I am creating a report that needs to be grouped by this field, so i want to create a secondary ID field, based on the unique values in the original ID field, so that this new ID can be used on the report and sent to users.&lt;/P&gt;&lt;P&gt;Any ideas? I tried autonumber(Orginial ID) and it froze my entire qlikview instance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236661#M621194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-21T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236662#M621195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much data do you have? Another approach would be to use Peek/Previous to create a unique ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Original ID],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;SPAN style="font-size: 13.3333px;"&gt;[Original ID]&lt;/SPAN&gt; = Previous(&lt;SPAN style="font-size: 13.3333px;"&gt;[Original ID]&lt;/SPAN&gt;), Peek('UniqueID'), RangeSum(&lt;SPAN style="font-size: 13.3333px;"&gt;Peek('UniqueID')&lt;/SPAN&gt;, 1)) as &lt;SPAN style="font-size: 13.3333px;"&gt;UniqueID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Order By &lt;SPAN style="font-size: 13.3333px;"&gt;[Original ID]&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236662#M621195</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-21T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236663#M621196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above does not work... how about using &lt;SPAN style="font-size: 10pt;"&gt;RowNo() when loading the data to give the row a Unique ID...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if needed, you can import the distinct version of your ID with the row number and then use table joins to move the Row Number ID around to other tables in QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (Data)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;RESIDENT UniqueIDs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then drop the field\tables once finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This probably means the Row ID to your UNID changes with every data load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236663#M621196</guid>
      <dc:creator />
      <dc:date>2017-02-21T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236664#M621197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked! Thank you so much. One last question, will these IDs change every time we reload the document? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 16:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236664#M621197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-21T16:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236665#M621198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They might change based on different the order of [Original ID]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236665#M621198</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-21T21:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a unique ID</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236666#M621199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final_Data:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Id]=Previous([Id]),Peek('UniqueID'),RangeSum(Peek('UniqueID'),1)) as UniqueID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Final&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 06:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-unique-ID/m-p/1236666#M621199</guid>
      <dc:creator />
      <dc:date>2017-02-22T06:59:40Z</dc:date>
    </item>
  </channel>
</rss>

