<?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: Percentages exceeding 100% when dividing by Count Total Distinct in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387908#M31872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. Thanks for the reply. So I used this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(distinct(ID))/Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;aggr(Count(distinct total &amp;lt;[Month]&amp;gt; (ID)),Month)). But it's still not giving me the correct output. Infact I'm getting everything as zeroes now. Can you point out if I'm doing anything wrong?TIA!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2017 11:03:11 GMT</pubDate>
    <dc:creator>mrthomasshelby</dc:creator>
    <dc:date>2017-09-21T11:03:11Z</dc:date>
    <item>
      <title>Percentages exceeding 100% when dividing by Count Total Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387906#M31870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a data set as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Vendor&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Distinct ID Count&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7451&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;563&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Feb&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;560&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mar&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7128&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6266&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;540&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Apr&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7138&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6285&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;559&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to display the percentages of the distinct IDs per vendor for each month. For example: In January, Vendor A percentage is &lt;/P&gt;&lt;P&gt;7451/(7451+6260+563)*100=52.199%. I'm using the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(distinct(ID))/Count(distinct total &amp;lt;[Month]&amp;gt; (ID))*100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this expression is giving me the percentages as 62,52,5 sum of which is exceeding 100%. Can you please help me get my expression right? TIA!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387906#M31870</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages exceeding 100% when dividing by Count Total Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387907#M31871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Distinct ID Count is the count(ID) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use aggr function with sum to get the total of count &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something similar to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count(distinct(ID)) -&amp;gt; 7451&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(Count(distinct total &amp;lt;[Month]&amp;gt; (ID)),Month) to get the temp data then sum it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 10:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387907#M31871</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-09-21T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages exceeding 100% when dividing by Count Total Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387908#M31872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. Thanks for the reply. So I used this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(distinct(ID))/Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;aggr(Count(distinct total &amp;lt;[Month]&amp;gt; (ID)),Month)). But it's still not giving me the correct output. Infact I'm getting everything as zeroes now. Can you point out if I'm doing anything wrong?TIA!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 11:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387908#M31872</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2017-09-21T11:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages exceeding 100% when dividing by Count Total Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387909#M31873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count(DISTINCT ID)/Sum(TOTAL &amp;lt;Month&amp;gt; Aggr(Count(DISTINCT ID), Month, Vendor)) * 100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 11:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387909#M31873</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-21T11:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages exceeding 100% when dividing by Count Total Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387910#M31874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As always you are spot on! Can you give me a brief explanation of how the expression in the denominator works if you don't mind? Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 11:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387910#M31874</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2017-09-21T11:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages exceeding 100% when dividing by Count Total Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387911#M31875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without the Aggr function, the DISTINCT ID was giving you the total DISTINCT ID for the Month (in other words if an id repeated within a single month for multiple vendors, it was just used once for the denominator). When we introduced Aggr(), it found the distinct ID per Month per vendor and then summed it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 11:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387911#M31875</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-21T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages exceeding 100% when dividing by Count Total Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387912#M31876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes sense. Thanks a ton!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 11:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-exceeding-100-when-dividing-by-Count-Total-Distinct/m-p/1387912#M31876</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2017-09-21T11:24:16Z</dc:date>
    </item>
  </channel>
</rss>

