<?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: Re: Re: Random % selection of data sample in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703719#M253823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently there isn't an OnClear trigger but a commonly suggested workaround is to add the trigger OnAnySelect and count the current selections.&amp;nbsp; If this is zero then the Clear button has been pressed.&amp;nbsp; I used this to set the variable behind the slider to 100%, see attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2014 18:22:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-25T18:22:09Z</dc:date>
    <item>
      <title>Random % selection of data sample</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703714#M253818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question for the group on best approach and is it possible? If so how?&lt;/P&gt;&lt;P&gt;I have an app, with data loaded in memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the end user to be able to randomly select a % sample of the data without reloading it based upon a slider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e If The app has 1000 records loaded into memory and the user decides they want a random sample of 30% of the data within the graphs, listboxes etc, they move the slider to 30% and the app selects the random 30% from memory.&lt;/P&gt;&lt;P&gt;Clicking back/clear resets the records to the full 1000 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I have the ability to do this on load , thanks to help from Gysbert and using Sample (n) already)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 12:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703714#M253818</guid>
      <dc:creator />
      <dc:date>2014-06-18T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Random % selection of data sample</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703715#M253819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further details (since Robin is helping me with this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this article we were able to define a random sample within the app by manually entering an expression into the listbox:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewmaven.blogspot.com/2010/09/random-sample-selection.html" title="http://qlikviewmaven.blogspot.com/2010/09/random-sample-selection.html"&gt;QlikView Maven: Random Sample Selection&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, &lt;STRONG style="color: #333333; font-family: Verdana, sans-serif; background-color: #e0e0e0;"&gt;=rand()&amp;lt;=0.2+now()*0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than have to enter this each time, we'd like to have a slider that the user could adjust and have the random sample criteria be applied.&amp;nbsp; Example data is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703715#M253819</guid>
      <dc:creator />
      <dc:date>2014-06-25T12:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Random % selection of data sample</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703716#M253820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use trigger on a variable linked to a slider. Se attached example.&lt;/P&gt;&lt;P&gt;This is only working if you clear the account field before you use the slider.&lt;/P&gt;&lt;P&gt;Didn't get it to clear the field in the trigger... weird.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 15:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703716#M253820</guid>
      <dc:creator />
      <dc:date>2014-06-25T15:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Random % selection of data sample</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703717#M253821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 15:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703717#M253821</guid>
      <dc:creator />
      <dc:date>2014-06-25T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Random % selection of data sample</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703718#M253822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Splendid, thanks Martin!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 17:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703718#M253822</guid>
      <dc:creator />
      <dc:date>2014-06-25T17:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Random % selection of data sample</title>
      <link>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703719#M253823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently there isn't an OnClear trigger but a commonly suggested workaround is to add the trigger OnAnySelect and count the current selections.&amp;nbsp; If this is zero then the Clear button has been pressed.&amp;nbsp; I used this to set the variable behind the slider to 100%, see attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 18:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-selection-of-data-sample/m-p/703719#M253823</guid>
      <dc:creator />
      <dc:date>2014-06-25T18:22:09Z</dc:date>
    </item>
  </channel>
</rss>

