<?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 Different random samples in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-random-samples/m-p/1187454#M384054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a random sample of values stored in a list box (Änderungsbelegnr). The user is supposed to decide on the sample size by entering a certain value in an Input Box.&lt;/P&gt;&lt;P&gt;I already managed to create a random sample according to what is entered into the Input Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need this random sample to change everytime the user enters a value into the Input Box.&lt;/P&gt;&lt;P&gt;What happens right now is that the random sample stays the same when the sample size is kept the same.&lt;/P&gt;&lt;P&gt;Meaning entering "3" in my Input box twice in a row will give me the same three random values.&lt;/P&gt;&lt;P&gt;I need them to be different though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my current expression for the random sample:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rand&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vSampleSize&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Änderungsbelegnr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Änderungsbelegnr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()), ', ')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Help very much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 06:44:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-19T06:44:35Z</dc:date>
    <item>
      <title>Different random samples</title>
      <link>https://community.qlik.com/t5/QlikView/Different-random-samples/m-p/1187454#M384054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a random sample of values stored in a list box (Änderungsbelegnr). The user is supposed to decide on the sample size by entering a certain value in an Input Box.&lt;/P&gt;&lt;P&gt;I already managed to create a random sample according to what is entered into the Input Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need this random sample to change everytime the user enters a value into the Input Box.&lt;/P&gt;&lt;P&gt;What happens right now is that the random sample stays the same when the sample size is kept the same.&lt;/P&gt;&lt;P&gt;Meaning entering "3" in my Input box twice in a row will give me the same three random values.&lt;/P&gt;&lt;P&gt;I need them to be different though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my current expression for the random sample:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rand&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vSampleSize&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Änderungsbelegnr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Änderungsbelegnr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()), ', ')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Help very much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 06:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-random-samples/m-p/1187454#M384054</guid>
      <dc:creator />
      <dc:date>2016-09-19T06:44:35Z</dc:date>
    </item>
  </channel>
</rss>

