<?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: AutoGenerate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013198#M640569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer (and optionally Helpful Answers).&lt;/P&gt;&lt;P&gt;If not, please make clear what part you still need help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 16:35:53 GMT</pubDate>
    <dc:creator>oknotsen</dc:creator>
    <dc:date>2016-03-07T16:35:53Z</dc:date>
    <item>
      <title>AutoGenerate</title>
      <link>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013194#M640565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How generate 10 Random Date between 2 Dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 09:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013194#M640565</guid>
      <dc:creator />
      <dc:date>2016-03-06T09:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: AutoGenerate</title>
      <link>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013195#M640566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First get the two dates in a variable.&lt;/P&gt;&lt;P&gt;Calculate the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 18pt;"&gt;vStartDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;('1-1-2016', 'D-M-YYYY'));&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 18pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 18pt;"&gt;vEndDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;('6-3-2016', 'D-M-YYYY'));&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 18pt;"&gt;let&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 18pt;"&gt;vNumberOfDates&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 18pt;"&gt;$(vEndDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt; - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 18pt;"&gt;$(vStartDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt; + 1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Create a table (using AutoGenerate) in which you randomly general number and multiply that by the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;theTable:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 18pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;rand&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;() * &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 18pt;"&gt;$(vNumberOfDates)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt;) + &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 18pt;"&gt;$(vStartDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 18pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;RandomDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; 10&lt;BR /&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 11:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013195#M640566</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-03-06T11:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: AutoGenerate</title>
      <link>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013196#M640567</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;another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_208333_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117102_QlikCommunity_Thread_208333_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14572783623472541" jivemacro_uid="_14572783623472541"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD Date(MinDate+Floor(Rand()*(MaxDate-MinDate))) as RandDate&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=10;&lt;/P&gt;
&lt;P&gt;LOAD '2016-01-01' as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '2016-03-06' as MaxDate&lt;/P&gt;
&lt;P&gt;AutoGenerate 1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 15:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013196#M640567</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-03-06T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: AutoGenerate</title>
      <link>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013197#M640568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good.&lt;/P&gt;&lt;P&gt;Thaanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013197#M640568</guid>
      <dc:creator />
      <dc:date>2016-03-07T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: AutoGenerate</title>
      <link>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013198#M640569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer (and optionally Helpful Answers).&lt;/P&gt;&lt;P&gt;If not, please make clear what part you still need help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AutoGenerate/m-p/1013198#M640569</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-03-07T16:35:53Z</dc:date>
    </item>
  </channel>
</rss>

