<?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: add a column equal to variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/add-a-column-equal-to-variable/m-p/879948#M658340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can. Try this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vNow = Chr(39) &amp;amp; Today() &amp;amp; Chr(39);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date($(vNow)) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 19:30:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-05-29T19:30:42Z</dc:date>
    <item>
      <title>add a column equal to variable?</title>
      <link>https://community.qlik.com/t5/QlikView/add-a-column-equal-to-variable/m-p/879946#M658338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - is it possible to add a column to my script load equal to a variable I already set? I set vEndDate equal to the date I will be using to run the script and would like to join a Date column to the final table where Date is equal to vEndDate. I can then store the table down as part of a new QVD and know which date each set of data it is from after it concatenates. Date is not a part of any of my load files so I was hoping to create it in the script and join it to my final table. Any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 18:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-a-column-equal-to-variable/m-p/879946#M658338</guid>
      <dc:creator />
      <dc:date>2015-05-29T18:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: add a column equal to variable?</title>
      <link>https://community.qlik.com/t5/QlikView/add-a-column-equal-to-variable/m-p/879947#M658339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add the values from variables into your tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;field1,&lt;/P&gt;&lt;P&gt;field2,&lt;/P&gt;&lt;P&gt;'$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vEndDate&lt;/SPAN&gt;)' as vEndDate&lt;/P&gt;&lt;P&gt;source&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 19:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-a-column-equal-to-variable/m-p/879947#M658339</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-05-29T19:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: add a column equal to variable?</title>
      <link>https://community.qlik.com/t5/QlikView/add-a-column-equal-to-variable/m-p/879948#M658340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can. Try this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vNow = Chr(39) &amp;amp; Today() &amp;amp; Chr(39);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date($(vNow)) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 19:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/add-a-column-equal-to-variable/m-p/879948#M658340</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-29T19:30:42Z</dc:date>
    </item>
  </channel>
</rss>

