<?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 in Chart Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Chart-Expression/m-p/472280#M1158131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Facundo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just figured out to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using "&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;GetCurrentSelections&lt;/EM&gt;&lt;/STRONG&gt;", it returns [FIELD NAME] = [Field Selection], so in this case it returned "Posted Date = Dec".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed my Variable to "GetFieldSelections", which then only returns the Month Name, and now the chart works.&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, 31 Dec 2012 08:15:23 GMT</pubDate>
    <dc:creator>gerhardl</dc:creator>
    <dc:date>2012-12-31T08:15:23Z</dc:date>
    <item>
      <title>Variable in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Chart-Expression/m-p/472278#M1158129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart where I want users to be able to select the Month's data they want to look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set up a variable called vSelectMonth with value &lt;STRONG&gt;&lt;EM&gt;=GetCurrentSelections([Posted Month])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in my chart I use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Posted Month]={$(=vSelectMonth)}&amp;gt;}[Trans Amount])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But is is not working (retuns zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried adding double and single quotes, no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be great if someone can assist (or give me a better way of using specific selections in a chart's expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 08:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Chart-Expression/m-p/472278#M1158129</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-12-31T08:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Chart-Expression/m-p/472279#M1158130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/gerhardl" id="jive-5301010320540960551598"&gt;gerhardl&lt;/A&gt; trie without '='&lt;/P&gt;&lt;P&gt;see the lines...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({$&amp;lt;[Posted Month]={$(vSelectMonth)}&amp;gt;}[Trans Amount])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 08:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Chart-Expression/m-p/472279#M1158130</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2012-12-31T08:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Chart-Expression/m-p/472280#M1158131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Facundo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just figured out to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using "&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;GetCurrentSelections&lt;/EM&gt;&lt;/STRONG&gt;", it returns [FIELD NAME] = [Field Selection], so in this case it returned "Posted Date = Dec".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed my Variable to "GetFieldSelections", which then only returns the Month Name, and now the chart works.&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, 31 Dec 2012 08:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Chart-Expression/m-p/472280#M1158131</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-12-31T08:15:23Z</dc:date>
    </item>
  </channel>
</rss>

