<?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 identify values according to a restriction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070423#M357585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not good for performance, but this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(Aggr(If(year &amp;gt;= Start and year &amp;lt;= End, ID), year, ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 18:24:14 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-24T18:24:14Z</dc:date>
    <item>
      <title>How to identify values according to a restriction</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070420#M357582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community:&lt;/P&gt;&lt;P&gt;I'm having a problem that I hope you can help me with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Table1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="34" width="80"&gt;Start&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;End&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;AmountYears&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="80"&gt;ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;" width="80"&gt;2007&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;2018&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;2018&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;" width="80"&gt;2009&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;" width="80"&gt;2015&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="80"&gt;2019&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="80"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Table2&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 80px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="80"&gt;year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I need to show the amount of ID's that in the year selected in the table 2, the value in the End table is equal or higher than it.&lt;/P&gt;&lt;P&gt;For example, if the year selected in the table2 is 2015, the amount of ID's are 5: ID's 3,5,7,8,1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070420#M357582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T18:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify values according to a restriction</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070421#M357583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="119355" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119355_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Start, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AmountYears, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="210882" data-objecttype="1" href="https://community.qlik.com/thread/210882"&gt;https://community.qlik.com/thread/210882&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="210882" data-objecttype="1" href="https://community.qlik.com/thread/210882"&gt;https://community.qlik.com/thread/210882&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(year)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Start,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; End&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD year &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070421#M357583</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-24T18:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify values according to a restriction</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070422#M357584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there a way to do it on the front end? like an expression on a text object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070422#M357584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify values according to a restriction</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070423#M357585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not good for performance, but this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(Aggr(If(year &amp;gt;= Start and year &amp;lt;= End, ID), year, ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070423#M357585</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-24T18:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify values according to a restriction</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070424#M357586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe this with the tables shown above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=CONCAT(DISTINCT If(year&amp;gt;=Start and year&amp;lt;=End, ID),', ',ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-values-according-to-a-restriction/m-p/1070424#M357586</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T18:25:34Z</dc:date>
    </item>
  </channel>
</rss>

