<?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: Assign random number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834665#M660176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RowNo() as ID is not working for you..&lt;/P&gt;&lt;P&gt;Or you are looking for something different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide little 5-6 line sample with your required output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 10:24:31 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-04-01T10:24:31Z</dc:date>
    <item>
      <title>Assign random number</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834664#M660175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of around 750.000 lines, in which around 20 products are comprised over these lines. My issue is that the table is ordered on the product type, and so product 1 will be stting in the first lines, and product 20 in the last lines (I don't easily know how many lines each product has).&lt;/P&gt;&lt;P&gt;My wish is to assign a random number (from 1 to 750.000) to each line in the table, so that when I order the table on the random number, all products are mixed. I've looked at Autonumber and Rand, but those don't seem to be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other solution possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 10:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834664#M660175</guid>
      <dc:creator>puttemans</dc:creator>
      <dc:date>2015-04-01T10:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random number</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834665#M660176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RowNo() as ID is not working for you..&lt;/P&gt;&lt;P&gt;Or you are looking for something different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide little 5-6 line sample with your required output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 10:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834665#M660176</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-01T10:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random number</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834666#M660177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try ceil(Rand()*750000))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 10:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834666#M660177</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-01T10:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random number</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834667#M660178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this does the job perfectly. With the function, I now get an average that has only a spread between the different products of around 35.000, whereas it used to be 12.100.000 with the ordered table. So this is certainly an improvement. (average calculated over either the line ID = rowno and the solution above)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 11:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-number/m-p/834667#M660178</guid>
      <dc:creator>puttemans</dc:creator>
      <dc:date>2015-04-01T11:29:05Z</dc:date>
    </item>
  </channel>
</rss>

