<?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 Creating variable in script - problem with the $() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-variable-in-script-problem-with-the/m-p/145321#M24054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I would like to ask you to help me with the fallowing issue.&lt;/P&gt;&lt;P&gt;I have an excel file that contains following data:&lt;/P&gt;&lt;P&gt;VAR_NAME VAR_DEF&lt;/P&gt;&lt;P&gt;VAR_1 PRODUCT = {"SOMETHING"}&lt;/P&gt;&lt;P&gt;VAR_1_SUM SUM{&amp;lt;$(VAR_1)&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;When I create a variable in the script the result is like this:&lt;/P&gt;&lt;P&gt;VAR_1: PRODUCT = {"SOMETHING"}&lt;/P&gt;&lt;P&gt;VAR_1_SUM: SUM{&amp;lt;PRODUCT = {"SOMETHING"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;Do you know any method to force QlikView to stop evaluating the $() part during the variable creation?&lt;BR /&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;JTPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 19:39:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-28T19:39:33Z</dc:date>
    <item>
      <title>Creating variable in script - problem with the $()</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-in-script-problem-with-the/m-p/145321#M24054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I would like to ask you to help me with the fallowing issue.&lt;/P&gt;&lt;P&gt;I have an excel file that contains following data:&lt;/P&gt;&lt;P&gt;VAR_NAME VAR_DEF&lt;/P&gt;&lt;P&gt;VAR_1 PRODUCT = {"SOMETHING"}&lt;/P&gt;&lt;P&gt;VAR_1_SUM SUM{&amp;lt;$(VAR_1)&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;When I create a variable in the script the result is like this:&lt;/P&gt;&lt;P&gt;VAR_1: PRODUCT = {"SOMETHING"}&lt;/P&gt;&lt;P&gt;VAR_1_SUM: SUM{&amp;lt;PRODUCT = {"SOMETHING"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;Do you know any method to force QlikView to stop evaluating the $() part during the variable creation?&lt;BR /&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;JTPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 19:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-in-script-problem-with-the/m-p/145321#M24054</guid>
      <dc:creator />
      <dc:date>2009-05-28T19:39:33Z</dc:date>
    </item>
    <item>
      <title>Creating variable in script - problem with the $()</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-in-script-problem-with-the/m-p/145322#M24055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JTPro,&lt;/P&gt;&lt;P&gt;not sure if I'm missing anything here but shouldn't you be able to just define the variables like strings:&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Let&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Var1= 'PRODUCT = {"SOMETHING"}';&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;L&lt;STRONG&gt;et&lt;/STRONG&gt; Var2 = 'SUM{&amp;lt;$(Var1)&amp;gt;} Amount)';&lt;/P&gt;&lt;P&gt;This gives me two variables in the document:&lt;/P&gt;&lt;P&gt;Var1 - PRODUCT = {"SOMETHING"}&lt;/P&gt;&lt;P&gt;Var2 - SUM{&amp;lt;PRODUCT = {"SOMETHING"}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 21:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-in-script-problem-with-the/m-p/145322#M24055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-28T21:32:44Z</dc:date>
    </item>
    <item>
      <title>Creating variable in script - problem with the $()</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-variable-in-script-problem-with-the/m-p/145323#M24056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for quick reply.&lt;/P&gt;&lt;P&gt;The point is that in the case of Var2 instead of:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;PRODUCT = {"SOMETHING"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;I want to have:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;$(Var1)&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;QlikView is evaluating the $(Var1) and replace it with the PRODUCT = {"SOMETHING"} that is what I want to disable.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;JTPro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 22:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-variable-in-script-problem-with-the/m-p/145323#M24056</guid>
      <dc:creator />
      <dc:date>2009-05-28T22:28:06Z</dc:date>
    </item>
  </channel>
</rss>

