<?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 Save variable VALUE from application to text, csv, qvs, or qvd file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110042#M912012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want to do is take a variable VALUE (not the =(whatever), the actual number value) and export it to one of the aforementioned file extensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Save variable VALUE from application to text, csv, qvs, or qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110042#M912012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want to do is take a variable VALUE (not the =(whatever), the actual number value) and export it to one of the aforementioned file extensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110042#M912012</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Save variable VALUE from application to text, csv, qvs, or qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110043#M912013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in the load script using the STORE function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor1273"&gt;&lt;/A&gt;Store&lt;/H1&gt;&lt;P&gt;A QVD or a CSV file can be created by a &lt;SPAN class="Bold"&gt;store&lt;/SPAN&gt; statement in the script. The statement will create an explicitly named QVD or CSV file. The statement can only export fields from one logical table. The text values are exported to the CSV file in UTF-8 format. A delimiter can be specified, see &lt;A class="MCXref_0"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/A&gt;. The &lt;SPAN class="Bold"&gt;store&lt;/SPAN&gt; statement to a CSV file does not support BIFF export.&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;store&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;[ *fieldlist &lt;SPAN class="Bold"&gt;from&lt;/SPAN&gt;] table &lt;SPAN class="Bold"&gt;into&lt;/SPAN&gt; filename [ format-spec ];&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;*fieldlist::= ( &lt;SPAN style="font-size: 11pt;"&gt;*&lt;/SPAN&gt; | field ) { , field } )&lt;/SPAN&gt; is a list of the fields to be selected. Using * as field list indicates all fields.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;field::= fieldname [&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;as &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;aliasname ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; is a text that is identical to a field name in the &lt;SPAN class="Italic"&gt;table&lt;/SPAN&gt;. (Note that the field name must be enclosed by straight double &lt;A class="MCXref_0"&gt;&lt;EM&gt;Quotation Marks in Scripting&lt;/EM&gt;&lt;/A&gt; or square brackets if it contains e.g. spaces.)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;aliasname&lt;/SPAN&gt; is an alternate name for the field to be used in the resulting QVD or CSV file.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;table&lt;/SPAN&gt; is a script labeled, already loaded table to be used as source for data.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;filename&lt;/SPAN&gt; is the name of the target file. The interpretation of file name is similar to names in &lt;SPAN class="Bold"&gt;load&lt;/SPAN&gt; statements, i.e. the &lt;SPAN class="Bold"&gt;directory&lt;/SPAN&gt; statements apply.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;format-spec ::= &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; ( &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;txt&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; | &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;qvd&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; ) &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The format specification consists of a the text &lt;SPAN class="Bold"&gt;txt&lt;/SPAN&gt; for text files, or the text &lt;SPAN class="Bold"&gt;qvd&lt;/SPAN&gt; for qvd files. If the format specification is omitted, &lt;SPAN class="Bold"&gt;qvd&lt;/SPAN&gt; is assumed.&lt;/P&gt;&lt;P class="example"&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="Code"&gt;Store mytable into xyz.qvd (qvd);&lt;/P&gt;&lt;P class="Code"&gt;Store &lt;SPAN style="font-size: 11pt;"&gt;*&lt;/SPAN&gt; from mytable into xyz.qvd;&lt;/P&gt;&lt;P class="Code"&gt;Store Name, RegNo from mytable into xyz.qvd;&lt;/P&gt;&lt;P class="Code"&gt;Store Name as a, RegNo as b from mytable into xyz.qvd;&lt;/P&gt;&lt;P class="Code"&gt;store mytable into myfile.txt (txt);&lt;/P&gt;&lt;P class="Code"&gt;store * from mytable into myfile.txt (txt);&lt;/P&gt;&lt;P&gt;(The two first examples have identical function.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14648137874216541" jivemacro_uid="_14648137874216541"&gt;
&lt;P&gt;SET vVariable = 'Hello world';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;LOAD '$(vVariable)' as [Variable Value]&lt;/P&gt;
&lt;P&gt;AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;STORE [Variable Value] FROM Table INTO YourFile.txt (txt);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110043#M912013</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-06-01T20:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Save variable VALUE from application to text, csv, qvs, or qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110044#M912014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additionally,&amp;nbsp; you could create a text object with the variable in it, and someone could right click and "Export to Excel":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126578_Capture.PNG" style="height: 419px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110044#M912014</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-06-01T20:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Save variable VALUE from application to text, csv, qvs, or qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110045#M912015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I tried in the beginning and it gives me the whole equation... not the value. I'll just give you the example as I should have in the beginning. I created a variable on the front end using the "Variable Overview" and multiple tables from the data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: vRentention&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value: &lt;/P&gt;&lt;P&gt;=num((sum({$&amp;lt;SNAPSHOT_MONTH_ID = {'&amp;gt;$(=addmonths(max(SNAPSHOT_MONTH_ID),-12))&amp;lt;=$(=max(SNAPSHOT_MONTH_ID))'}&amp;gt;}RENEWFLAG) + &lt;/P&gt;&lt;P&gt; sum({$&amp;lt;SNAPSHOT_MONTH_ID = {'&amp;gt;$(=addmonths(max(SNAPSHOT_MONTH_ID),-12))&amp;lt;=$(=max(SNAPSHOT_MONTH_ID))'}&amp;gt;}REJOINFLAG))&lt;/P&gt;&lt;P&gt;/sum({$&amp;lt;SNAPSHOT_MONTH_ID = {'&amp;gt;$(=addmonths(max(SNAPSHOT_MONTH_ID),-12))&amp;lt;=$(=max(SNAPSHOT_MONTH_ID))'}&amp;gt;}ELIGIBLEFLAG ),'##.##%') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the VALUE of that, not the equation to be saved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answers, I really appreciate it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110045#M912015</guid>
      <dc:creator />
      <dc:date>2016-06-01T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Save variable VALUE from application to text, csv, qvs, or qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110046#M912016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're only able to store static values from variables, so you won't be able to do it with your calculation.&amp;nbsp; You would need to use the text object/Export to Excel option in order to use the calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110046#M912016</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-06-01T21:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Save variable VALUE from application to text, csv, qvs, or qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110047#M912017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a away to automate this export?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110047#M912017</guid>
      <dc:creator />
      <dc:date>2016-06-01T21:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Save variable VALUE from application to text, csv, qvs, or qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110048#M912018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be able to use a macro to do it (#7 in this list):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4870"&gt;Useful Qlikview Macros&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to execute a macro in script:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/12166"&gt;Execute a Macro inside load script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disclaimer: I have not tested this and do not know if it will work, but it's the only way I think you could possibly do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Save-variable-VALUE-from-application-to-text-csv-qvs-or-qvd-file/m-p/1110048#M912018</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-06-01T21:26:05Z</dc:date>
    </item>
  </channel>
</rss>

