<?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 Set Analysis - Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Variable/m-p/827283#M1041587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined a variable as&lt;/P&gt;&lt;P&gt;=(Count({&amp;lt;NumberOfParks={"&amp;gt;=$(threshold)"}&amp;gt;}NumberOfParks))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It counts the number of times a field 'NumberOfParks' has crossed a threshold value. Right now it takes into consideration the complete set of Dimension (Years in this case). How can I restrict my variable to consider only a subset of data and then compute the count of NumberOfParks? What will be the Set Analysis Expression for this variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the sample. Variable I'm talking about is 'counter'. I want counter to consider only Years till 2002 and leave the Year '2003' from consideration for calculating NumberOfParks.&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, 15 Dec 2014 16:56:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-15T16:56:45Z</dc:date>
    <item>
      <title>Set Analysis - Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Variable/m-p/827283#M1041587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined a variable as&lt;/P&gt;&lt;P&gt;=(Count({&amp;lt;NumberOfParks={"&amp;gt;=$(threshold)"}&amp;gt;}NumberOfParks))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It counts the number of times a field 'NumberOfParks' has crossed a threshold value. Right now it takes into consideration the complete set of Dimension (Years in this case). How can I restrict my variable to consider only a subset of data and then compute the count of NumberOfParks? What will be the Set Analysis Expression for this variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the sample. Variable I'm talking about is 'counter'. I want counter to consider only Years till 2002 and leave the Year '2003' from consideration for calculating NumberOfParks.&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, 15 Dec 2014 16:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Variable/m-p/827283#M1041587</guid>
      <dc:creator />
      <dc:date>2014-12-15T16:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Variable/m-p/827284#M1041588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the following expression:&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;&lt;STRONG&gt;Years = {"&amp;lt;=2002"},&lt;/STRONG&gt; NumberOfParks={"&amp;gt;=$(threshold)"}&amp;gt;}NumberOfParks))&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;You can add filters to other fields just comma-separating them between the &amp;lt; &amp;gt; brackets.&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;&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;Giacomo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Variable/m-p/827284#M1041588</guid>
      <dc:creator>giacomom</dc:creator>
      <dc:date>2014-12-15T17:08:11Z</dc:date>
    </item>
  </channel>
</rss>

