<?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 Analysis for Filtering Column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Filtering-Column/m-p/187011#M50850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Question, I am using this expression:&lt;/P&gt;&lt;P&gt;Count(distinct {$&amp;lt;Year={$(==max( {1} Year ) -1 )},LineSaleAmount={"&amp;gt;0"}&amp;gt;} GroupName)&lt;/P&gt;&lt;P&gt;to filter negative, 0 and null columns from my count column on a table&lt;/P&gt;&lt;P&gt;It works fine except it only filters individual rows, i'd prefer to filter by the total, by GroupName&lt;/P&gt;&lt;P&gt;This does not work but it gives the general idea of what i'm trying to do.&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year={$(==max( {1} Year -1))}&amp;gt;},aggr(Sum(LineSaleAmount), GroupName)={"&amp;gt;0"} GroupName)&lt;/P&gt;&lt;P&gt;This sorta works but only when a specific dimension value is selected&lt;/P&gt;&lt;P&gt;sum(if(aggr(Sum({$&amp;lt;Year={$(==max( {1} Year -3 ))}&amp;gt;} LineSaleAmount), GroupName) &amp;gt; 0,1,0))&lt;/P&gt;&lt;P&gt;I'd appreciate any help, Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 22:33:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-26T22:33:29Z</dc:date>
    <item>
      <title>Set Analysis for Filtering Column</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Filtering-Column/m-p/187011#M50850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Question, I am using this expression:&lt;/P&gt;&lt;P&gt;Count(distinct {$&amp;lt;Year={$(==max( {1} Year ) -1 )},LineSaleAmount={"&amp;gt;0"}&amp;gt;} GroupName)&lt;/P&gt;&lt;P&gt;to filter negative, 0 and null columns from my count column on a table&lt;/P&gt;&lt;P&gt;It works fine except it only filters individual rows, i'd prefer to filter by the total, by GroupName&lt;/P&gt;&lt;P&gt;This does not work but it gives the general idea of what i'm trying to do.&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year={$(==max( {1} Year -1))}&amp;gt;},aggr(Sum(LineSaleAmount), GroupName)={"&amp;gt;0"} GroupName)&lt;/P&gt;&lt;P&gt;This sorta works but only when a specific dimension value is selected&lt;/P&gt;&lt;P&gt;sum(if(aggr(Sum({$&amp;lt;Year={$(==max( {1} Year -3 ))}&amp;gt;} LineSaleAmount), GroupName) &amp;gt; 0,1,0))&lt;/P&gt;&lt;P&gt;I'd appreciate any help, Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 22:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Filtering-Column/m-p/187011#M50850</guid>
      <dc:creator />
      <dc:date>2011-01-26T22:33:29Z</dc:date>
    </item>
    <item>
      <title>Set Analysis for Filtering Column</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Filtering-Column/m-p/187012#M50851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this, I think? Assuming I got all the syntax right, the idea is that we "select" only group names that had a positive total line sale amount in the most recent year. Then we count them. The "*=" says to not count a group name if you've excluded it with selections. Not sure if that's what you want, or if you'd want a straight "=".&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;count({&amp;lt;GroupName*={"=sum({&amp;lt;Year={$(=max({1}Year)-1)} LineSaleAmount)&amp;gt;0"}&amp;gt;} distinct GroupName)&lt;/P&gt;&lt;P&gt;Set analysis like that is probably fastest, but I'd expect something like the below to also work, which I think is the approach you were trying to take in the last expression you wrote. I think this will be equivalent to the "*=" approach.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(aggr(if(sum({&amp;lt;Year={$(=max({1}Year)-1)} LineSaleAmount)&amp;gt;0,1),GroupName))&lt;/P&gt;&lt;P&gt;Again, I might have syntax or other errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 00:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Filtering-Column/m-p/187012#M50851</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-27T00:58:13Z</dc:date>
    </item>
    <item>
      <title>Set Analysis for Filtering Column</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Filtering-Column/m-p/187013#M50852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John,&lt;/P&gt;&lt;P&gt;I'm still struggling with the syntax for the set analysis solution.&lt;/P&gt;&lt;P&gt;I wish there was a wizard available for building/validating set analysis expressions.&lt;/P&gt;&lt;P&gt;Creating the correct syntax is way harder than it needs to be.&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Filtering-Column/m-p/187013#M50852</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:21:19Z</dc:date>
    </item>
  </channel>
</rss>

