<?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: How do I create a script that randomizes Client names? See example. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521240#M194776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The company names are unique so they can be used as a key. They are large Fortune 500 companies. So for example, a company might be called General Industry. I want to create an anonymized name for that company (I called them the normalized names in my example table), so it could be Client 10. If the list of clients is 30 long. Then I want the normalized list to go from 1 to 30. But I don't want the Client number be in the same order as the alphabet because I don't want someone to guess that client 30 is for example, Zebra Electric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this explanation helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 14:40:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-16T14:40:44Z</dc:date>
    <item>
      <title>How do I create a script that randomizes Client names? See example.</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521236#M194772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a script that creates the normalized column names with non-repetitive numbers that are generated from 1 to the maximum number of clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Normalized&lt;BR /&gt;Company A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client 3&lt;/P&gt;&lt;P&gt;Company B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client 1&lt;/P&gt;&lt;P&gt;Company C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client 4&lt;/P&gt;&lt;P&gt;Company D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521236#M194772</guid>
      <dc:creator />
      <dc:date>2014-01-16T13:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a script that randomizes Client names? See example.</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521237#M194773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you want load script that looks something like this (example also attached):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Client ' &amp;amp; RecNo() as Normalized&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;Company, Client&lt;/P&gt;
&lt;P&gt;Company A, John Smith&lt;/P&gt;
&lt;P&gt;Company B, Jane Smith&lt;/P&gt;
&lt;P&gt;Company C, Joe Smith&lt;/P&gt;
&lt;P&gt;Company D, Janet Smith&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;DROP FIELD Client;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521237#M194773</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-16T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a script that randomizes Client names? See example.</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521238#M194774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your normalized representation is to be used as a key value, you can use autonumber() to generate consistent numbering across your script, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ... autonumber(Client, 'Client') AS Normalized, ...&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, 16 Jan 2014 14:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521238#M194774</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-01-16T14:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a script that randomizes Client names? See example.</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521239#M194775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/3540"&gt;Peter Cammaert&lt;/A&gt; is right about needing to use autonumber() if Client needs to be a key value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something else to think about...&amp;nbsp; You haven't given us a description on what Clients really are.&amp;nbsp; If they are people's names, like John Smith, if two different people have the same name, you will end up with the same Client # for them using autonumber, but a different Client # for them using RecNo().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think you need to take into consideration if you need Client as a key and what Client really is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521239#M194775</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-16T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a script that randomizes Client names? See example.</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521240#M194776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The company names are unique so they can be used as a key. They are large Fortune 500 companies. So for example, a company might be called General Industry. I want to create an anonymized name for that company (I called them the normalized names in my example table), so it could be Client 10. If the list of clients is 30 long. Then I want the normalized list to go from 1 to 30. But I don't want the Client number be in the same order as the alphabet because I don't want someone to guess that client 30 is for example, Zebra Electric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this explanation helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521240#M194776</guid>
      <dc:creator />
      <dc:date>2014-01-16T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a script that randomizes Client names? See example.</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521241#M194777</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;Autonumber will number them in the order they are read. If that is not sufficiently random, then you could use autonumberhash128 or autonumberhash256. The hashes should be anonymous. They are not guaranteed to be unique, but with no more than a few hundred names, the chances of a collision are infinitesimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 15:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521241#M194777</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-01-16T15:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a script that randomizes Client names? See example.</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521242#M194778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all. I ended up using the following. Jonathon was correct that the order of appearance of the clients in the data was random enough.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AutoNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CLIENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Client Norm] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 15:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-script-that-randomizes-Client-names-See/m-p/521242#M194778</guid>
      <dc:creator />
      <dc:date>2014-01-16T15:14:57Z</dc:date>
    </item>
  </channel>
</rss>

