<?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 Count based on calendar value in context in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-based-on-calendar-value-in-context/m-p/1359468#M831358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Qlikview and are about to create my first app. I am trying to understand set analysis but the concept is not fully clear to me yet. Hopefully someone can give me a little help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fact table with data from a table. I have a period for when the row is valid (start and stop-date) and I have a DueDate. I have linked the fact-table to a calendar (using a linked table in between). Works fine. Now my problem is to write the set expression to only count the number of rows that are within a certain period considering the context. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example how can I write an expression to only count distinct where delayed is between 0 and 3 months? In my example I would like to get my first record in January 2017. I have tried something like this to just count all delayed: COUNT({&amp;lt;DueDate&amp;lt;MAX(Date)&amp;gt;}DISTINCT _ID)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="View.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168109_View.PNG" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168108_Table.PNG" style="height: 315px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Count based on calendar value in context</title>
      <link>https://community.qlik.com/t5/QlikView/Count-based-on-calendar-value-in-context/m-p/1359468#M831358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Qlikview and are about to create my first app. I am trying to understand set analysis but the concept is not fully clear to me yet. Hopefully someone can give me a little help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fact table with data from a table. I have a period for when the row is valid (start and stop-date) and I have a DueDate. I have linked the fact-table to a calendar (using a linked table in between). Works fine. Now my problem is to write the set expression to only count the number of rows that are within a certain period considering the context. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example how can I write an expression to only count distinct where delayed is between 0 and 3 months? In my example I would like to get my first record in January 2017. I have tried something like this to just count all delayed: COUNT({&amp;lt;DueDate&amp;lt;MAX(Date)&amp;gt;}DISTINCT _ID)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="View.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168109_View.PNG" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168108_Table.PNG" style="height: 315px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-based-on-calendar-value-in-context/m-p/1359468#M831358</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

