<?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: Show random rows in a table every time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504504#M103780</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9788"&gt;@qlikwiz123&lt;/a&gt;&amp;nbsp;You can debug it with 50 as a row limit&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 03:30:13 GMT</pubDate>
    <dc:creator>Bhushan_Mahajan</dc:creator>
    <dc:date>2025-02-05T03:30:13Z</dc:date>
    <item>
      <title>Show random rows in a table every time</title>
      <link>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504493#M103778</link>
      <description>&lt;P&gt;I created a data table. How do I show 50 random rows from a field in the table? Every time user refreshes the data, the table should show only 50 randomly selected values from that field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 23:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504493#M103778</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2025-02-04T23:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show random rows in a table every time</title>
      <link>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504504#M103780</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9788"&gt;@qlikwiz123&lt;/a&gt;&amp;nbsp;You can debug it with 50 as a row limit&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 03:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504504#M103780</guid>
      <dc:creator>Bhushan_Mahajan</dc:creator>
      <dc:date>2025-02-05T03:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show random rows in a table every time</title>
      <link>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504530#M103789</link>
      <description>&lt;P&gt;Do you want to do this in script or a chart?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 07:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504530#M103789</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-02-05T07:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show random rows in a table every time</title>
      <link>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504676#M103824</link>
      <description>&lt;P&gt;Hi, either way works for me. Doing at chart level might slow down the chart load but I would like to try both and see which one performs better &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 19:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504676#M103824</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2025-02-05T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show random rows in a table every time</title>
      <link>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504703#M103826</link>
      <description>&lt;P&gt;For script, you can do something like:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Sample:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Value as Sample&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Resident Data&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Where Rand() &amp;gt; 0.8 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;and RowNo() &amp;lt;= 50;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;You can play with the Rand() limit but the RowNo() will limit you to 50 rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For chart, I'm not sure how you can limit to 50, but you could get a set of random values as:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Aggr(if (Rand() &amp;gt; 0.8, Value), Value)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 00:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-random-rows-in-a-table-every-time/m-p/2504703#M103826</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-02-06T00:30:37Z</dc:date>
    </item>
  </channel>
</rss>

