<?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: create a random date column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851575#M298672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tmp_MaxDate:&lt;/P&gt;&lt;P&gt;Load min(OrderDate) as mindate,&lt;/P&gt;&lt;P&gt;max(OrderDate) as maxdate&lt;/P&gt;&lt;P&gt;from excel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Peek('mindate',0,'tmp_MaxDate');&lt;/P&gt;&lt;P&gt;LET vfutureDate = today()+90;&lt;/P&gt;&lt;P&gt;LET vMaxDate = Peek('maxdate',0,'tmp_MaxDate');&lt;/P&gt;&lt;P&gt;drop table tmp_MaxDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//To get the calendar from your minimum date to maximum date +90 days&lt;/P&gt;&lt;P&gt;//********************* Temporary Calendar ***********************//&lt;/P&gt;&lt;P&gt;tmp_CALENDAR:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vMinDate) + RowNo() - 1) AS tmp_Date&lt;/P&gt;&lt;P&gt;AUTOGENERATE&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMaxDate) + $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vfutureDate &lt;/SPAN&gt;) + 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2015 13:55:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-10T13:55:34Z</dc:date>
    <item>
      <title>create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851570#M298667</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;I have a dashboard used for demo purposes. one of the columns on it is a date column (expiration date). the data comes from an excel file and I have to update the dates column every several months to make sure they are in the future.. is there anyway I can create a dynamic column to show random dates within the next year or two years?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851570#M298667</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-07-10T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851571#M298668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(Today() + Floor(Rand()*365)) as FutureDates&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 50;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851571#M298668</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-10T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851572#M298669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alec,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out the attached thread, tweaking the start and end as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/104652"&gt;https://community.qlik.com/thread/104652&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851572#M298669</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-07-10T13:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851573#M298670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For one year use &lt;STRONG style="color: #ff0000;"&gt;365&lt;/STRONG&gt;, for two you can use &lt;STRONG style="color: #ff0000;"&gt;730&lt;/STRONG&gt; and so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD Date(Today() + Floor(Rand()*&lt;SPAN style="color: #ff0000;"&gt;365&lt;/SPAN&gt;)) as FutureDates&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AutoGenerate 50;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851573#M298670</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-10T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851574#M298671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) + 365 - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayNumberOfYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rand&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()*732) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851574#M298671</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-07-10T13:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851575#M298672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tmp_MaxDate:&lt;/P&gt;&lt;P&gt;Load min(OrderDate) as mindate,&lt;/P&gt;&lt;P&gt;max(OrderDate) as maxdate&lt;/P&gt;&lt;P&gt;from excel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Peek('mindate',0,'tmp_MaxDate');&lt;/P&gt;&lt;P&gt;LET vfutureDate = today()+90;&lt;/P&gt;&lt;P&gt;LET vMaxDate = Peek('maxdate',0,'tmp_MaxDate');&lt;/P&gt;&lt;P&gt;drop table tmp_MaxDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//To get the calendar from your minimum date to maximum date +90 days&lt;/P&gt;&lt;P&gt;//********************* Temporary Calendar ***********************//&lt;/P&gt;&lt;P&gt;tmp_CALENDAR:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vMinDate) + RowNo() - 1) AS tmp_Date&lt;/P&gt;&lt;P&gt;AUTOGENERATE&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMaxDate) + $(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vfutureDate &lt;/SPAN&gt;) + 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851575#M298672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-10T13:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851576#M298673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851576#M298673</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2015-07-10T14:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: create a random date column</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851577#M298674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem, glad we were able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-random-date-column/m-p/851577#M298674</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-10T14:52:56Z</dc:date>
    </item>
  </channel>
</rss>

