<?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(Count(distinct)) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127168#M764676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2018 20:18:01 GMT</pubDate>
    <dc:creator>neelamsaroha157</dc:creator>
    <dc:date>2018-07-25T20:18:01Z</dc:date>
    <item>
      <title>Sum(Count(distinct))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127167#M764675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Everyone&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am quite new to Qlik and struggling with fitting Sum(Count(distinct)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In my dashboard I have a requirement to show count of Incidents we have received based on their Priority. Along with this we also want to show what is the percentage of that count of the total number of incident. Following is the expected output..&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am trying to achieve this in a straight table. My challenge is Percentage calculation. The logic should be: Percentage of Distinct Incident to the total number of Incidents.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;As show below for example: I have 145 Critical incident and Total incidents are 968. The percentage would be 15.0 (rounded off)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 403px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Priority&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="222"&gt;Count(DISTINCT([Incident Number]))&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="83"&gt;&lt;STRONG&gt;Percentage&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Critical&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;145&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;15.0&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;High&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;297&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;30.7&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Low&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;73&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;7.5&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Medium&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;453&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;46.8&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;968&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please help me get desired output. Sample data file is attached.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Note: Please note that there must be DISTINCT as same incident can be repeated multiple times.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Vipin Vij&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127167#M764675</guid>
      <dc:creator>vijvipin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Count(distinct))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127168#M764676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127168#M764676</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-07-25T20:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Count(distinct))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127169#M764677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the Total you can also use the below expression if you want to override the selection in 'Priority' field - &lt;/P&gt;&lt;P&gt;count(TOTAL&amp;nbsp; {&amp;lt;Priority = &amp;gt;} DISTINCT [Incident Number])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127169#M764677</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-07-25T20:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Count(distinct))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127170#M764678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Neelam&lt;/P&gt;&lt;P&gt;It worked like a charm! Bingo&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/127170#M764678</guid>
      <dc:creator>vijvipin</dc:creator>
      <dc:date>2018-07-26T07:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(Count(distinct))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/1961620#M1220147</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if we have hier one dimention more, for example date, how can the percentage per day be caculated.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;-Amber&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 09:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Count-distinct/m-p/1961620#M1220147</guid>
      <dc:creator>Amber</dc:creator>
      <dc:date>2022-07-28T09:14:23Z</dc:date>
    </item>
  </channel>
</rss>

