<?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: Variable with spaces (in expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813600#M533170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is the value of a field you are trying to display, try &lt;/P&gt;&lt;P&gt;sum([$(vMeasure)])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Mar 2015 18:46:17 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2015-03-28T18:46:17Z</dc:date>
    <item>
      <title>Variable with spaces (in expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813599#M533169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable that has the value of a measure depending on the selection of the user. It works but when I use it in my expression (sum) it always gives a value of 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable &lt;STRONG&gt;vMeasure&lt;/STRONG&gt; result is Amount Revenue or Amount Premium.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use it simply in the expression:&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;sum&lt;SPAN style="font-size: 10pt;"&gt;('$(vMeasure)') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I assume it has something to do with the fact that the translation would be : sum (Amount Revenue) with no brackets rendering it wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance for any assistance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 18:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813599#M533169</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-03-28T18:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with spaces (in expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813600#M533170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is the value of a field you are trying to display, try &lt;/P&gt;&lt;P&gt;sum([$(vMeasure)])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 18:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813600#M533170</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-28T18:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with spaces (in expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813601#M533171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not try your variable to be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMeasure = '[' &amp;amp; Measure &amp;amp; ']'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use it in your expression as &lt;STRONG&gt;Sum($(vMeasure))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 18:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813601#M533171</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-28T18:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with spaces (in expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813602#M533172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - Can't believe it was that simple!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 19:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813602#M533172</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-03-28T19:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with spaces (in expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813603#M533173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny - tried that same thing and it didn't like it. The answer was as simple as adding the brackets [] around the measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 19:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813603#M533173</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-03-28T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with spaces (in expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813604#M533174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha, it did not like it? QlikView can sometime do that to us... But I am glad you got the solution to what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 19:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-spaces-in-expression/m-p/813604#M533174</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-28T19:05:23Z</dc:date>
    </item>
  </channel>
</rss>

