<?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 Re: Functional filtering in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789197#M1026703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fiona,&lt;/P&gt;&lt;P&gt;You can use an aggregation expression or any other valid QlikView expression for that matter in set analysis, for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14261493896589558" jivemacro_uid="_14261493896589558"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum({&amp;lt; CustomerID = {"=Sum({1&amp;lt; Month = {201503} &amp;gt;} Sales) &amp;gt; 10000"} &amp;gt;}) NetMargin)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will return the sum of NetMargin only for those customers who had have sales above 10000 in March, 2015.&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 08:36:47 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2015-03-12T08:36:47Z</dc:date>
    <item>
      <title>Functional filtering in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789196#M1026702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to filter on sum(dimension) or count(dimension) inside a set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789196#M1026702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-12T08:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Functional filtering in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789197#M1026703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fiona,&lt;/P&gt;&lt;P&gt;You can use an aggregation expression or any other valid QlikView expression for that matter in set analysis, for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14261493896589558" jivemacro_uid="_14261493896589558"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum({&amp;lt; CustomerID = {"=Sum({1&amp;lt; Month = {201503} &amp;gt;} Sales) &amp;gt; 10000"} &amp;gt;}) NetMargin)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will return the sum of NetMargin only for those customers who had have sales above 10000 in March, 2015.&lt;/P&gt;&lt;P&gt;Is that what you are looking for?&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789197#M1026703</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2015-03-12T08:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Functional filtering in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789198#M1026705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider that you want to count the customers whose sales exceed 1000.. You can use below in Text Box...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;COUNT(Distinct {&amp;lt;Customer = {"=SUM(Sales)&amp;gt;1000"}&amp;gt;}Customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;COUNT(Distinct {&amp;lt;Customer = {"=SUM({1}Sales)&amp;gt;1000"}&amp;gt;}Customer)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;COUNT(Distinct {1&amp;lt;Customer = {"=SUM(Sales)&amp;gt;1000"}&amp;gt;}Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789198#M1026705</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-12T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Functional filtering in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789199#M1026706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thanks. How about when I want to count the number of distinct IDs? e.g. they have at least 4 records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's within an aggregate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(only({&amp;lt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;={"=Count(Distinct(&lt;STRONG&gt;RecordID&lt;/STRONG&gt;))&amp;gt;4"}&amp;gt;}&lt;STRONG&gt;Customer&lt;/STRONG&gt;),&lt;STRONG&gt;Customer&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like this and it didn't work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 08:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789199#M1026706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-12T08:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Functional filtering in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789200#M1026708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=COUNT({&amp;lt;Customer = {"=COUNT(Distinct(RecordID))&amp;gt;=4"}&amp;gt;}DISTINCT Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Need of AGGR but you can try below also&lt;/P&gt;&lt;P&gt;=COUNT(Aggr(COUNT({&amp;lt;Customer = {"=COUNT(Distinct(RecordID))&amp;gt;=4"}&amp;gt;}DISTINCT Customer),Customer))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=SUM(Aggr(COUNT({&amp;lt;Customer = {"=COUNT(Distinct(RecordID))&amp;gt;=4"}&amp;gt;}DISTINCT Customer),Customer))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789200#M1026708</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-12T11:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Functional filtering in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789201#M1026709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression is in a chart which I believe is why the aggregate is there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it work without outputting a count? I'm trying to apply it to a rank function...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=rank( sum({&amp;lt;CustomerName-={NULL}, Store={'10'}&amp;gt;}),4)&amp;lt;2"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I only want to include the customers in this ranking where the number of Record IDs is greater than 4 (i.e.&lt;STRONG&gt; count(distinct(RecordID))&amp;gt;4&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 11:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789201#M1026709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-12T11:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Functional filtering in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789202#M1026710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me have the sample database and also your expected output.. I will try this for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 12:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Functional-filtering-in-Set-Analysis/m-p/789202#M1026710</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-12T12:11:08Z</dc:date>
    </item>
  </channel>
</rss>

