<?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 Variable Being Overwritten? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224137#M76585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use this version of my example for understanding differences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jul 2010 12:15:06 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2010-07-16T12:15:06Z</dc:date>
    <item>
      <title>Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224131#M76579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;Odd situation happening on a production QlikView document.&lt;/P&gt;&lt;P&gt;I have a variable that is declared/defined in the LOAD Script with the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;SET vCompDate = "=GetFieldSelections(DT_ComparisonDate)";&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So, normally when I use this variable it used in a dollar expansion within a set analysis expression, and the dollar expansion obviously produces a date value, the date value will of course change according to the selections made against the field DT_ComparisonDate.&lt;/P&gt;&lt;P&gt;An odd problem happens very in-frequently whereby the comparison date selections stop working, and actually what has happened is that the variable vCompDate has changed to contain a date value rather than the above statement.&lt;/P&gt;&lt;P&gt;I have looked through macros and there is nowhere where this could possibly happen in a macro, so I'm wondering if anybody else out there has come across this behaviour at all, and if so, have you tracked the root cause?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 11:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224131#M76579</guid>
      <dc:creator />
      <dc:date>2010-07-15T11:42:43Z</dc:date>
    </item>
    <item>
      <title>Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224132#M76580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could still use some assistance on this if anybody has any ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 08:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224132#M76580</guid>
      <dc:creator />
      <dc:date>2010-07-16T08:25:45Z</dc:date>
    </item>
    <item>
      <title>Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224133#M76581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Nigel.&lt;BR /&gt;&lt;BR /&gt;I created a small example and I don't see the same behaviour.&lt;BR /&gt;&lt;BR /&gt;see in attachment, please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 11:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224133#M76581</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-07-16T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224134#M76582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Yes, I normally don't see any problems with it, it just happens every now and again (happened once about 3 months ago, and again yesterday) so it's not an everyday problem.&lt;/P&gt;&lt;P&gt;One thing.....&lt;/P&gt;&lt;P&gt;You used LET vCompDate = ......................&lt;/P&gt;&lt;P&gt;I have used SET vCompDate = .......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never been absolutely clear on the difference between the two, but maybe that might be causing the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 11:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224134#M76582</guid>
      <dc:creator />
      <dc:date>2010-07-16T11:43:51Z</dc:date>
    </item>
    <item>
      <title>Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224135#M76583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a long time ago, I tried describe differences between these two definitions of variables: http://qvrus.blogspot.com/2009/09/qlikview.html. See in my blog (it's on Russian but you can use a google translate option, which built-in in my blog.)&lt;/P&gt;&lt;P&gt;But when your definition like as:&lt;BR /&gt;&lt;BR /&gt;SET vCompDate = "=GetFieldSelections(DT_ComparisonDate)";&lt;BR /&gt;&lt;BR /&gt;so I think that no differences, because you use symbol equal and your variable must be evaluate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 12:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224135#M76583</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-07-16T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224136#M76584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The difference between let and set are well explained in the Qlikview help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Set command assigns the variable the text to the right of the equal sign, whereas the Let command evaluates the expression.&lt;/P&gt;&lt;P&gt;Both are really different and do not give the same result.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 12:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224136#M76584</guid>
      <dc:creator />
      <dc:date>2010-07-16T12:10:42Z</dc:date>
    </item>
    <item>
      <title>Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224137#M76585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use this version of my example for understanding differences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 12:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224137#M76585</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-07-16T12:15:06Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Variable Being Overwritten?</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224138#M76586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Philippe.&lt;/P&gt;&lt;P&gt;but if we use equal sign in the value of variable (SET vCompDate = "=GetFieldSelections(DT_ComparisonDate)";), then all differences no more exists.&lt;/P&gt;&lt;P&gt;In the Nigel's example, we see that he use equal sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 12:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Being-Overwritten/m-p/224138#M76586</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-07-16T12:18:33Z</dc:date>
    </item>
  </channel>
</rss>

