<?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 Using variables in a load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variables-in-a-load-script/m-p/1739562#M590671</link>
    <description>&lt;P&gt;Hello. Posting below what I want to achieve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;daily_views:&lt;/P&gt;&lt;P&gt;load * from [daily_qvd];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let v_date = min(created_date);&amp;nbsp;&lt;/P&gt;&lt;P&gt;// created_date is a column in the daily_qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transaction_views:&lt;/P&gt;&lt;P&gt;load * from [txn_qvd]&lt;/P&gt;&lt;P&gt;where txn_date = $(v_date);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to take the date variable from the daily_views table and use it to subset rows in the transaction views table. The variable created using the let statement gives me 0 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:10:29 GMT</pubDate>
    <dc:creator>shivram_l</dc:creator>
    <dc:date>2024-11-16T18:10:29Z</dc:date>
    <item>
      <title>Using variables in a load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-a-load-script/m-p/1739562#M590671</link>
      <description>&lt;P&gt;Hello. Posting below what I want to achieve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;daily_views:&lt;/P&gt;&lt;P&gt;load * from [daily_qvd];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let v_date = min(created_date);&amp;nbsp;&lt;/P&gt;&lt;P&gt;// created_date is a column in the daily_qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transaction_views:&lt;/P&gt;&lt;P&gt;load * from [txn_qvd]&lt;/P&gt;&lt;P&gt;where txn_date = $(v_date);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to take the date variable from the daily_views table and use it to subset rows in the transaction views table. The variable created using the let statement gives me 0 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-a-load-script/m-p/1739562#M590671</guid>
      <dc:creator>shivram_l</dc:creator>
      <dc:date>2024-11-16T18:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in a load script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-a-load-script/m-p/1739564#M590672</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;daily_views:
LOAD *
From [daily_qvd];

min_created_date:
LOAD Min(created_date) as min_created_date
Resident daily_views;

LET v_date = Peek('min_created_date'); 
TRADE $(v_date);
// created_date is a column in the daily_qvd

DROP Table min_created_date;

transaction_views:
LOAD * 
From [txn_qvd]
Where txn_date = $(v_date);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Aug 2020 17:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-a-load-script/m-p/1739564#M590672</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-08-28T17:21:46Z</dc:date>
    </item>
  </channel>
</rss>

