<?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: How To Filter By Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286698#M106681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you used above line as calculated dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, you can't use a set expression stand alone, but you could use it in an aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So either use this is calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if( Year = $(vMinYear), Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use a set expression like above as part of an aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do a count(Sales) for example, use Year as dimension and&lt;/P&gt;&lt;P&gt;= count( {&amp;lt;Year= {$(vMinYear)}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to do this limitation then on each expression to get a equal behaviour than using a calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2011 21:23:02 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-10-31T21:23:02Z</dc:date>
    <item>
      <title>How To Filter By Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286697#M106680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to filter dimension Year by a variable vMinYear.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;={&amp;lt;Year={&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vMinYear)}&amp;gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;﻿&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me a pointer on what I should construct this dimension filter?&lt;/P&gt;&lt;P&gt;Appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 21:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286697#M106680</guid>
      <dc:creator />
      <dc:date>2011-10-31T21:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How To Filter By Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286698#M106681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you used above line as calculated dimensions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, you can't use a set expression stand alone, but you could use it in an aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So either use this is calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if( Year = $(vMinYear), Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use a set expression like above as part of an aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do a count(Sales) for example, use Year as dimension and&lt;/P&gt;&lt;P&gt;= count( {&amp;lt;Year= {$(vMinYear)}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to do this limitation then on each expression to get a equal behaviour than using a calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 21:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286698#M106681</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-31T21:23:02Z</dc:date>
    </item>
    <item>
      <title>How To Filter By Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286699#M106682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan.&lt;/P&gt;&lt;P&gt;Would this syntax work with range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; background: white;"&gt;&lt;SPAN lang="EN" style="font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; color: #636363; font-size: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN;"&gt;= if( Year &amp;gt;= $(vMinYear) and Year &amp;lt;= $(vMaxYear), Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; background: white;"&gt;Much appreciated.&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 00:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286699#M106682</guid>
      <dc:creator />
      <dc:date>2011-11-01T00:26:02Z</dc:date>
    </item>
    <item>
      <title>How To Filter By Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286700#M106683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, should do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And &lt;/P&gt;&lt;P&gt;= count( {&amp;lt;Year= {"&amp;gt;=$(vMinYear)&amp;lt;=$(vMaxYear)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the set expression should also do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filtering with set analysis will probably perform better, but just try both and play a little bit around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 00:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Filter-By-Variable/m-p/286700#M106683</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-01T00:36:24Z</dc:date>
    </item>
  </channel>
</rss>

