<?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: How do I clear all QlikSense variables? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125546#M19614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my case I have duplicated lines in the variable overview in Sense application (I have no idea how could this happen):&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141126_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables (defined in script) cannot be edited / deleted in the front. To remove them, you need to go to script and do "set variable=;" (see &lt;A href="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Variables/delete-variable-using-dialog.htm" title="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Variables/delete-variable-using-dialog.htm"&gt;Deleting a variable ‒ Qlik Sense&lt;/A&gt; in the official help page), reload, and then edit / delete the variable in the front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I have to reload four times, each time one of the duplicated variable became editable then I deleted one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note this works in Sense desktop 10.3.4. When I tried the same steps first in a Sense 3.1 server, it did not work (Every time I reload the script, one new editable variable appears. I can only delete this new created one. I still cannot do anything to the existing duplicated ones).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just hope this can provide some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 01:32:57 GMT</pubDate>
    <dc:creator>NZFei</dc:creator>
    <dc:date>2016-10-19T01:32:57Z</dc:date>
    <item>
      <title>How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125539#M19607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems QlikSense variables are stored even after the variable definition is deleted, which can cause unexpected results. It can make things very difficult to debug when there is no variable defined in the load script, but it is used (and has a value). How can I clear ALL variables at the start of my load script (without knowing variable names)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 20:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125539#M19607</guid>
      <dc:creator />
      <dc:date>2016-06-27T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125540#M19608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't reproduce the described behavior. When I delete a variable from the sheet editor, it o longer ha a value in the script. I am using Sense desktop 2.2.3. What version are you using? Can you post a qvf that demonstrates the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 22:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125540#M19608</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-06-27T22:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125541#M19609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a odd behavior, and haven't see this in my versions 2.0.1, 2.2.3, 2.2.4 &amp;amp; 3.0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this extension and export all variables and copy &amp;amp; paste them back to load script and modify them something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCurrMonth ='';&lt;/P&gt;&lt;P&gt;Let vPrevMonth ='';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://branch.qlik.com/#!/project/56728f52d1e497241ae698c7" title="http://branch.qlik.com/#!/project/56728f52d1e497241ae698c7"&gt;Qlik Branch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 22:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125541#M19609</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2016-06-27T22:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125542#M19610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the variable will no longer exist when you reload the it. Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 02:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125542#M19610</guid>
      <dc:creator />
      <dc:date>2016-06-28T02:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125543#M19611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using 2.2.4. My understanding is that this is known, accepted behavior. Let's say I have these two lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LET vTest = 3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; vTest = $(vTest) * 2;&lt;/P&gt;&lt;P&gt;I have a sheet with a KPI displaying $(vTest). I hit Load, and it shows 6. I can hit Load a hundred times, and it will always display 6. Now I make this change:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET vTestTypo = 3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vTest = $(vTest) * 2;&lt;/P&gt;&lt;P&gt;Now it displays 12. Wait, what? Let me trying loading again, without changing anything. Now it displays 24. Load again, it shows 48. I'm expecting 6. The reason is that QlikSense saves variables with their most recent value, regardless of whether they are in the load script. After the initial run, when the typo is introduced, it remembers vTest was 6, so it doubles it (then again, and again).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not the only downside of this "variables persist" design, but it's the easiest to demonstrate. What I would like to do it clear out ALL variables at the start of my load script, delete them or at least set them to NULL. According to my Googling, something similar &lt;A _jive_internal="true" href="https://community.qlik.com/thread/75270"&gt;can be done in QlikView&lt;/A&gt;‌, but it requires functions/macros that QlikSense does not have. Is there a way to get a list of all QlikSense variables in the load script, and clear out their values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 02:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125543#M19611</guid>
      <dc:creator />
      <dc:date>2016-06-28T02:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125544#M19612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having also troubles with this behaviour.&lt;/P&gt;&lt;P&gt;Did you find a solution for it?&lt;/P&gt;&lt;P&gt;I'm in QS desktop 3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Azu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 03:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125544#M19612</guid>
      <dc:creator />
      <dc:date>2016-10-11T03:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125545#M19613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No solution yet. I have found a number of posts confirming the behavior, but nothing with any practical advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 17:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125545#M19613</guid>
      <dc:creator />
      <dc:date>2016-10-11T17:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125546#M19614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my case I have duplicated lines in the variable overview in Sense application (I have no idea how could this happen):&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141126_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables (defined in script) cannot be edited / deleted in the front. To remove them, you need to go to script and do "set variable=;" (see &lt;A href="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Variables/delete-variable-using-dialog.htm" title="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Variables/delete-variable-using-dialog.htm"&gt;Deleting a variable ‒ Qlik Sense&lt;/A&gt; in the official help page), reload, and then edit / delete the variable in the front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I have to reload four times, each time one of the duplicated variable became editable then I deleted one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note this works in Sense desktop 10.3.4. When I tried the same steps first in a Sense 3.1 server, it did not work (Every time I reload the script, one new editable variable appears. I can only delete this new created one. I still cannot do anything to the existing duplicated ones).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just hope this can provide some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 01:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125546#M19614</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2016-10-19T01:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125547#M19615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Fei!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a multi node setup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the same weird issue.&lt;/P&gt;&lt;P&gt;We are on 3.0 and had a multi node setup, but started to get lots of problems, which Qlik claims is due to sync problems between the nodes.&lt;/P&gt;&lt;P&gt;We have now shut down all nodes except the central node but the variable duplicates are still there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125547#M19615</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2016-10-19T13:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125548#M19616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Goran. I only set up a central node for test purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125548#M19616</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2016-10-19T19:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125549#M19617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fei:&lt;/P&gt;&lt;P&gt;The duplicates are due to a bug in Sense.&lt;/P&gt;&lt;P&gt;Contact Qlik Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had an app with more than 40000(!) duplicated variables due to this bug.&lt;/P&gt;&lt;P&gt;It took approx 2 minutes to open this app in the hub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik had to write a program to remove the duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it takes 4 seconds to open the app!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 06:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125549#M19617</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2016-10-28T06:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I clear all QlikSense variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125550#M19618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;First of all, let me clarify that you do not need to declare all variables that you will use at the beginning of the script: If it was used on a previous run of the script or if it was created from the user interface, it will be saved and you can call it again whenever you want during the script (using the last defined value) The first time you run the script, you create the variable. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; LET vTest = 3;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; vTest = $(vTest) * 2;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you don't change the script, the variable already exists with value six (6) , but when you reach here, you redefine the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vTest again to three(3) and then to six (6)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; LET vTest = 3;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; vTest = $(vTest) * 2;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Qlik remembers the value of this variable, so if you don't change it, Qlik will only read this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; vTest = $(vTest) * 2;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is working as intended, since the Idea is that (in some cases) you can define Variables from the user interface or from outside the application (via EDX or QMC in QlikView, for instance) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 09:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-I-clear-all-QlikSense-variables/m-p/1125550#M19618</guid>
      <dc:creator>diego_barboza</dc:creator>
      <dc:date>2018-05-21T09:21:04Z</dc:date>
    </item>
  </channel>
</rss>

