<?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 range with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/range-with-set-analysis/m-p/252114#M711580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You'll want to put both conditions within the same {}. You only define the set for YearMonth_Rep at one place, something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Year = {“&amp;gt;1978&amp;lt;2004”}&amp;gt;} Sales&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So you should update your expression to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(DISTINCT {&amp;lt;YearMonth_Rep = {"&amp;gt;=$(=min(YearMonth))&amp;lt;=$(=max(YearMonth))"} &amp;gt;} ReportID )&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 00:42:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-05-31T00:42:25Z</dc:date>
    <item>
      <title>range with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/range-with-set-analysis/m-p/252113#M711579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I'm trying to get a distinct count on the records between a range based on the [YearMonth] selected, this is the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Count(DISTINCT {&amp;lt;YearMonth_Rep = {"&amp;gt;=$(=min(YearMonth))"}, YearMonth_Rep = {"&amp;lt;=$(=max(YearMonth))"} &amp;gt;} ReportID )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearMonth_Rep and YearMonth are numeric values in the form 201101, 201102 for january and february 2011 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the MIN or MAX part only, the filter works as expected, however trying to get both sentences together doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I change the sentence?&lt;/P&gt;&lt;P&gt;Or do you have another recomendation on how to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 23:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/range-with-set-analysis/m-p/252113#M711579</guid>
      <dc:creator>rfigueroa</dc:creator>
      <dc:date>2011-05-30T23:44:57Z</dc:date>
    </item>
    <item>
      <title>range with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/range-with-set-analysis/m-p/252114#M711580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You'll want to put both conditions within the same {}. You only define the set for YearMonth_Rep at one place, something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Year = {“&amp;gt;1978&amp;lt;2004”}&amp;gt;} Sales&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So you should update your expression to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(DISTINCT {&amp;lt;YearMonth_Rep = {"&amp;gt;=$(=min(YearMonth))&amp;lt;=$(=max(YearMonth))"} &amp;gt;} ReportID )&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 00:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/range-with-set-analysis/m-p/252114#M711580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-31T00:42:25Z</dc:date>
    </item>
    <item>
      <title>range with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/range-with-set-analysis/m-p/252115#M711581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Johannes, it works... thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 15:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/range-with-set-analysis/m-p/252115#M711581</guid>
      <dc:creator>rfigueroa</dc:creator>
      <dc:date>2011-05-31T15:40:14Z</dc:date>
    </item>
  </channel>
</rss>

