<?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 Ignoring selections problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignoring-selections-problem/m-p/258672#M97670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following scenario in qlikview, in which I need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are requests identified with a unique id (REQUEST_ID). The requests can be of two types (TYPE_CREATION or TYPE_ACTION). Action type requests are connected to several actions (ACTION_ID) and each action is connected to a team (TEAM) and a status (STATUS). Any request whose latest action at a selected date is not closed or archived is considered active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I wanted to count the number of active requests and with some help on another discussion I got to this expression that does it.&lt;/P&gt;&lt;P&gt;count({$&amp;lt;REQUEST_ID = {"=not match(FirstSortedValue(STATUS,-ACTION_ID),'Closed','Archived')"},&amp;gt;} distinct REQUEST_ID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I wanted to display this count in a bar chart using a date as Dimension, and I wanted the date that identifies the active requests to be the date connected to TYPE_CREATION instead of the date connected to Actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried this expression, that seemed to solve the problem.&lt;/P&gt;&lt;P&gt;count({&amp;lt;TYPE={'Type_Creation'}&amp;gt;}aggr(count({$&amp;lt;REQUEST_ID = {"=not match(FirstSortedValue(STATUS,- ACTION_ID), 'Closed', 'Archived') "},TYPE={'Type_Creation','Type_Action'}&amp;gt;} distinct REQUEST_ID), REQUEST_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However as a last requirement I needed to show all that were active at a selected date, ignoring the year and month selections for values lower than the currently selected date. So I added this to the expression&lt;/P&gt;&lt;P&gt;YEAR=,MONTH=,DATE={"&amp;lt;=$(vSelectedDate)"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I got this final expression:&lt;/P&gt;&lt;P&gt;count({&amp;lt;TYPE={'Type_Creation'},YEAR=,MONTH=,DATE={"&amp;lt;=$(vSelectedDate)"}&amp;gt;}aggr(count({$&amp;lt;REQUEST_ID = {"=not match(FirstSortedValue(STATUS,- ACTION_ID), 'Closed','Archived')"},TYPE={'Type_Creation','Type_Action'},YEAR=,MONTH=,DATE={"&amp;lt;=$(vSelectedDate)"}&amp;gt;} distinct REQUEST_ID), REQUEST_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work fine when I see the graph with an year selected, but when I select a month, the number of active requests before the selected month becomes 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on what could be wrong in the expression, or another way of doing this graph?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jan 2012 17:01:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-08T17:01:27Z</dc:date>
    <item>
      <title>Ignoring selections problem</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-selections-problem/m-p/258672#M97670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following scenario in qlikview, in which I need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are requests identified with a unique id (REQUEST_ID). The requests can be of two types (TYPE_CREATION or TYPE_ACTION). Action type requests are connected to several actions (ACTION_ID) and each action is connected to a team (TEAM) and a status (STATUS). Any request whose latest action at a selected date is not closed or archived is considered active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I wanted to count the number of active requests and with some help on another discussion I got to this expression that does it.&lt;/P&gt;&lt;P&gt;count({$&amp;lt;REQUEST_ID = {"=not match(FirstSortedValue(STATUS,-ACTION_ID),'Closed','Archived')"},&amp;gt;} distinct REQUEST_ID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I wanted to display this count in a bar chart using a date as Dimension, and I wanted the date that identifies the active requests to be the date connected to TYPE_CREATION instead of the date connected to Actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried this expression, that seemed to solve the problem.&lt;/P&gt;&lt;P&gt;count({&amp;lt;TYPE={'Type_Creation'}&amp;gt;}aggr(count({$&amp;lt;REQUEST_ID = {"=not match(FirstSortedValue(STATUS,- ACTION_ID), 'Closed', 'Archived') "},TYPE={'Type_Creation','Type_Action'}&amp;gt;} distinct REQUEST_ID), REQUEST_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However as a last requirement I needed to show all that were active at a selected date, ignoring the year and month selections for values lower than the currently selected date. So I added this to the expression&lt;/P&gt;&lt;P&gt;YEAR=,MONTH=,DATE={"&amp;lt;=$(vSelectedDate)"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I got this final expression:&lt;/P&gt;&lt;P&gt;count({&amp;lt;TYPE={'Type_Creation'},YEAR=,MONTH=,DATE={"&amp;lt;=$(vSelectedDate)"}&amp;gt;}aggr(count({$&amp;lt;REQUEST_ID = {"=not match(FirstSortedValue(STATUS,- ACTION_ID), 'Closed','Archived')"},TYPE={'Type_Creation','Type_Action'},YEAR=,MONTH=,DATE={"&amp;lt;=$(vSelectedDate)"}&amp;gt;} distinct REQUEST_ID), REQUEST_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work fine when I see the graph with an year selected, but when I select a month, the number of active requests before the selected month becomes 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on what could be wrong in the expression, or another way of doing this graph?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 17:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-selections-problem/m-p/258672#M97670</guid>
      <dc:creator />
      <dc:date>2012-01-08T17:01:27Z</dc:date>
    </item>
    <item>
      <title>Ignoring selections problem</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-selections-problem/m-p/258673#M97671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I had to a set expression to FirstSortedValue with YEAR=,MONTH=,DATE={"&amp;lt;=$(vSelectedDate)"} to ignore date selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 21:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-selections-problem/m-p/258673#M97671</guid>
      <dc:creator />
      <dc:date>2012-01-08T21:45:23Z</dc:date>
    </item>
  </channel>
</rss>

