<?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 analisys comparing with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analisys-comparing-with-dates/m-p/329098#M121136</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;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I have a table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with these columns:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key&lt;/P&gt;&lt;P&gt;Field1&lt;/P&gt;&lt;P&gt;Field2&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Date_from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Date_to&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I want&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a grid&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that will show me only the record where Date_from &amp;lt; Date_to.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;How can i do?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;an expression&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;such as this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;does not work:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT ({$ &amp;lt; Date_from &amp;lt;= Date_to &amp;gt;}Key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this way it work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(if(Date_from &amp;lt;= Date_to &amp;gt;, CHIAVE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i like the set analisys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me, please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 13:22:13 GMT</pubDate>
    <dc:creator>fabio</dc:creator>
    <dc:date>2011-11-18T13:22:13Z</dc:date>
    <item>
      <title>Set analisys comparing with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analisys-comparing-with-dates/m-p/329098#M121136</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;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I have a table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with these columns:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key&lt;/P&gt;&lt;P&gt;Field1&lt;/P&gt;&lt;P&gt;Field2&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Date_from&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Date_to&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I want&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a grid&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that will show me only the record where Date_from &amp;lt; Date_to.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;How can i do?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;an expression&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;such as this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;does not work:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT ({$ &amp;lt; Date_from &amp;lt;= Date_to &amp;gt;}Key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this way it work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(if(Date_from &amp;lt;= Date_to &amp;gt;, CHIAVE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i like the set analisys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me, please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 13:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analisys-comparing-with-dates/m-p/329098#M121136</guid>
      <dc:creator>fabio</dc:creator>
      <dc:date>2011-11-18T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Set analisys comparing with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analisys-comparing-with-dates/m-p/329099#M121137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Notice that set expression is usewd to create a new subset of data to calculat the expression over, which means it will act more like a filtering of your data before the expression is calculated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you are looking for a way to compare to fields on the same row in your data. For this you can use a IF statement instead to check if your conditional requirement is fulfilled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count( If( Date_from &amp;lt;= Date_to, Key) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This menas that if the Date_to is greater or equal to the Date_from the value Key will be added in the Count() otherwise Null will be added, which means taht it will not be counted at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 14:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analisys-comparing-with-dates/m-p/329099#M121137</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-11-18T14:11:49Z</dc:date>
    </item>
  </channel>
</rss>

