<?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: Sum with aggr and count in expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-with-aggr-and-count-in-expression/m-p/1565160#M41229</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;provider_id&amp;gt;} Aggr(&lt;BR /&gt;  Count(DISTINCT {&amp;lt;&lt;FONT color="#FF0000"&gt;provider_id&lt;/FONT&gt;, service_status = {'closed'}, service_type = {'regular'}&amp;gt;} key)&lt;BR /&gt;, customer_id, provider_id))&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Apr 2019 12:40:17 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-04-04T12:40:17Z</dc:date>
    <item>
      <title>Sum with aggr and count in expression</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-aggr-and-count-in-expression/m-p/1565070#M41228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to calculate distinct count of key at customer_id and provider_id level then want a sum of these for all the providers and not just the selected provider.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using the following expression here.But apparently&amp;nbsp;{&amp;lt;provider_id=&amp;gt;} before the aggr is not affecting the calculation.It is giving values for the selected provider.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;provider_id=&amp;gt;}aggr(count (distinct(&amp;lt;service_status={'closed'},service_type={'regular'}&amp;gt; )key),customer_id,provider_id))&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 11:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-aggr-and-count-in-expression/m-p/1565070#M41228</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-04T11:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with aggr and count in expression</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-aggr-and-count-in-expression/m-p/1565160#M41229</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;provider_id&amp;gt;} Aggr(&lt;BR /&gt;  Count(DISTINCT {&amp;lt;&lt;FONT color="#FF0000"&gt;provider_id&lt;/FONT&gt;, service_status = {'closed'}, service_type = {'regular'}&amp;gt;} key)&lt;BR /&gt;, customer_id, provider_id))&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Apr 2019 12:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-aggr-and-count-in-expression/m-p/1565160#M41229</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-04T12:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with aggr and count in expression</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-with-aggr-and-count-in-expression/m-p/1565193#M41230</link>
      <description>&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 13:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-with-aggr-and-count-in-expression/m-p/1565193#M41230</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-04T13:13:16Z</dc:date>
    </item>
  </channel>
</rss>

