<?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: Errors in expression due to variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132144#M457669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can use variables in expression if there is red symbol inspite of it you can continue&lt;/P&gt;&lt;P&gt;you will get your expected results.&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, 17 Sep 2018 07:29:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-17T07:29:15Z</dc:date>
    <item>
      <title>Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132142#M457667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear QlikView-Community, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question concerning the use of variables in expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a variable and let it be calcualted in an expression, like $(Variable). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine, but the only thing is that QV writes "Errors in expression". Should i be disturbed by that or can i keep on going? Beside of that note there are no problems at all, the calculation works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help &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;Jakob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 07:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132142#M457667</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-09-17T07:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132143#M457668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jacob. If you meen red underline then you can keep on going.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 07:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132143#M457668</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-17T07:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132144#M457669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can use variables in expression if there is red symbol inspite of it you can continue&lt;/P&gt;&lt;P&gt;you will get your expected results.&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, 17 Sep 2018 07:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132144#M457669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-17T07:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132145#M457670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;it looks like this, without red underlines or red symbols - but even though there is this note, the calculation works, so if you say I can keep on going im happy &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="190" src="https://community.qlik.com/legacyfs/online/213692_Capture.PNG" style="height: 190px; width: 812.414px;" width="813" /&gt;&lt;/P&gt;&lt;P&gt;So thank you very much for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 08:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132145#M457670</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-09-17T08:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132146#M457671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Jakob. It looks some different but I think it's the same I mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 08:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132146#M457671</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-17T08:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132147#M457672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is working fine leave those red lines.if there is an error in the expression it will shows error else just leave &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 09:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132147#M457672</guid>
      <dc:creator>manoj217</dc:creator>
      <dc:date>2018-09-17T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132148#M457673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to know the reason why this is happening (and why everyone else seems to know that this Error message and red-wiggly-line-stuff won't cause any problems ;-), consider this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression editor (and the script editor as well) has a syntax checker that tries to figure out what your expression means and whether it complies to the general expression ruleset. It manages to detect all common spelling errors, function call irregularities, missing or extraneous commas and other common mistakes. It even relies on a sort of limited context to detect non-existent fields and variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it doesn't do however, is actually &lt;EM&gt;evaluate/execute your expression&lt;/EM&gt;, and that causes some problems because $-sign expansions only result in expression parts when they are actually &lt;EM&gt;expanded&lt;/EM&gt; at run-time/evaluation-time. Only at that particular time do they need to carry a useful value. In other words, neither the expression syntax checker, nor the script syntax checker expand variables in $-sign constructs. So while it knows that a variable name should be present in its internal list of defined variables, it cannot make anything of the $-sign construct until the expression is actually &lt;EM&gt;used&lt;/EM&gt; to calculate results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, you may ask yourself "but why doesn't the syntax checker at least try to evaluate my expression and check the resulting expansion at the same time"? Well, the variable does exist, but it may still be empty at the time of editing your expression. Maybe because the variable is only set at script execution time. And that is only a simple exception that can't be avoided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conclusion: we ignore this anomaly, because every attempt by Qlik to fix this would probably make things worse. And probably also a lot slower...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Edit] Sorry, I seem to ignore even my own english-language syntax checker... corrected the obvious spelling mistakes. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 09:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132148#M457673</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-09-17T09:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in expression due to variables</title>
      <link>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132149#M457674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your comprehensive explaination! Good to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 14:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Errors-in-expression-due-to-variables/m-p/132149#M457674</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-09-17T14:23:25Z</dc:date>
    </item>
  </channel>
</rss>

