<?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 Issues on Variables and $() expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issues-on-Variables-and-expressions/m-p/263635#M495719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using variables in expressions and i think i have found a kind of bug. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;i define on script a variable called &lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt; where i define the value of the field [Segmento] that i'll use on the set expression (for a graph)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Segmento] = {$(&lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt;)}&amp;gt;} Measure_to_sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine when i use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LET &lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt; = 'Segm_1' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i change it to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LET &lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt; = 'Segm 1' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(note the "space" character) there is no data on Graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, i have the values 'Segm_1' and 'Segm 1' as part of the field Segmento.on data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug or i'm doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 12:44:21 GMT</pubDate>
    <dc:creator>bimartingo</dc:creator>
    <dc:date>2012-02-08T12:44:21Z</dc:date>
    <item>
      <title>Issues on Variables and $() expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-on-Variables-and-expressions/m-p/263635#M495719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using variables in expressions and i think i have found a kind of bug. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;i define on script a variable called &lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt; where i define the value of the field [Segmento] that i'll use on the set expression (for a graph)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Segmento] = {$(&lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt;)}&amp;gt;} Measure_to_sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine when i use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LET &lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt; = 'Segm_1' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i change it to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LET &lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt; = 'Segm 1' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(note the "space" character) there is no data on Graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, i have the values 'Segm_1' and 'Segm 1' as part of the field Segmento.on data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug or i'm doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 12:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-on-Variables-and-expressions/m-p/263635#M495719</guid>
      <dc:creator>bimartingo</dc:creator>
      <dc:date>2012-02-08T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Issues on Variables and $() expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-on-Variables-and-expressions/m-p/263636#M495720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; use $(&lt;SPAN style="font-size: 12px; text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt;) within single quotes..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;[Segmento] = {'$(&lt;SPAN style="font-size: 12px; text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt;)'}&amp;gt;} Measure_to_sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 13:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-on-Variables-and-expressions/m-p/263636#M495720</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-08T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Issues on Variables and $() expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-on-Variables-and-expressions/m-p/263637#M495721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giving Single quotes fixes the issue.&amp;nbsp; Because of the space between the words is causing the issue.&amp;nbsp; It is a good practice to always give quotes in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Segmento] = {'$(&lt;SPAN style="text-decoration: underline;"&gt;vSegmento&lt;/SPAN&gt;)'}&amp;gt;} Measure_to_sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 14:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-on-Variables-and-expressions/m-p/263637#M495721</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-08T14:42:54Z</dc:date>
    </item>
  </channel>
</rss>

