<?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: How to create Random Values in an existing table with numerical, text, and null values in a single field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041080#M636730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Random &amp;lt;0.1,NULL(), if(Random &amp;gt; 0.9,'No Order ID', floor(RAND()*187999)+2001)) as OrdeID;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAND() as Random,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OtherField&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 11:04:50 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-15T11:04:50Z</dc:date>
    <item>
      <title>How to create Random Values in an existing table with numerical, text, and null values in a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041079#M636729</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;How to create Random Values in an existing table with numerical, text, and null values in a single field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create random OrderID's starting from 2001 to 190000, some of these must be null and some should say "No Order ID". This would all be in an OrderID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have a table I just have to create the above in there. Any idea how to do this? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041079#M636729</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-04-15T11:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Random Values in an existing table with numerical, text, and null values in a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041080#M636730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Random &amp;lt;0.1,NULL(), if(Random &amp;gt; 0.9,'No Order ID', floor(RAND()*187999)+2001)) as OrdeID;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAND() as Random,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OtherField&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041080#M636730</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T11:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Random Values in an existing table with numerical, text, and null values in a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041081#M636731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing this doesn't randomly generate is some null values. Any idea how to alter it to produce some null values? The other two requirements are met. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041081#M636731</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-04-15T11:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Random Values in an existing table with numerical, text, and null values in a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041082#M636732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does generate about 10% nulls. Why do you think it doesn't? Because you don't see nulls in a listbox? That's because null isn't a value so it won't show up in a listbox object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041082#M636732</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-15T11:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Random Values in an existing table with numerical, text, and null values in a single field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041083#M636733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right, I missed that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 12:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Random-Values-in-an-existing-table-with-numerical/m-p/1041083#M636733</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-04-15T12:24:50Z</dc:date>
    </item>
  </channel>
</rss>

