<?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 Setting a simple variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-a-simple-variable/m-p/334518#M494270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to set a variable in my script called vMaxExtractDate...I basically need the value to be the maximum date with the field Extract Date, this is what I have so far and the value is always blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;SET &lt;/STRONG&gt;&lt;SPAN style="color: #333333;"&gt;&lt;EM&gt;vMaxExtractDate&lt;/EM&gt; &lt;/SPAN&gt;= Max(Date(&lt;SPAN style="color: #800000;"&gt;[Extract Date]&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 11:52:30 GMT</pubDate>
    <dc:creator>samvile18</dc:creator>
    <dc:date>2012-04-03T11:52:30Z</dc:date>
    <item>
      <title>Setting a simple variable</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-simple-variable/m-p/334518#M494270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to set a variable in my script called vMaxExtractDate...I basically need the value to be the maximum date with the field Extract Date, this is what I have so far and the value is always blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;SET &lt;/STRONG&gt;&lt;SPAN style="color: #333333;"&gt;&lt;EM&gt;vMaxExtractDate&lt;/EM&gt; &lt;/SPAN&gt;= Max(Date(&lt;SPAN style="color: #800000;"&gt;[Extract Date]&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 11:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-simple-variable/m-p/334518#M494270</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2012-04-03T11:52:30Z</dc:date>
    </item>
    <item>
      <title>Setting a simple variable</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-simple-variable/m-p/334519#M494271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;Max([Extract Date]) as MaxDate&lt;/P&gt;&lt;P&gt;From/Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxExtractDate=Date(Peek('MaxDate',0,'Table1'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 12:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-simple-variable/m-p/334519#M494271</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-04-03T12:03:17Z</dc:date>
    </item>
    <item>
      <title>Setting a simple variable</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-simple-variable/m-p/334520#M494272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help Vijay, this was my next test and it works brilliantly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 12:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-simple-variable/m-p/334520#M494272</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2012-04-03T12:05:39Z</dc:date>
    </item>
  </channel>
</rss>

