<?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 Assign random person from one table to another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063038#M1223336</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table with dimensions Line and Bay. A line contains multiple bays.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also have a list of people tied to a line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the load script I need to randomly assign people to bays in their respective line. The amount of people in the random persons list matches the bays, so every named person&amp;nbsp; should be assigned their own bay.&amp;nbsp; &amp;nbsp;Sometimes a person may appear twice, in this scenario they should be assigned two bays for that line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A sample of the expected output would be&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Person&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="17" class="xl65" style="height: 12.75pt; width: 48pt;"&gt;
&lt;DIV style="font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Emil Ho&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay 2&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;
&lt;P&gt;Abel Luna&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay 3&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;
&lt;P&gt;Oscar Ward&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;BaysAndLine:
LOAD * INLINE [
    Line, Bay
    Line 1, Bay 1
    Line 1, Bay 2
    Line 1, Bay 3
    Line 1, Bay 4
    Line 1, Bay 5
    Line 1, Bay 6
    Line 1, Bay 7
    Line 1, Bay 8
    Line 1, Bay 9
    Line 1, Bay 10
    Line 1, Bay 11
    Line 1, Bay 12
    Line 1, Bay 13
    Line 1, Bay 14
    Line 1, Bay 15
    Line 1, Bay 16
    Line 1, Bay 17
    Line 1, Bay 18
    Line 1, Bay 19
    Line 1, Bay 20
    Line 1, Bay 21
    Line 1, Bay 22
    Line 1, Bay 23
    Line 1, Bay 24
    Line 1, Bay 25
    Line 1, Bay 26
    Line 2, Bay 1
    Line 2, Bay 2
    Line 2, Bay 3
    Line 2, Bay 4
    Line 2, Bay 5
    Line 2, Bay 6
    Line 2, Bay 7
    Line 2, Bay 8
    Line 2, Bay 9
    Line 2, Bay 10
    Line 2, Bay 11
    Line 2, Bay 12
    Line 2, Bay 13
    Line 2, Bay 14
    Line 2, Bay 15
    Line 2, Bay 16
    Line 2, Bay 17
    Line 2, Bay 18
    Line 2, Bay 19
    Line 2, Bay 20
    Line 2, Bay 21
    Line 2, Bay 22
    Line 2, Bay 23
    Line 2, Bay 24
    Line 2, Bay 25
    Line 2, Bay 26
];



