<?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 Using a Variable in an Expression in a Bar Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-in-an-Expression-in-a-Bar-Chart/m-p/387285#M488082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to limit a bar chart to use only the latest date from the underlying data. (Other charts use the data for the latest month.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data load sets a variable called vMaxDate - right now the value of vMaxDate is 2012-12-31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the Expression for the bar chart to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NumericCount({$&amp;lt;BusinessDate={$(vMaxDate)}&amp;gt;} BusinessDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get nothing on the chart.&amp;nbsp; However, if I replace $(vMaxDate) with its value and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NumericCount({$&amp;lt;BusinessDate={'2012-12-31'}&amp;gt;} BusinessDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a correct chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 17:01:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-02T17:01:44Z</dc:date>
    <item>
      <title>Using a Variable in an Expression in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-in-an-Expression-in-a-Bar-Chart/m-p/387285#M488082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to limit a bar chart to use only the latest date from the underlying data. (Other charts use the data for the latest month.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data load sets a variable called vMaxDate - right now the value of vMaxDate is 2012-12-31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the Expression for the bar chart to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NumericCount({$&amp;lt;BusinessDate={$(vMaxDate)}&amp;gt;} BusinessDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get nothing on the chart.&amp;nbsp; However, if I replace $(vMaxDate) with its value and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NumericCount({$&amp;lt;BusinessDate={'2012-12-31'}&amp;gt;} BusinessDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a correct chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-in-an-Expression-in-a-Bar-Chart/m-p/387285#M488082</guid>
      <dc:creator />
      <dc:date>2013-01-02T17:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable in an Expression in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-in-an-Expression-in-a-Bar-Chart/m-p/387286#M488083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN class="replyToName" style="font-size: 14px;"&gt;jerryl_gs&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's looks to me syntax is correct&lt;/P&gt;&lt;P&gt;can you try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; =NumericCount({$&amp;lt;BusinessDate={'$(vMaxDate)'}&amp;gt;} BusinessDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else can you post the sample qvw.&lt;/P&gt;&lt;P&gt;so that i can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-in-an-Expression-in-a-Bar-Chart/m-p/387286#M488083</guid>
      <dc:creator />
      <dc:date>2013-01-02T17:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable in an Expression in a Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-in-an-Expression-in-a-Bar-Chart/m-p/387287#M488084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NumericCount({$&amp;lt;BusinessDate={"$(vMaxDate)"}&amp;gt;} BusinessDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NumericCount({$&amp;lt;BusinessDate={"$(=vMaxDate)"}&amp;gt;} BusinessDate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 17:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-in-an-Expression-in-a-Bar-Chart/m-p/387287#M488084</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-01-02T17:24:05Z</dc:date>
    </item>
  </channel>
</rss>

