<?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: Store values of variable in qvd in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1932468#M1219022</link>
    <description>&lt;P&gt;Hi Flo,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ALOS:
LOAD v_indic_1,
v_indic_2,
v_indic_3,
v_indic_4,
v_indic_5
FROM
[...\ ALOS.qvd]
(qvd);


concatenate (ALOS) 

Load
$(v_indic_1) as v_indic_1,
$(v_indic_2) as v_indic_2,
$(v_indic_3) as v_indic_3,
$(v_indic_4) as v_indic_4,
$(v_indic_5) as v_indic_5
AutoGenerate 1;


Store ALOS into [ALOS.qvd] (qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 12:55:10 GMT</pubDate>
    <dc:creator>ZouhairLahlou</dc:creator>
    <dc:date>2022-05-18T12:55:10Z</dc:date>
    <item>
      <title>Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1932462#M1219021</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I would like to keep track of some variables that I calculate thanks to set analysis.&lt;/P&gt;
&lt;P&gt;( My idea was to store the values&amp;nbsp; of the different variables in a QVD with a&amp;nbsp; column for each variable and everytime i reload it adds the new values of the variables inside the qvd as a new line. Also when&amp;nbsp; I reload it import the previous values of those variables to make an historical data graph )&lt;/P&gt;
&lt;P&gt;So there are a lot of topics on these subjects ( like this one&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Incremental-Load-on-QVD/td-p/1309066" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Incremental-Load-on-QVD/td-p/1309066&lt;/A&gt; )&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But It appears that i don't fully understand.&lt;/P&gt;
&lt;P&gt;Because what I did was:&lt;/P&gt;
&lt;P&gt;1) Declare the variables ( I was not sure if I had to put an equal sign&amp;nbsp; or not inside&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let v_indic_1 ='count({(1&amp;lt;[field ]={"fvalue"}&amp;gt;+.... ])';

Let v_indic_2 ='=count({(1&amp;lt;[field]={"value "}&amp;gt;+1&amp;lt;[field]=] .... )';&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Load previous values of variables inside the qvd and concatenate with the new ones then store all in the qvd.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ALOS:
LOAD v_indic_1,
v_indic_2,
v_indic_3,
v_indic_4,
v_indic_5
FROM
[...\ ALOS.qvd]
(qvd);


concatenate

Load
'$(v_indic_1)' as v_indic_1,
'$(v_indic_2)' as v_indic_2,
'$(v_indic_3)' as v_indic_3,
'$(v_indic_4)' as v_indic_4,
'$(v_indic_5)' as v_indic_5
AutoGenerate 1;


Store ALOS into [ALOS.qvd] (qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That works but it stores the text of the formula inside the qvd and not the values of the variables.&lt;/P&gt;
&lt;P&gt;I tried also without the ' ' to load the new values of variables ( '^(v_indic_5)' as v_indic_5...&lt;/P&gt;
&lt;P&gt;If someone has an idea that would be with pleasure to listen &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;thanks for reading !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 12:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1932462#M1219021</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-18T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1932468#M1219022</link>
      <description>&lt;P&gt;Hi Flo,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ALOS:
LOAD v_indic_1,
v_indic_2,
v_indic_3,
v_indic_4,
v_indic_5
FROM
[...\ ALOS.qvd]
(qvd);


concatenate (ALOS) 

Load
$(v_indic_1) as v_indic_1,
$(v_indic_2) as v_indic_2,
$(v_indic_3) as v_indic_3,
$(v_indic_4) as v_indic_4,
$(v_indic_5) as v_indic_5
AutoGenerate 1;


Store ALOS into [ALOS.qvd] (qvd);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 12:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1932468#M1219022</guid>
      <dc:creator>ZouhairLahlou</dc:creator>
      <dc:date>2022-05-18T12:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1932497#M1219023</link>
      <description>&lt;P&gt;Thanks for the response but in fact when i remove the simples quotes, there is a error message.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"

Syntax error

Unexpected token: '{', expected one of: '(', ',', 'DISTINCT', 'Yellow', 'ZTestw_z', 'OPERATOR_PLUS', 'OPERATOR_MINUS', ...

concatenate (ALOS)

Load
count(&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;{&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;(1&amp;lt;[Field]={"value"}&amp;gt;+1&amp;lt;[field]={"value"}&amp;gt;+...]) as v_indic_1,&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, indeed when i put simples quotes, it is just text &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 13:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1932497#M1219023</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-18T13:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1933048#M1219042</link>
      <description>&lt;P&gt;These are front end variables/expressions (set analysis) which will not evaluate in the load script. What is exactly the reason you want the values of the variables in a QVD?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards Eddie&lt;/P&gt;
&lt;TABLE style="border-style: solid; width: 100%; border-color: #006B30;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%" style="background-color: #009845; width: 100%; border-style: solid;"&gt;&lt;FONT color="#FFFFFF"&gt;If this answers your question or solves your issue, be sure to mark the answer as correct by clicking '&lt;STRONG&gt;&lt;SPAN class="notion-enable-hover" data-token-index="1" data-reactroot=""&gt;Accept as Solution&lt;/SPAN&gt;&lt;/STRONG&gt;'. This will mark the post as solved and other Qlikkies will gravitate towards this post as it as a possible solution for their issue.&amp;nbsp;Multiple responses can be accepted as a solution so make sure to select all that apply.&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 19 May 2022 12:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1933048#M1219042</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2022-05-19T12:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934870#M1219119</link>
      <description>&lt;P&gt;In fact I show&amp;nbsp; the values of these set analysis directly on my application.&lt;/P&gt;
&lt;P&gt;But i would like to keep records of former and current values to show them in a graph.&lt;/P&gt;
&lt;P&gt;So i thought about storing the set analysis values in a QVD and add the current values eveyrtime i reload.&lt;/P&gt;
&lt;P&gt;But my solution seems not good so &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 13:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934870#M1219119</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-24T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934932#M1219120</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135958"&gt;@flo2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It is better to calculate these measures in the loadscript and than you can store it in a QVD, but don't use set analysis in the loadscript.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards Eddie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 14:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934932#M1219120</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2022-05-24T14:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934940#M1219121</link>
      <description>&lt;P&gt;Ah thanks ! So I just need to convert the set analysis in expression in loadscript ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But sometimes it's impossible to convert complex set analysis to simple expression no ?&lt;/P&gt;
&lt;P&gt;( in my case it is not problematic because my set analysis are not complex )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 14:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934940#M1219121</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-24T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934974#M1219122</link>
      <description>&lt;P&gt;Yes, you have to convert it in the loadscript. It can be complex indeed to calculate but not impossible. If you need any help with it, let the community know.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1934974#M1219122</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2022-05-24T15:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1937793#M1219223</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95378"&gt;@eddie_wagt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, you have to convert it in the loadscript. It can be complex indeed to calculate but not impossible. If you need any help with it, let the community know.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hey back and thanks again. I think it is better to continue on this subject as it is the same question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;( I&amp;nbsp; would like to store in a qvd file an historic of values of some variables and also store in this qvd file the day of when we stored them in this qvd )&lt;/P&gt;
&lt;P&gt;As it was needed, I converted the variables that i had before as set analysis&amp;nbsp; in the loadscript. ( they work )&lt;/P&gt;
&lt;P&gt;To make it work, i have this script :&lt;/P&gt;
&lt;P&gt;var_prom is an example of variable i would like to store in qvd file.&lt;/P&gt;
&lt;P&gt;And the lines in commentary currently are the lines i would like to use to recover the former values of the variable I stored in the qvd. Then concatenate these values with the current values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let var_prom = count(if(match([Intern step],'...',1,0) and match([formular],'...',1,0) ,1));

/*
ALOS:
LOAD 
promEmbaucheChiff1
FROM
[ALOS.qvd]
(qvd);


concatenate (ALOS)

*/ 
ALOS : 
Load
$(var_prom) as promEmbaucheChiff1
AutoGenerate 1;

Store ALOS into [ALOS.qvd] (qvd);
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i have an error, i think it doesn't recognise my expression for my variable . I have a Syntax error when i try to use the variable with $(var_prom)&lt;/P&gt;
&lt;P&gt;Syntax error&lt;BR /&gt;ALOS : &lt;BR /&gt;Load&lt;BR /&gt;as &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;promEmbaucheChiff1&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;AutoGenerate 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you have some ideas to make it work ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 14:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1937793#M1219223</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-31T14:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1937855#M1219224</link>
      <description>&lt;P&gt;If the variable contains a (correct formatted) number you could call them with $(var). If the content is instead a string you need to add single-quotes to the variable like: '$(var)'.&lt;/P&gt;
&lt;P&gt;In your case the variable will be NULL because you used LET and this means the specified content will be evaluated before the result is assigned to the variable - and you couldn't apply a count() within a variable because it would need a load-statement.&lt;/P&gt;
&lt;P&gt;In general you could not grab any UI results within the load because to the time the load runs no UI exists.&lt;/P&gt;
&lt;P&gt;A workaround to your aim might be to use two variables for one calculation - one contains the expression and the another will be per action/macro filled with this result - triggered by a button or any other&amp;nbsp; method. And the value of this second variable is then available by the next load-run.&lt;/P&gt;
&lt;P&gt;By just a few occurrences it's a pragmatic approach but by many of them and/or creating a rather general approach for multiple applications you should be investigate other methods - for example a write-back logic into any data-base which your load could later read again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 15:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1937855#M1219224</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-31T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938223#M1219239</link>
      <description>&lt;P&gt;Thanks, it seems very complex, i was searching about examples of&amp;nbsp; these kinds of solutions on community.qlik and it seems pretty difficult.&lt;/P&gt;
&lt;P&gt;Would it be possible to, instead of keeping tracks of former and current values of variable, to keeping track of the former values of text objects ?&lt;/P&gt;
&lt;P&gt;I mean, I would not not store the values after reloading of the values of text object but I would store the value before the reloading.&amp;nbsp; To do this, I&amp;nbsp; would store in a qvd file the current values shown in the app in these text objects ( not the values after the reload but the value before the reload )&lt;/P&gt;
&lt;P&gt;I was thinking about using macro at the opening maybe ? ( i have to check if it will work even for app in access point ) to be able to export directly values of text objects to qvd files ( so the values before reloading cause if I understand well it will be very complex to have the values after loading )&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 09:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938223#M1219239</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-06-01T09:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938326#M1219241</link>
      <description>&lt;P&gt;Nearly each object could be exported. By a text-box I'm not sure if qvd as file-format would be possible whereby why not just taking a table-chart? It could be used for multiple variables and also contain further columns for a name, comments and other stuff.&lt;/P&gt;
&lt;P&gt;Important is such macros/actions are only possible if the document is opened - within the desktop client or the IE plugin because within the AJAX client the most macros aren't possible respectively have other restrictions (by server-side macros).&lt;/P&gt;
&lt;P&gt;What is the aim behind all this? Why should the next reload loading any UI stuff from the application?&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 11:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938326#M1219241</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-01T11:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938339#M1219242</link>
      <description>&lt;P&gt;About the aim behind this it is that currently my Qlikview app calculates five KPI ( before it was KPI calculated thanks to set analysis on UI but now i converted them to script variables that i display on text object )&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So there are these 5 KPI that I would like to keep a trace of,&amp;nbsp; i mean keep the old values of them and do a graph about the evolution of them.&lt;/P&gt;
&lt;P&gt;So I wanted that at each reload of the app the values ( or script variables or value of text objet where the kpi are displayed ) are writen in a qvd file.&lt;/P&gt;
&lt;P&gt;Also at each reload it loads the data of the former values from the qvd.&lt;/P&gt;
&lt;P&gt;And so, with the potentiel restrictions i think it won't be possible with macros but i'm going to search some possibilities&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938339#M1219242</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-06-01T12:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938357#M1219243</link>
      <description>&lt;P&gt;If I understand your description right then happens the KPI calculation further within the UI - only string-variables are used as expression instead of a manually written expression? Because if these KPI would be directly calculated within the script you could easily store them from there as qvd.&lt;/P&gt;
&lt;P&gt;Have you ever considered to do these calculations within the script? If this should be really not possible I would repeat my suggestion from above to investigate if a write-back approach could be implemented.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938357#M1219243</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-01T12:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938370#M1219244</link>
      <description>&lt;P&gt;Ah ! I think i didn't understand well your previous response because of my poor english &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Because i thought that even if I did the calculations in the script i couldn't make write the values in a QVD file&lt;/P&gt;
&lt;P&gt;I tried like that :&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;let var_prom = count(if(match([Intern step],'...',1,0) and match([formular],'...',1,0) ,1));

/*
ALOS:
LOAD 
promEmbaucheChiff1
FROM
[ALOS.qvd]
(qvd);


concatenate (ALOS)

*/ 
ALOS : 
Load
$(var_prom) as promEmbaucheChiff1
AutoGenerate 1;

Store ALOS into [ALOS.qvd] (qvd);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;( the ALOS.QVD is the QVD where i would like to put the values of the variables. &lt;/P&gt;
&lt;P&gt;I concatenate the data&amp;nbsp; to have the old values and the current values )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i have an error, i think it doesn't recognise my expression for my variable . I have a Syntax error when i try to use the variable with $(var_prom)&lt;/P&gt;
&lt;P&gt;Syntax error&lt;BR /&gt;ALOS : &lt;BR /&gt;Load&lt;BR /&gt;as &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;promEmbaucheChiff1&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;AutoGenerate 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because var_prom is a KPI i would like to put in a QVD file.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938370#M1219244</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-06-01T13:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938377#M1219245</link>
      <description>&lt;P&gt;Like above already mentioned such a calculation couldn't be done within a variable in the script. You need to create a table (pulling all relevant fields together and applying the needed transformation and aggregations) which may end in just a single row + single column = single value - which may then be stored within a qvd or also assigned to a variable.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938377#M1219245</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-06-01T13:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Store values of variable in qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938407#M1219246</link>
      <description>&lt;P&gt;It was indeed as I said my bad understanding of english, thanks a lot it works !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 14:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-values-of-variable-in-qvd/m-p/1938407#M1219246</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-06-01T14:09:17Z</dc:date>
    </item>
  </channel>
</rss>

