<?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 Load a field as single value for variable, how to hard code it? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-a-field-as-single-value-for-variable-how-to-hard-code-it/m-p/338534#M493128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I figured it out.&amp;nbsp; You have to use set analysis in the variable definition like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({1}[Current Fiscal Week])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 15:14:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-05T15:14:19Z</dc:date>
    <item>
      <title>Load a field as single value for variable, how to hard code it?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-as-single-value-for-variable-how-to-hard-code-it/m-p/338533#M493127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load a field as a single value in the script and and use it as the value for a variable to use in set analysis.&amp;nbsp; The field only has one value but since I load other tables, sometimes the field value is not selected and the variable has no value.&amp;nbsp; Is there anyway to hard code the value in the field so that it is what it is regardless of selection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-as-single-value-for-variable-how-to-hard-code-it/m-p/338533#M493127</guid>
      <dc:creator />
      <dc:date>2012-06-05T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Load a field as single value for variable, how to hard code it?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-as-single-value-for-variable-how-to-hard-code-it/m-p/338534#M493128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I figured it out.&amp;nbsp; You have to use set analysis in the variable definition like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({1}[Current Fiscal Week])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-as-single-value-for-variable-how-to-hard-code-it/m-p/338534#M493128</guid>
      <dc:creator />
      <dc:date>2012-06-05T15:14:19Z</dc:date>
    </item>
    <item>
      <title>Load a field as single value for variable, how to hard code it?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-field-as-single-value-for-variable-how-to-hard-code-it/m-p/338535#M493129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did something like that once, I read a date from a file and save it into variables and then I could use it on the final reports, what I did was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//source&lt;/P&gt;&lt;P&gt;LastDateFile:&lt;/P&gt;&lt;P&gt;LOAD Date as LastDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;File.txt&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Variables:&lt;/P&gt;&lt;P&gt;let vDateExt = date(peek('LastDate',0,'LastDateFile'));&lt;/P&gt;&lt;P&gt;let vDay = Day(vDateExt);&lt;/P&gt;&lt;P&gt;let vMonth = Month(vDateExt);&lt;/P&gt;&lt;P&gt;let vYear = Year(vDateExt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 15:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-field-as-single-value-for-variable-how-to-hard-code-it/m-p/338535#M493129</guid>
      <dc:creator />
      <dc:date>2012-06-05T15:31:15Z</dc:date>
    </item>
  </channel>
</rss>

