<?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 distinct CustomerID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944073#M325305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;Sum({&amp;lt;[Customer ID={"=Count([Customer ID])=1"}]&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 09:36:07 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2015-09-14T09:36:07Z</dc:date>
    <item>
      <title>Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944069#M325301</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;&lt;/P&gt;&lt;P&gt;i am sitting with a requirement to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sum of &lt;STRONG&gt;Revenue&lt;/STRONG&gt; where &lt;STRONG&gt;Customer ID&lt;/STRONG&gt; is equal to Distinct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but have no idea how to tackle this one, any help would be accepted.&lt;/P&gt;&lt;P&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>Mon, 14 Sep 2015 09:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944069#M325301</guid>
      <dc:creator />
      <dc:date>2015-09-14T09:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944070#M325302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share some data to see what you are trying to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944070#M325302</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-14T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944071#M325303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you actually want. Can you elaborate more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944071#M325303</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2015-09-14T09:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944072#M325304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this:&lt;/P&gt;&lt;P&gt;if (count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Customer ID&lt;/STRONG&gt;)=1,sum(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Revenue&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this doesn't give the desired result , then you&amp;nbsp; need check the count in the SQL i.e in the script level and set a flag for the same. Finally based on the flag value you can calculate the sum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944072#M325304</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-09-14T09:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944073#M325305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;Sum({&amp;lt;[Customer ID={"=Count([Customer ID])=1"}]&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944073#M325305</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-14T09:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944074#M325306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;sum(aggr(sum(DISTINCT Revenue), Customer ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944074#M325306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T09:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944075#M325307</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;&lt;/P&gt;&lt;P&gt;im trying to implement most Solutions you guys are giving me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more thing that i want is: &lt;STRONG&gt;Distinct CustID&lt;/STRONG&gt; and &lt;STRONG&gt;Number of Revenues&lt;/STRONG&gt; made each &lt;STRONG&gt;distinct CustID&lt;/STRONG&gt; Made.&lt;/P&gt;&lt;P&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>Mon, 14 Sep 2015 09:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944075#M325307</guid>
      <dc:creator />
      <dc:date>2015-09-14T09:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944076#M325308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternative to this could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(Only(Revenue), CustID))&lt;/STRONG&gt; or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Sum(Aggr(Avg(Revenue), CustID))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944076#M325308</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-14T09:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944077#M325309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Customer ID&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)=1 will give you you the Distinct custID....once this condition is satisfied..for the distinct Custid you will get the sum&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944077#M325309</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-09-14T09:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944078#M325310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim: [Customer ID]&lt;/P&gt;&lt;P&gt;Exp: &lt;SPAN style="font-family: terminal,monaco;"&gt;Sum({&amp;lt;[Customer ID={"=Count([Customer ID])=1"}]&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 09:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944078#M325310</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-14T09:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944079#M325311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944079#M325311</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2015-09-14T10:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct CustomerID</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944080#M325312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check Script first and apply same in your script if it is possible .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-distinct-CustomerID/m-p/944080#M325312</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2015-09-14T10:04:28Z</dc:date>
    </item>
  </channel>
</rss>