LineAndPerson:
LOAD * INLINE [
    Line, Person
    Line 1, Emelia Bolton
    Line 1, Libbie Fuentes
    Line 1, Chantelle Horne
    Line 1, Adele Taylor
    Line 1, Samuel Cooke
    Line 1, Anna Burgess
    Line 1, Emil Ho
    Line 1, Lachlan Ingram
    Line 1, Amaan Mccormick
    Line 1, Rufus Mckay
    Line 1, Kobi Case
    Line 1, Abel Luna
    Line 1, Abel Luna
    Line 1, Katie Gray
    Line 1, Marianne Thomas
    Line 1, Herbie Kramer
    Line 1, Bridie Pace
    Line 1, Oscar Ward
    Line 1, Oscar Ward
    Line 1, Celine Irwin
    Line 1, Krish Beck
    Line 1, Zainab Patterson
    Line 1, Marwa Harrell
    Line 1, Esha Kirk
    Line 1, Mahdi Huff
    Line 1, Wayne Jean
    Line 2, Haaris Barnes
    Line 2, Yusuf Morris
    Line 2, Isla Huff
    Line 2, Sebastian Whitaker
    Line 2, Enzo Kent
    Line 2, Eden Banks
    Line 2, Jeffrey Underwood
    Line 2, Marilyn Haas
    Line 2, Darcy King
    Line 2, Bertie Matthams
    Line 2, Paula Horn
    Line 2, Gabrielle Lucero
    Line 2, Amira Mcguire
    Line 2, Mary Roman
    Line 2, Jenson Palmer
    Line 2, Jenson Palmer
    Line 2, Herbert Frank
    Line 2, Mikolaj Mckenzie
    Line 2, Kate Rich
    Line 2, Jose Ramsey
    Line 2, "Melody O'Quinn"
    Line 2, Jessie Brooks
    Line 2, Aryan Rubio
    Line 2, Theodore Brennan
    Line 2, Constance Faulkner
    Line 2, Derek Dunlap
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have never done this before and would appreciate if someone could point me in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 12:26:29 GMT</pubDate>
    <dc:creator>QlikMo</dc:creator>
    <dc:date>2023-04-21T12:26:29Z</dc:date>
    <item>
      <title>Assign random person from one table to another</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063038#M1223336</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table with dimensions Line and Bay. A line contains multiple bays.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also have a list of people tied to a line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the load script I need to randomly assign people to bays in their respective line. The amount of people in the random persons list matches the bays, so every named person&amp;nbsp; should be assigned their own bay.&amp;nbsp; &amp;nbsp;Sometimes a person may appear twice, in this scenario they should be assigned two bays for that line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A sample of the expected output would be&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Person&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="17" class="xl65" style="height: 12.75pt; width: 48pt;"&gt;
&lt;DIV style="font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Emil Ho&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay 2&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;
&lt;P&gt;Abel Luna&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Line 1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;Bay 3&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;
&lt;P&gt;Oscar Ward&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;BaysAndLine:
LOAD * INLINE [
    Line, Bay
    Line 1, Bay 1
    Line 1, Bay 2
    Line 1, Bay 3
    Line 1, Bay 4
    Line 1, Bay 5
    Line 1, Bay 6
    Line 1, Bay 7
    Line 1, Bay 8
    Line 1, Bay 9
    Line 1, Bay 10
    Line 1, Bay 11
    Line 1, Bay 12
    Line 1, Bay 13
    Line 1, Bay 14
    Line 1, Bay 15
    Line 1, Bay 16
    Line 1, Bay 17
    Line 1, Bay 18
    Line 1, Bay 19
    Line 1, Bay 20
    Line 1, Bay 21
    Line 1, Bay 22
    Line 1, Bay 23
    Line 1, Bay 24
    Line 1, Bay 25
    Line 1, Bay 26
    Line 2, Bay 1
    Line 2, Bay 2
    Line 2, Bay 3
    Line 2, Bay 4
    Line 2, Bay 5
    Line 2, Bay 6
    Line 2, Bay 7
    Line 2, Bay 8
    Line 2, Bay 9
    Line 2, Bay 10
    Line 2, Bay 11
    Line 2, Bay 12
    Line 2, Bay 13
    Line 2, Bay 14
    Line 2, Bay 15
    Line 2, Bay 16
    Line 2, Bay 17
    Line 2, Bay 18
    Line 2, Bay 19
    Line 2, Bay 20
    Line 2, Bay 21
    Line 2, Bay 22
    Line 2, Bay 23
    Line 2, Bay 24
    Line 2, Bay 25
    Line 2, Bay 26
];



LineAndPerson:
LOAD * INLINE [
    Line, Person
    Line 1, Emelia Bolton
    Line 1, Libbie Fuentes
    Line 1, Chantelle Horne
    Line 1, Adele Taylor
    Line 1, Samuel Cooke
    Line 1, Anna Burgess
    Line 1, Emil Ho
    Line 1, Lachlan Ingram
    Line 1, Amaan Mccormick
    Line 1, Rufus Mckay
    Line 1, Kobi Case
    Line 1, Abel Luna
    Line 1, Abel Luna
    Line 1, Katie Gray
    Line 1, Marianne Thomas
    Line 1, Herbie Kramer
    Line 1, Bridie Pace
    Line 1, Oscar Ward
    Line 1, Oscar Ward
    Line 1, Celine Irwin
    Line 1, Krish Beck
    Line 1, Zainab Patterson
    Line 1, Marwa Harrell
    Line 1, Esha Kirk
    Line 1, Mahdi Huff
    Line 1, Wayne Jean
    Line 2, Haaris Barnes
    Line 2, Yusuf Morris
    Line 2, Isla Huff
    Line 2, Sebastian Whitaker
    Line 2, Enzo Kent
    Line 2, Eden Banks
    Line 2, Jeffrey Underwood
    Line 2, Marilyn Haas
    Line 2, Darcy King
    Line 2, Bertie Matthams
    Line 2, Paula Horn
    Line 2, Gabrielle Lucero
    Line 2, Amira Mcguire
    Line 2, Mary Roman
    Line 2, Jenson Palmer
    Line 2, Jenson Palmer
    Line 2, Herbert Frank
    Line 2, Mikolaj Mckenzie
    Line 2, Kate Rich
    Line 2, Jose Ramsey
    Line 2, "Melody O'Quinn"
    Line 2, Jessie Brooks
    Line 2, Aryan Rubio
    Line 2, Theodore Brennan
    Line 2, Constance Faulkner
    Line 2, Derek Dunlap
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have never done this before and would appreciate if someone could point me in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 12:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063038#M1223336</guid>
      <dc:creator>QlikMo</dc:creator>
      <dc:date>2023-04-21T12:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random person from one table to another</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063649#M1223357</link>
      <description>&lt;P&gt;I've tried to adapt a script from the last post on this thread&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Random-numbers-without-repeating/m-p/127315" target="_self"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Random-numbers-without-repeating/m-p/127315&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikMo_0-1682339974911.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105637iA4A9A39E433BE158/image-size/large?v=v2&amp;amp;px=999" role="button" title="QlikMo_0-1682339974911.png" alt="QlikMo_0-1682339974911.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see (on the left) the number strings start going funny (not sure why)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TEAMS:
Load 
RecNo() as Person#,
Person

resident LineandPerson where Line='Line 1';


SIZE:
	LOAD Count(Person) AS size RESIDENT TEAMS;
	size = Peek('size');
	DROP TABLE SIZE;
	
ALLTEAMS: 
	LOAD Concat(Person#,'|') AS AllTeams RESIDENT TEAMS;
	AllTeams = Peek('AllTeams')&amp;amp;'|';
	DROP TABLE ALLTEAMS;	
	

PICKS:
	LOAD
	  RecNo() AS Pick#,
	  Replace( If(RecNo()=1, '$(AllTeams)', Peek('Remaining')), 
	  	SubField(If(RecNo()=1, '$(AllTeams)', Peek('Remaining')),'|',RandomPick) &amp;amp; '|','') AS Remaining,
	  SubField(If(RecNo()=1, '$(AllTeams)', Peek('Remaining')),'|',RandomPick) AS Person#,
	  RandomPick;
	LOAD
	  Ceil(Rand()*($(size)-(RecNo()-1))) AS RandomPick
	AUTOGENERATE $(size);

size=;
AllTeams=;	&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also tried to give each row a random number and do a join whilst sorting. This didn't work and gave me the same results after each reload.&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 12:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063649#M1223357</guid>
      <dc:creator>QlikMo</dc:creator>
      <dc:date>2023-04-24T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random person from one table to another</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063666#M1223358</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/147514"&gt;@QlikMo&lt;/a&gt;&amp;nbsp; try below. As you need to assign person randomly I have not perform any sort on data. In case if you want assignment based on alphabetical order of name, first you need to sort your data then apply autonumber and join with table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;BaysAndLine&lt;/FONT&gt;:&lt;BR /&gt;LOAD *, AutoNumber(RecNo(),Line) as &lt;FONT face="arial black,avant garde"&gt;Rank&lt;/FONT&gt; &lt;BR /&gt;INLINE [&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Line&lt;/FONT&gt;, Bay&lt;BR /&gt;Line 1, Bay 1&lt;BR /&gt;Line 1, Bay 2&lt;BR /&gt;Line 1, Bay 3&lt;BR /&gt;Line 1, Bay 4&lt;BR /&gt;Line 1, Bay 5&lt;BR /&gt;Line 1, Bay 6&lt;BR /&gt;Line 1, Bay 7&lt;BR /&gt;Line 1, Bay 8&lt;BR /&gt;Line 1, Bay 9&lt;BR /&gt;Line 1, Bay 10&lt;BR /&gt;Line 1, Bay 11&lt;BR /&gt;Line 1, Bay 12&lt;BR /&gt;Line 1, Bay 13&lt;BR /&gt;Line 1, Bay 14&lt;BR /&gt;Line 1, Bay 15&lt;BR /&gt;Line 1, Bay 16&lt;BR /&gt;Line 1, Bay 17&lt;BR /&gt;Line 1, Bay 18&lt;BR /&gt;Line 1, Bay 19&lt;BR /&gt;Line 1, Bay 20&lt;BR /&gt;Line 1, Bay 21&lt;BR /&gt;Line 1, Bay 22&lt;BR /&gt;Line 1, Bay 23&lt;BR /&gt;Line 1, Bay 24&lt;BR /&gt;Line 1, Bay 25&lt;BR /&gt;Line 1, Bay 26&lt;BR /&gt;Line 2, Bay 1&lt;BR /&gt;Line 2, Bay 2&lt;BR /&gt;Line 2, Bay 3&lt;BR /&gt;Line 2, Bay 4&lt;BR /&gt;Line 2, Bay 5&lt;BR /&gt;Line 2, Bay 6&lt;BR /&gt;Line 2, Bay 7&lt;BR /&gt;Line 2, Bay 8&lt;BR /&gt;Line 2, Bay 9&lt;BR /&gt;Line 2, Bay 10&lt;BR /&gt;Line 2, Bay 11&lt;BR /&gt;Line 2, Bay 12&lt;BR /&gt;Line 2, Bay 13&lt;BR /&gt;Line 2, Bay 14&lt;BR /&gt;Line 2, Bay 15&lt;BR /&gt;Line 2, Bay 16&lt;BR /&gt;Line 2, Bay 17&lt;BR /&gt;Line 2, Bay 18&lt;BR /&gt;Line 2, Bay 19&lt;BR /&gt;Line 2, Bay 20&lt;BR /&gt;Line 2, Bay 21&lt;BR /&gt;Line 2, Bay 22&lt;BR /&gt;Line 2, Bay 23&lt;BR /&gt;Line 2, Bay 24&lt;BR /&gt;Line 2, Bay 25&lt;BR /&gt;Line 2, Bay 26&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;Join (BaysAndLine)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;LOAD *,AutoNumber(RecNo(),Line) as &lt;FONT face="arial black,avant garde"&gt;Rank&lt;/FONT&gt; &lt;BR /&gt;INLINE [&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Line&lt;/FONT&gt;, Person&lt;BR /&gt;Line 1, Emelia Bolton&lt;BR /&gt;Line 1, Libbie Fuentes&lt;BR /&gt;Line 1, Chantelle Horne&lt;BR /&gt;Line 1, Adele Taylor&lt;BR /&gt;Line 1, Samuel Cooke&lt;BR /&gt;Line 1, Anna Burgess&lt;BR /&gt;Line 1, Emil Ho&lt;BR /&gt;Line 1, Lachlan Ingram&lt;BR /&gt;Line 1, Amaan Mccormick&lt;BR /&gt;Line 1, Rufus Mckay&lt;BR /&gt;Line 1, Kobi Case&lt;BR /&gt;Line 1, Abel Luna&lt;BR /&gt;Line 1, Abel Luna&lt;BR /&gt;Line 1, Katie Gray&lt;BR /&gt;Line 1, Marianne Thomas&lt;BR /&gt;Line 1, Herbie Kramer&lt;BR /&gt;Line 1, Bridie Pace&lt;BR /&gt;Line 1, Oscar Ward&lt;BR /&gt;Line 1, Oscar Ward&lt;BR /&gt;Line 1, Celine Irwin&lt;BR /&gt;Line 1, Krish Beck&lt;BR /&gt;Line 1, Zainab Patterson&lt;BR /&gt;Line 1, Marwa Harrell&lt;BR /&gt;Line 1, Esha Kirk&lt;BR /&gt;Line 1, Mahdi Huff&lt;BR /&gt;Line 1, Wayne Jean&lt;BR /&gt;Line 2, Haaris Barnes&lt;BR /&gt;Line 2, Yusuf Morris&lt;BR /&gt;Line 2, Isla Huff&lt;BR /&gt;Line 2, Sebastian Whitaker&lt;BR /&gt;Line 2, Enzo Kent&lt;BR /&gt;Line 2, Eden Banks&lt;BR /&gt;Line 2, Jeffrey Underwood&lt;BR /&gt;Line 2, Marilyn Haas&lt;BR /&gt;Line 2, Darcy King&lt;BR /&gt;Line 2, Bertie Matthams&lt;BR /&gt;Line 2, Paula Horn&lt;BR /&gt;Line 2, Gabrielle Lucero&lt;BR /&gt;Line 2, Amira Mcguire&lt;BR /&gt;Line 2, Mary Roman&lt;BR /&gt;Line 2, Jenson Palmer&lt;BR /&gt;Line 2, Jenson Palmer&lt;BR /&gt;Line 2, Herbert Frank&lt;BR /&gt;Line 2, Mikolaj Mckenzie&lt;BR /&gt;Line 2, Kate Rich&lt;BR /&gt;Line 2, Jose Ramsey&lt;BR /&gt;Line 2, "Melody O'Quinn"&lt;BR /&gt;Line 2, Jessie Brooks&lt;BR /&gt;Line 2, Aryan Rubio&lt;BR /&gt;Line 2, Theodore Brennan&lt;BR /&gt;Line 2, Constance Faulkner&lt;BR /&gt;Line 2, Derek Dunlap&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 12:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063666#M1223358</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-04-24T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random person from one table to another</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063677#M1223359</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-MVP"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link" aria-disabled="true"&gt;&lt;SPAN class="login-bold"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Many thanks for your reply. Your script does work but the random assignments stay the same after each reload. I need a way to make them random after each reload (Sorry I realise I wasn't clear about this point in my original post)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063677#M1223359</guid>
      <dc:creator>QlikMo</dc:creator>
      <dc:date>2023-04-24T13:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random person from one table to another</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063725#M1223363</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/147514"&gt;@QlikMo&lt;/a&gt;&amp;nbsp; just to make sure that Random number not repeating, try to multiply actual record count with random number like below&lt;/P&gt;
&lt;P&gt;BaysAndLine:&lt;BR /&gt;LOAD *, AutoNumber(RecNo(),Line) as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="arial black,avant garde"&gt;Rank&lt;/FONT&gt;&lt;BR /&gt;INLINE [&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Line&lt;/FONT&gt;, Bay&lt;BR /&gt;Line 1, Bay 1&lt;BR /&gt;Line 1, Bay 2&lt;BR /&gt;Line 1, Bay 3&lt;BR /&gt;Line 1, Bay 4&lt;BR /&gt;Line 1, Bay 5&lt;BR /&gt;Line 1, Bay 6&lt;BR /&gt;Line 1, Bay 7&lt;BR /&gt;Line 1, Bay 8&lt;BR /&gt;Line 1, Bay 9&lt;BR /&gt;Line 1, Bay 10&lt;BR /&gt;Line 1, Bay 11&lt;BR /&gt;Line 1, Bay 12&lt;BR /&gt;Line 1, Bay 13&lt;BR /&gt;Line 1, Bay 14&lt;BR /&gt;Line 1, Bay 15&lt;BR /&gt;Line 1, Bay 16&lt;BR /&gt;Line 1, Bay 17&lt;BR /&gt;Line 1, Bay 18&lt;BR /&gt;Line 1, Bay 19&lt;BR /&gt;Line 1, Bay 20&lt;BR /&gt;Line 1, Bay 21&lt;BR /&gt;Line 1, Bay 22&lt;BR /&gt;Line 1, Bay 23&lt;BR /&gt;Line 1, Bay 24&lt;BR /&gt;Line 1, Bay 25&lt;BR /&gt;Line 1, Bay 26&lt;BR /&gt;Line 2, Bay 1&lt;BR /&gt;Line 2, Bay 2&lt;BR /&gt;Line 2, Bay 3&lt;BR /&gt;Line 2, Bay 4&lt;BR /&gt;Line 2, Bay 5&lt;BR /&gt;Line 2, Bay 6&lt;BR /&gt;Line 2, Bay 7&lt;BR /&gt;Line 2, Bay 8&lt;BR /&gt;Line 2, Bay 9&lt;BR /&gt;Line 2, Bay 10&lt;BR /&gt;Line 2, Bay 11&lt;BR /&gt;Line 2, Bay 12&lt;BR /&gt;Line 2, Bay 13&lt;BR /&gt;Line 2, Bay 14&lt;BR /&gt;Line 2, Bay 15&lt;BR /&gt;Line 2, Bay 16&lt;BR /&gt;Line 2, Bay 17&lt;BR /&gt;Line 2, Bay 18&lt;BR /&gt;Line 2, Bay 19&lt;BR /&gt;Line 2, Bay 20&lt;BR /&gt;Line 2, Bay 21&lt;BR /&gt;Line 2, Bay 22&lt;BR /&gt;Line 2, Bay 23&lt;BR /&gt;Line 2, Bay 24&lt;BR /&gt;Line 2, Bay 25&lt;BR /&gt;Line 2, Bay 26&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;let vRecords = NoOfRows('BaysAndLine');&lt;/P&gt;
&lt;P&gt;LineAndPerson:&lt;BR /&gt;LOAD *,round(Rand()*((&lt;FONT color="#FF0000"&gt;$(vRecords)*10&lt;/FONT&gt;)-1)+1) as Random_Number&lt;BR /&gt;INLINE [&lt;BR /&gt;Line, Person&lt;BR /&gt;Line 1, Emelia Bolton&lt;BR /&gt;Line 1, Libbie Fuentes&lt;BR /&gt;Line 1, Chantelle Horne&lt;BR /&gt;Line 1, Adele Taylor&lt;BR /&gt;Line 1, Samuel Cooke&lt;BR /&gt;Line 1, Anna Burgess&lt;BR /&gt;Line 1, Emil Ho&lt;BR /&gt;Line 1, Lachlan Ingram&lt;BR /&gt;Line 1, Amaan Mccormick&lt;BR /&gt;Line 1, Rufus Mckay&lt;BR /&gt;Line 1, Kobi Case&lt;BR /&gt;Line 1, Abel Luna&lt;BR /&gt;Line 1, Abel Luna&lt;BR /&gt;Line 1, Katie Gray&lt;BR /&gt;Line 1, Marianne Thomas&lt;BR /&gt;Line 1, Herbie Kramer&lt;BR /&gt;Line 1, Bridie Pace&lt;BR /&gt;Line 1, Oscar Ward&lt;BR /&gt;Line 1, Oscar Ward&lt;BR /&gt;Line 1, Celine Irwin&lt;BR /&gt;Line 1, Krish Beck&lt;BR /&gt;Line 1, Zainab Patterson&lt;BR /&gt;Line 1, Marwa Harrell&lt;BR /&gt;Line 1, Esha Kirk&lt;BR /&gt;Line 1, Mahdi Huff&lt;BR /&gt;Line 1, Wayne Jean&lt;BR /&gt;Line 2, Haaris Barnes&lt;BR /&gt;Line 2, Yusuf Morris&lt;BR /&gt;Line 2, Isla Huff&lt;BR /&gt;Line 2, Sebastian Whitaker&lt;BR /&gt;Line 2, Enzo Kent&lt;BR /&gt;Line 2, Eden Banks&lt;BR /&gt;Line 2, Jeffrey Underwood&lt;BR /&gt;Line 2, Marilyn Haas&lt;BR /&gt;Line 2, Darcy King&lt;BR /&gt;Line 2, Bertie Matthams&lt;BR /&gt;Line 2, Paula Horn&lt;BR /&gt;Line 2, Gabrielle Lucero&lt;BR /&gt;Line 2, Amira Mcguire&lt;BR /&gt;Line 2, Mary Roman&lt;BR /&gt;Line 2, Jenson Palmer&lt;BR /&gt;Line 2, Jenson Palmer&lt;BR /&gt;Line 2, Herbert Frank&lt;BR /&gt;Line 2, Mikolaj Mckenzie&lt;BR /&gt;Line 2, Kate Rich&lt;BR /&gt;Line 2, Jose Ramsey&lt;BR /&gt;Line 2, "Melody O'Quinn"&lt;BR /&gt;Line 2, Jessie Brooks&lt;BR /&gt;Line 2, Aryan Rubio&lt;BR /&gt;Line 2, Theodore Brennan&lt;BR /&gt;Line 2, Constance Faulkner&lt;BR /&gt;Line 2, Derek Dunlap&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Join&lt;/FONT&gt;(&lt;FONT face="arial black,avant garde"&gt;BaysAndLine&lt;/FONT&gt;)&lt;BR /&gt;Load AutoNumber(RecNo(),Line) as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="arial black,avant garde"&gt;Rank&lt;/FONT&gt;,&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Line&lt;/FONT&gt;,&lt;BR /&gt;Person&lt;BR /&gt;Resident LineAndPerson&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Order by Line,Random_Number;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Drop Table LineAndPerson;&lt;/P&gt;
&lt;P&gt;Drop Field Rank;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063725#M1223363</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-04-24T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Assign random person from one table to another</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063777#M1223366</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;you legend!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen people multiply rand() but never fully understood why, now I do. Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-random-person-from-one-table-to-another/m-p/2063777#M1223366</guid>
      <dc:creator>QlikMo</dc:creator>
      <dc:date>2023-04-24T15:14:13Z</dc:date>
    </item>
  </channel>
</rss>

