<?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 Dollar sign expansion with variable issue with &amp;amp; operator in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598569#M444091</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have an issue with dollar sign expansion with my variable;&lt;/P&gt;&lt;P&gt;I have set my variable2 as =MaxString(MTH) &amp;amp; 'Q'&lt;/P&gt;&lt;P&gt;When I use the variable2 in expression&lt;/P&gt;&lt;P&gt;=$(Variable2)&amp;nbsp; in textbox&lt;/P&gt;&lt;P&gt;it will return Garbage after expression 'Q'&lt;/P&gt;&lt;P&gt;but if I write ='$(Variable2)' it will work and show the correct value.&lt;/P&gt;&lt;P&gt;Could anybody explain me the reason?&lt;/P&gt;&lt;P&gt;I have attached my qvw file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:31:46 GMT</pubDate>
    <dc:creator>adamgaox</dc:creator>
    <dc:date>2024-11-16T20:31:46Z</dc:date>
    <item>
      <title>Dollar sign expansion with variable issue with &amp; operator in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598569#M444091</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have an issue with dollar sign expansion with my variable;&lt;/P&gt;&lt;P&gt;I have set my variable2 as =MaxString(MTH) &amp;amp; 'Q'&lt;/P&gt;&lt;P&gt;When I use the variable2 in expression&lt;/P&gt;&lt;P&gt;=$(Variable2)&amp;nbsp; in textbox&lt;/P&gt;&lt;P&gt;it will return Garbage after expression 'Q'&lt;/P&gt;&lt;P&gt;but if I write ='$(Variable2)' it will work and show the correct value.&lt;/P&gt;&lt;P&gt;Could anybody explain me the reason?&lt;/P&gt;&lt;P&gt;I have attached my qvw file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598569#M444091</guid>
      <dc:creator>adamgaox</dc:creator>
      <dc:date>2024-11-16T20:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar sign expansion with variable issue with &amp; operator in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598589#M444092</link>
      <description>&lt;P&gt;Its because qlikview needs to undestand that the value passed is a string so the quotes help in providing that information, hope that helps&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598589#M444092</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-07-03T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar sign expansion with variable issue with &amp; operator in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598597#M444095</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;When you usea a variable with dollar expanssion there are several steps that you have to take into account:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The variable is evaluated (if the variable definition starts with '='). Thus, the expresion &lt;EM&gt;=MaxString(MTH) &amp;amp; 'Q'&amp;nbsp;&lt;/EM&gt; is evaluated. Let's suppose that the evaluation gives &lt;STRONG&gt;JaimeQ&amp;nbsp;&lt;/STRONG&gt;(where Jaime is&amp;nbsp;&lt;EM&gt;MaxString(MTH)&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;Expansion: the &lt;EM&gt;$(whatever)&amp;nbsp;&lt;/EM&gt;is substituted by its content. In this case,&amp;nbsp;&lt;SPAN&gt;$(Variable2) is substituted by&amp;nbsp;&lt;STRONG&gt;JaimeQ .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;Evaluation:&lt;/U&gt; the result of the expanssion is evaluated so QlikView is trying to interpret the expression "=JaimeQ" and it is, obviously, wrong.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Summarizing, when you write in a text box&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=$(Variable2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is equivalent to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=JaimeQ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;WRONG!&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;On the other hand, when you write&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;='$(Variable2)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it is equivalent to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;='JaimeQ'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;CORRECT!&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I hope I've explained myself!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598597#M444095</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-07-03T11:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dollar sign expansion with variable issue with &amp; operator in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598898#M444120</link>
      <description>&lt;P&gt;Thanks a ton.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 03:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dollar-sign-expansion-with-variable-issue-with-amp-operator-in/m-p/1598898#M444120</guid>
      <dc:creator>adamgaox</dc:creator>
      <dc:date>2019-07-04T03:59:46Z</dc:date>
    </item>
  </channel>
</rss>

