<?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 distinct with set analysis or aggr function in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Count-distinct-with-set-analysis-or-aggr-function/m-p/1506674#M5095</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a data table that has by workstream people and their associated travel expenses. I am trying to create a chart that shows the distinct count of these people (by name) by workstream for those that have more than 0 travel expenses. I tried this with an aggr function and set analysis but none of them are working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody help? The picture below shows what I am&amp;nbsp;trying to do&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-14_15-30-51.png" style="width: 850px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/251i707E835D8F38D352/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-14_15-30-51.png" alt="2018-11-14_15-30-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 21:34:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-14T21:34:26Z</dc:date>
    <item>
      <title>Count distinct with set analysis or aggr function</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Count-distinct-with-set-analysis-or-aggr-function/m-p/1506674#M5095</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a data table that has by workstream people and their associated travel expenses. I am trying to create a chart that shows the distinct count of these people (by name) by workstream for those that have more than 0 travel expenses. I tried this with an aggr function and set analysis but none of them are working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody help? The picture below shows what I am&amp;nbsp;trying to do&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-14_15-30-51.png" style="width: 850px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/251i707E835D8F38D352/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-14_15-30-51.png" alt="2018-11-14_15-30-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 21:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Count-distinct-with-set-analysis-or-aggr-function/m-p/1506674#M5095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T21:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set analysis or aggr function</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Count-distinct-with-set-analysis-or-aggr-function/m-p/1506680#M5097</link>
      <description>&lt;P&gt;In short, you need to apply Advanced Search in your Set Analysis. Something like this:&lt;/P&gt;&lt;P&gt;count( {&amp;lt;Name = {"=sum({&amp;lt;[Expense Category] = {'Travel &amp;amp; Expenses'} &amp;gt;} Amount)&amp;gt;0"}&amp;gt;}&amp;nbsp; &amp;nbsp;distinct Name)&lt;/P&gt;&lt;P&gt;Advanced Search condition (look it up) is enclosed in double quotes and begins with the equal sign. After the equal sign, you can list any condition to be validated.&lt;/P&gt;&lt;P&gt;If you are interested, I'm teaching that and a lot more of Set Analysis and AGGR at the &lt;A title="Masters Summit for Qlik" href="https://masterssummit.com" target="_blank"&gt;Masters Summit for Qlik&lt;/A&gt; - coming to Stockholm this April! Check it out!&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 21:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Count-distinct-with-set-analysis-or-aggr-function/m-p/1506680#M5097</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2018-11-14T21:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set analysis or aggr function</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Count-distinct-with-set-analysis-or-aggr-function/m-p/1506682#M5098</link>
      <description>&lt;P&gt;Thanks Oleg, worked like a charm!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 21:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Count-distinct-with-set-analysis-or-aggr-function/m-p/1506682#M5098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T21:56:14Z</dc:date>
    </item>
  </channel>
</rss>

