<?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 Set Analysis Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649706#M1082111</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=COUNT({&amp;lt;[StartYear] = {$(=vYear_Current)}&amp;gt;} [EMP NO.])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2014 06:09:42 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-06-25T06:09:42Z</dc:date>
    <item>
      <title>Variable in Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649702#M1082107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, could you please help me solve a problem with using a year variable in set analysis :&lt;/P&gt;&lt;P&gt;Firstly, I have set the year variable with following statement -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vYear_Current = Year(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this expression, I get the correct answer - &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT({&amp;lt;'StartYear' = {'2014'}&amp;gt;} [EMP NO.])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this, I get zero as the answer - &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT({&amp;lt;'StartYear' = {$vYear_Current}&amp;gt;} [EMP NO.])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 05:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649702#M1082107</guid>
      <dc:creator />
      <dc:date>2014-06-25T05:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649703#M1082108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try some thing like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT({&amp;lt;'StartYear' = {'$(=vYear_Current)'}&amp;gt;} [EMP NO.])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 05:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649703#M1082108</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-06-25T05:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649704#M1082109</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;=COUNT({&amp;lt;'StartYear' = {$(=vYear_Current)}&amp;gt;} [EMP NO.])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 05:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649704#M1082109</guid>
      <dc:creator />
      <dc:date>2014-06-25T05:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649705#M1082110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt; =COUNT({&amp;lt;'StartYear' =&amp;nbsp; {'$&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt; vYear_Current &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;)' &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;}&amp;gt;} [EMP NO.])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 05:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649705#M1082110</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-25T05:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649706#M1082111</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=COUNT({&amp;lt;[StartYear] = {$(=vYear_Current)}&amp;gt;} [EMP NO.])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 06:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649706#M1082111</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-25T06:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649707#M1082112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Use this Expression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=COUNT({&amp;lt;'StartYear' =&amp;nbsp; {"$&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; vYear_Current &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)" &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;} [EMP NO.])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And also check whether the variable passed is giving you correct value by removing the name of the expression and then hover on Expression in chart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 06:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649707#M1082112</guid>
      <dc:creator />
      <dc:date>2014-06-25T06:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649708#M1082113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all so much for replying, really appreciate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 slightly different answers, no wonder I am finding the syntax in set analysis a little challenging. Just for the record, three gave me the answer I was looking for :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT({&amp;lt;'StartYear' = {'$(=vYear_Current)'}&amp;gt;} [EMP NO.])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT({&amp;lt;'StartYear' = {$(=vYear_Current)}&amp;gt;} [EMP NO.])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT({&amp;lt;[StartYear] = {$(=vYear_Current)}&amp;gt;} [EMP NO.])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =COUNT({&amp;lt;'StartYear' = {$vYear_Current}&amp;gt;} [EMP NO.])&amp;nbsp;&amp;nbsp; - my initial attempt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the = sign preceding the variable is the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 09:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Set-Analysis-Question/m-p/649708#M1082113</guid>
      <dc:creator />
      <dc:date>2014-06-25T09:30:23Z</dc:date>
    </item>
  </channel>
</rss>

