<?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: Random Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533210#M199173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if I need to create random dates between two specific dates? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jan 2014 12:46:25 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-01-19T12:46:25Z</dc:date>
    <item>
      <title>Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533204#M199167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone post a script to generate random sales data in qlikview...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need is &lt;/P&gt;&lt;P&gt;Customer Name,&lt;/P&gt;&lt;P&gt;Invoice Date&lt;/P&gt;&lt;P&gt;Invoice Value&lt;/P&gt;&lt;P&gt;Invoice Number.....etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 10:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533204#M199167</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-19T10:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533205#M199168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Hi Manish,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;You can make up the data using QlikView functions like Rand(), Autogenerate and other Date functions. Something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Floor(Rand() * 10000) AS [Invoice Value]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;AutoGenerate 10;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;You can add whatever you need for [Customer Name]. Or you can also check this website where you can find loads of free data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;&lt;A href="http://www.infochimps.com/tags/sales" title="http://www.infochimps.com/tags/sales"&gt;http://www.infochimps.com/tags/sales&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'trebuchet ms', geneva;"&gt;&lt;A href="http://www.QlikShare.com/"&gt;www.QlikShare.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 11:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533205#M199168</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-01-19T11:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533206#M199169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Shortcut key Ctrl +Q in Script Editor.... Random Load code will be generated...and then modify it as required...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 11:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533206#M199169</guid>
      <dc:creator />
      <dc:date>2014-01-19T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533207#M199170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the RAND() function to generate random values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;'Customer'&amp;amp;Ceil(RAND()*100) as CustomerName,&lt;/P&gt;&lt;P&gt;Date(makedate(2012)+floor(RAND()*(2*365+1))) as InvoiceDate,&lt;/P&gt;&lt;P&gt;round(RAND()*1000+50,10) as InvoiceValue,&lt;/P&gt;&lt;P&gt;recno() as InvoiceNo&lt;/P&gt;&lt;P&gt;autogenerate 1000;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 12:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533207#M199170</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-19T12:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533208#M199171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Can you specify below&lt;/P&gt;&lt;P&gt;floor(RAND()*(2*365+1)))&lt;/P&gt;&lt;P&gt;Is there any speciallogic of 2*365+1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit : also what if I need dates between 01/01/2012 to today? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 12:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533208#M199171</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-19T12:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533209#M199172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, no special logic. It just creates values in the range of 2 years including a leap year (to add upon start date 2012 Jan 1st).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 12:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533209#M199172</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-19T12:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533210#M199173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if I need to create random dates between two specific dates? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 12:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533210#M199173</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-19T12:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Random Data</title>
      <link>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533211#M199174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just replace the factor for RAND() function with the number of days in your interval:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(makedate(2012,1,1)+floor(RAND()*(makedate(2013,12,31)-makedate(2012,1,1)+1))) as InvoiceDate,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 12:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Random-Data/m-p/533211#M199174</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-19T12:50:46Z</dc:date>
    </item>
  </channel>
</rss>

