<?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: Load variable from text file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520103#M1144268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually just figured out another way to do it, which I think works a bith better. In PowerShell i create the text file to not just right "54", but rather to write "LET vPQLow = 54;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I do this in my QV Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(Include=C:\Path\vPQLow.txt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 15:36:57 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2013-08-22T15:36:57Z</dc:date>
    <item>
      <title>Load variable from text file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520101#M1144266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a text file named "vPQLow.txt" that contains only a single value (e.g. "54"), how can I get this value and use the 54 as a variable in my Load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am doing is working from a Powershell script which allows a user to input a campaign number, and this will then create a file with that number in it - I then need to use this number as a variable in QLikView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 15:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520101#M1144266</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-08-22T15:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable from text file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520102#M1144267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerhard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the below script helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable_Table:&lt;/P&gt;&lt;P&gt;LOAD @1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Variable_Txt.txt&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, explicit labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET X=NUM(Peek('@1',0,'Variable_Table'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 15:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520102#M1144267</guid>
      <dc:creator />
      <dc:date>2013-08-22T15:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable from text file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520103#M1144268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually just figured out another way to do it, which I think works a bith better. In PowerShell i create the text file to not just right "54", but rather to write "LET vPQLow = 54;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I do this in my QV Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(Include=C:\Path\vPQLow.txt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 15:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520103#M1144268</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2013-08-22T15:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load variable from text file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520104#M1144269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gerhard.&lt;/P&gt;&lt;P&gt;That seems to be much easy way than what i posted &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep sharing the new findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Achiever&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 15:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-variable-from-text-file/m-p/520104#M1144269</guid>
      <dc:creator />
      <dc:date>2013-08-22T15:55:50Z</dc:date>
    </item>
  </channel>
</rss>

