<?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 Straight Table with Expression using Set Analysis - Filtering problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297362#M584843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The quikest way is an intersection witht he current selection:&lt;/P&gt;&lt;P&gt;=count( { $*$ &amp;lt;[Status] = {'Closed'}&amp;gt; } [Date] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 15:00:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-24T15:00:35Z</dc:date>
    <item>
      <title>Straight Table with Expression using Set Analysis - Filtering problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297361#M584842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider a straight table chart where you have a few simple dimensions, then a single Expression.&amp;nbsp; The Expression is the Count of records, but using Set Analysis to count only records meeting a specific criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if data includes columns:&amp;nbsp; Date, ID, Status, Type&lt;/P&gt;&lt;P&gt;And chart dimensions are: ID, Status, Type&lt;/P&gt;&lt;P&gt;And chart expression is: =count( { $ &amp;lt;[Status] = {'Closed'}&amp;gt; } [Date] ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this works fine, but when user filters the data to show only where Status is 'Open' (or something other than 'Closed'), the chart still displays these Closed items.&amp;nbsp; Because the expression evaluates to a non-zero value, and the Set Modifier essentially replaces the selection for [Status], it makes it appear that the filter on Status is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I have the chart display the same data, but when filtering on Status = 'Open', only Open records should show, and of course the Count would be 0 (since it's counting only where Status is 'Closed').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See example attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 14:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297361#M584842</guid>
      <dc:creator />
      <dc:date>2011-08-24T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Straight Table with Expression using Set Analysis - Filtering problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297362#M584843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The quikest way is an intersection witht he current selection:&lt;/P&gt;&lt;P&gt;=count( { $*$ &amp;lt;[Status] = {'Closed'}&amp;gt; } [Date] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297362#M584843</guid>
      <dc:creator />
      <dc:date>2011-08-24T15:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table with Expression using Set Analysis - Filtering problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297363#M584844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Bert, but using an Intersect like that, even when I allow Zero-Values (via Presentation tab of Chart options) doesn't give me the results I want.&amp;nbsp; If I select a status such as 'Open', the Chart just shows now rows at all, whereas I want to see the 'Open' rows (and the count be displayed as 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When filtering on Status = 'Pending' ...&lt;/P&gt;&lt;P&gt;- An Intersect using &lt;STRONG&gt;=count( { $ * $&amp;lt;[Status] = {'Closed'}&amp;gt; } [Date] )&lt;/STRONG&gt; shows no rows&lt;/P&gt;&lt;P&gt;- A Union using &lt;STRONG&gt;=count( { $ + $&amp;lt;[Status] = {'Closed'}&amp;gt; } [Date] )&lt;/STRONG&gt; shows our filtered rows, but always shows the 'Closed' rows, which is not what we want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297363#M584844</guid>
      <dc:creator />
      <dc:date>2011-08-24T15:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table with Expression using Set Analysis - Filtering problem</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297364#M584845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case use the following:&lt;/P&gt;&lt;P&gt;=sum(if(Status='Closed'),1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-with-Expression-using-Set-Analysis-Filtering/m-p/297364#M584845</guid>
      <dc:creator />
      <dc:date>2011-08-26T07:06:13Z</dc:date>
    </item>
  </channel>
</rss>

