<?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 Table fields and Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-fields-and-Variables/m-p/449579#M701039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the load script, is it possible to use a field in a table after it has been created? Can I use that I field and assign it to a variable using LET?&lt;/P&gt;&lt;P&gt;I think this would be better presented through an example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trans:&lt;/P&gt;&lt;P&gt;SELECT tr_product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tr_invoice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tr_date as "cal_date"&lt;/P&gt;&lt;P&gt;FROM transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTDate = cal_date;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- after this some other load stuff follows ---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get my problem. If there is a solution to this, could you please show me?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Appreciate your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 18:12:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-24T18:12:03Z</dc:date>
    <item>
      <title>Table fields and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Table-fields-and-Variables/m-p/449579#M701039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the load script, is it possible to use a field in a table after it has been created? Can I use that I field and assign it to a variable using LET?&lt;/P&gt;&lt;P&gt;I think this would be better presented through an example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trans:&lt;/P&gt;&lt;P&gt;SELECT tr_product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tr_invoice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tr_date as "cal_date"&lt;/P&gt;&lt;P&gt;FROM transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTDate = cal_date;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- after this some other load stuff follows ---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get my problem. If there is a solution to this, could you please show me?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Appreciate your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 18:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-fields-and-Variables/m-p/449579#M701039</guid>
      <dc:creator />
      <dc:date>2012-10-24T18:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table fields and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Table-fields-and-Variables/m-p/449580#M701040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can with the use of the "Peek" function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, in your table, something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vTDate &lt;/SPAN&gt;= Peek('&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;cal_date&lt;/SPAN&gt;', 0, '&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;trans&lt;/SPAN&gt;');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would give you the oldest date of that table. If you want the newest, just switch the 0 parameter to -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 18:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-fields-and-Variables/m-p/449580#M701040</guid>
      <dc:creator />
      <dc:date>2012-10-24T18:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table fields and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Table-fields-and-Variables/m-p/449581#M701041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you mean assign the whole field( with all the field values) to a variable? or just a field name?or first or last field value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 18:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-fields-and-Variables/m-p/449581#M701041</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-24T18:35:30Z</dc:date>
    </item>
  </channel>
</rss>

