<?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: Help regarding Script!! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820293#M1032535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vMinDate has the minimum date value in your data minus one day.&lt;/P&gt;&lt;P&gt;peek(....... )&lt;STRONG&gt; -1&lt;/STRONG&gt; is subtracting one day to the previous expresion.&lt;/P&gt;&lt;P&gt;example. If your lowest date is 15-01-2015 you have 14-01-2015 in vMinDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Autogenerate n"&amp;nbsp; is used to create 'n' records automatically. Then &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Autogenerate vMaxDate - vMinDate will create as many records as days between these dates &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2015 13:42:47 GMT</pubDate>
    <dc:creator>jmmayoral3</dc:creator>
    <dc:date>2015-01-20T13:42:47Z</dc:date>
    <item>
      <title>Help regarding Script!!</title>
      <link>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820289#M1032531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;In the following script , what is value of vMinDate and also what is the functioning of )Autogenerate vMaxDate - vMinDate) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempTable_Rates: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Date, Rate FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MinMaxDate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Min(Date) as MinDate, Max(Date) as MaxDate resident TempTable_Rates;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMinDate = Peek('MinDate',-1,'MinMaxDate') - 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMaxDate = Peek('MaxDate',-1,'MinMaxDate')&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Join (TempTable_Rates)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Date(recno()+$(vMinDate)) as Date Autogenerate vMaxDate - vMinDate;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820289#M1032531</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-01-20T11:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Script!!</title>
      <link>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820290#M1032532</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;1. You load the table TempTable_Rates: with fields Date, Rate.&lt;/P&gt;&lt;P&gt;2. Load MinMaxDate table with fields MinDate and MaxDate you get min and max value.&lt;/P&gt;&lt;P&gt;3. Store Min and max value in variables vMinDate, vMaxDate&lt;/P&gt;&lt;P&gt;Suppose you have get values in vMinDate = 12/31/2014 and in vMaxDate = 01/20/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Load the table with Date and generate dates and to get Rate you join it to table TempTable_Rates with auto generate table with Autogenerate vMaxDate - vMinDate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 11:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820290#M1032532</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2015-01-20T11:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Script!!</title>
      <link>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820291#M1032533</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;value of vMinDate is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;returns the value of MinDate from the first last record read into the input table labeled Tab1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Date Autogenerate vMaxDate - vMinDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;generate specified number of rows using script. In your case it &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f5faf0;"&gt;Generate all dates between the largest and smallest dates (below called “Dates”)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also explained here: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/05/populating-a-sparsely-populated-field"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/05/populating-a-sparsely-populated-field&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 12:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820291#M1032533</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2015-01-20T12:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Script!!</title>
      <link>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820292#M1032534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey ,&lt;/P&gt;&lt;P&gt;you mean to say that Let say Date has values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Date &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;01-01-2015&lt;/P&gt;&lt;P&gt;03-01-2015&lt;/P&gt;&lt;P&gt;10-01-2015&lt;/P&gt;&lt;P&gt;Then, to generate the date values between 01-01-2015 and 10-01-2015 , (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Autogenerate vMaxDate - vMinDate) is used ?? And what is the value of : ( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Let vMinDate = Peek('MinDate',-1,'MinMaxDate') - 1 ) ??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 13:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820292#M1032534</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-01-20T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Script!!</title>
      <link>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820293#M1032535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vMinDate has the minimum date value in your data minus one day.&lt;/P&gt;&lt;P&gt;peek(....... )&lt;STRONG&gt; -1&lt;/STRONG&gt; is subtracting one day to the previous expresion.&lt;/P&gt;&lt;P&gt;example. If your lowest date is 15-01-2015 you have 14-01-2015 in vMinDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Autogenerate n"&amp;nbsp; is used to create 'n' records automatically. Then &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Autogenerate vMaxDate - vMinDate will create as many records as days between these dates &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 13:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820293#M1032535</guid>
      <dc:creator>jmmayoral3</dc:creator>
      <dc:date>2015-01-20T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding Script!!</title>
      <link>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820294#M1032536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Thanks Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 13:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-regarding-Script/m-p/820294#M1032536</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-01-20T13:43:58Z</dc:date>
    </item>
  </channel>
</rss>

