<?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 Distinct Count but Sum Total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319268#M711530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That expains it very nicely. Thank you Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 08:49:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-26T08:49:26Z</dc:date>
    <item>
      <title>Distinct Count but Sum Total</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319264#M711526</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 was busy creating a test QV document to load as I couldnt find a way to get to the answer I was looking for. When creating the document I managed to figure a way out but it looks messy and Im wondering if there is a better way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the QVD with an inline list of what my data looks like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Question:&lt;/P&gt;&lt;P&gt;----------------------------------&lt;/P&gt;&lt;P&gt;Agents are logged onto multiple skillsets simulataneously, the logged on time for each skill set would be the same because of this. I want to know what the accumulated logged on time is for an interval of time for all agents logged in. Taking into account that I need the (MAX) logged on time for each agent, not the combined for each agent for each interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 09:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319264#M711526</guid>
      <dc:creator />
      <dc:date>2011-05-23T09:42:42Z</dc:date>
    </item>
    <item>
      <title>Distinct Count but Sum Total</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319265#M711527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure, if I have understood you right but maybe the following formula is what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="s1.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4667_s1.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 10:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319265#M711527</guid>
      <dc:creator>yasus</dc:creator>
      <dc:date>2011-05-23T10:37:15Z</dc:date>
    </item>
    <item>
      <title>Distinct Count but Sum Total</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319266#M711528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, this did get me the same answer. Do you mind elaborating a bit on what the aggr function actually does. I tried to use this in my live report and it did not aggregate correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your assistance in this regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 08:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319266#M711528</guid>
      <dc:creator />
      <dc:date>2011-05-26T08:20:02Z</dc:date>
    </item>
    <item>
      <title>Distinct Count but Sum Total</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319267#M711529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggregation function helps to sum the data based on Dimensions.&lt;/P&gt;&lt;P&gt;In a setanalysis expression, two sums cannot be used&lt;/P&gt;&lt;P&gt;Ex: sum(sum(...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in your example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(max(LoggedOnTime),AgentName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives the &lt;STRONG&gt;sum of (&lt;/STRONG&gt; sum of maximum of LoggedOnTime based on dimension AgentName&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope that helps&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sravan&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 08:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319267#M711529</guid>
      <dc:creator />
      <dc:date>2011-05-26T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Distinct Count but Sum Total</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319268#M711530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That expains it very nicely. Thank you Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 08:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-but-Sum-Total/m-p/319268#M711530</guid>
      <dc:creator />
      <dc:date>2011-05-26T08:49:26Z</dc:date>
    </item>
  </channel>
</rss>

