<?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 Rand and Peek in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rand-and-Peek/m-p/882804#M1016924</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;Please help to explain the two expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14285694095507918 jive_text_macro" jivemacro_uid="_14285694095507918"&gt;
&lt;P&gt;Let vRnd = Floor(Rand() * $(vCustCount));&amp;nbsp;&amp;nbsp; //( vCustCount=FieldValueCount('CustomerID');)&lt;/P&gt;
&lt;P&gt;Let vCID = Peek('CustomerID', $(vRnd), 'Customer');&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1001&lt;/P&gt;&lt;P&gt;1002&lt;/P&gt;&lt;P&gt;1003&lt;/P&gt;&lt;P&gt;1004&lt;/P&gt;&lt;P&gt;1005&lt;/P&gt;&lt;P&gt;1006&lt;/P&gt;&lt;P&gt;1007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 08:50:25 GMT</pubDate>
    <dc:creator>qlikviewwizard</dc:creator>
    <dc:date>2015-04-09T08:50:25Z</dc:date>
    <item>
      <title>Rand and Peek</title>
      <link>https://community.qlik.com/t5/QlikView/Rand-and-Peek/m-p/882804#M1016924</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;Please help to explain the two expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14285694095507918 jive_text_macro" jivemacro_uid="_14285694095507918"&gt;
&lt;P&gt;Let vRnd = Floor(Rand() * $(vCustCount));&amp;nbsp;&amp;nbsp; //( vCustCount=FieldValueCount('CustomerID');)&lt;/P&gt;
&lt;P&gt;Let vCID = Peek('CustomerID', $(vRnd), 'Customer');&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1001&lt;/P&gt;&lt;P&gt;1002&lt;/P&gt;&lt;P&gt;1003&lt;/P&gt;&lt;P&gt;1004&lt;/P&gt;&lt;P&gt;1005&lt;/P&gt;&lt;P&gt;1006&lt;/P&gt;&lt;P&gt;1007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rand-and-Peek/m-p/882804#M1016924</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-04-09T08:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rand and Peek</title>
      <link>https://community.qlik.com/t5/QlikView/Rand-and-Peek/m-p/882805#M1016925</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;It's selection random CustomerID&lt;/P&gt;&lt;P&gt;First expression selects random row in customer&lt;/P&gt;&lt;P&gt;Second expression selects CustomerID for selected row above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rand-and-Peek/m-p/882805#M1016925</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-04-09T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rand and Peek</title>
      <link>https://community.qlik.com/t5/QlikView/Rand-and-Peek/m-p/882806#M1016926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first expression selects a row number from the CustomerID field and the second one selects a CustomerID based on the row number calculated before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 09:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rand-and-Peek/m-p/882806#M1016926</guid>
      <dc:creator>jsanchezh</dc:creator>
      <dc:date>2015-04-09T09:06:25Z</dc:date>
    </item>
  </channel>
</rss>

