<?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 Set variable by using a resident table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-variable-by-using-a-resident-table/m-p/1597920#M737889</link>
    <description>&lt;P&gt;In the loading scripts,&amp;nbsp;I have a resident table and inside the table I can extract a max(date) field.&amp;nbsp; And then I would like to use this date field to further filter out other tables in the later part of the scripts e.g.&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Max(date)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident A;&lt;/P&gt;&lt;P&gt;&amp;lt;Let / Set scripts &amp;gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Temp&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where date = &lt;SPAN&gt;vThisWeek&amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can sample for aforesaid example?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>yipchunyu</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Set variable by using a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variable-by-using-a-resident-table/m-p/1597920#M737889</link>
      <description>&lt;P&gt;In the loading scripts,&amp;nbsp;I have a resident table and inside the table I can extract a max(date) field.&amp;nbsp; And then I would like to use this date field to further filter out other tables in the later part of the scripts e.g.&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Max(date)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident A;&lt;/P&gt;&lt;P&gt;&amp;lt;Let / Set scripts &amp;gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Temp&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where date = &lt;SPAN&gt;vThisWeek&amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can sample for aforesaid example?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variable-by-using-a-resident-table/m-p/1597920#M737889</guid>
      <dc:creator>yipchunyu</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set variable by using a resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variable-by-using-a-resident-table/m-p/1597967#M737891</link>
      <description>&lt;P&gt;If I understand you correctly, it sounds like you might want to use a peek statement to extract your max date field into a variable.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;Load max(Date) as MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT A;&lt;/P&gt;&lt;P&gt;LET vMaxDate = peek('MaxDate', -1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 08:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variable-by-using-a-resident-table/m-p/1597967#M737891</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2019-07-02T08:53:49Z</dc:date>
    </item>
  </channel>
</rss>

