<?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: Dual + Count &amp;lt;&amp;gt; Count ?! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395684#M423718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while I created this example I figure it out. I get different results because I'm counting distinct values for dimension and I tried to compare it with distinct values "for all".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe with Aggr I can create a count for dimension. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 08:30:55 GMT</pubDate>
    <dc:creator>pedromsouza</dc:creator>
    <dc:date>2017-11-02T08:30:55Z</dc:date>
    <item>
      <title>Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395680#M423714</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;I was looking for an expression that would give me number and percentage in a pie chart and found this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=dual( Num(Count(Distinct key),'#.##0') &amp;amp; '&amp;nbsp;&amp;nbsp; (' &amp;amp; num((Count(Distinct key))/(Count(Total Distinct key)),'#.##0%') &amp;amp; ')',&lt;/P&gt;&lt;P&gt;Count(Distinct key) +(Count(Distinct key))/(Count(Total Distinct key))*100 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows number and % correctly, but the count is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the previous expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Distinct key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a smaller value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what's I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pedro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: the smaller value is the correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mensagem editada por: Pedro Souza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 22:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395680#M423714</guid>
      <dc:creator>pedromsouza</dc:creator>
      <dc:date>2017-11-01T22:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395681#M423715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using&lt;/P&gt;&lt;P&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;EM&gt;Count(Distinct key) +(Count(Distinct key))/(Count(Total Distinct key))*100&lt;/EM&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;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as the numeric part of your dual value (i.e. the second argument to the function) and not&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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Count(DISTINCT key)&lt;/EM&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;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>Wed, 01 Nov 2017 22:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395681#M423715</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-01T22:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395682#M423716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't why. I think I didn't understand the dual function and tried to copy exactly the example I had.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed it to:&lt;/P&gt;&lt;P&gt;=dual( Num(Count(Distinct key),'#.##0') &amp;amp; '&amp;nbsp; (' &amp;amp; num((Count(Distinct key))/(Count(Total Distinct key)),'#.##0%') &amp;amp; ')',&lt;/P&gt;&lt;P&gt;Count(Distinct key) /(Count(Total Distinct key))*100 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But the result is the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 23:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395682#M423716</guid>
      <dc:creator>pedromsouza</dc:creator>
      <dc:date>2017-11-01T23:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395683#M423717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The result shouldn't be the same as compared to your first expression.&lt;/P&gt;&lt;P&gt;The second expression should hold the percentage value in the numeric representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a small sample QVW or some screenshots and your expected result to show the exact issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 08:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395683#M423717</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-02T08:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395684#M423718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while I created this example I figure it out. I get different results because I'm counting distinct values for dimension and I tried to compare it with distinct values "for all".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe with Aggr I can create a count for dimension. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 08:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395684#M423718</guid>
      <dc:creator>pedromsouza</dc:creator>
      <dc:date>2017-11-02T08:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395685#M423719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your osm_pac - Grupo relation is a n:m relation, i.e. an osm_pac can show multiple Grupo values.&lt;/P&gt;&lt;P&gt;That's why your total distinct count of osm_pac does not match the sum of the distinct count per Grupo dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how the Aggr() function should help you here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate how you want to match the pie chart values with your total distinct count?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 08:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395685#M423719</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-02T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395686#M423720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count( Aggr( osm_pac, osm_pac))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will assign the osm_pac to the Grupo where it first appears in LOAD order, so an osm_pac is only counted once in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this makes sense in terms of your requirements, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 08:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395686#M423720</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-02T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395687#M423721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Aggr() didn't work, but at least now I can explain what's happening. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tryied Count(Aggr(Distinct osm_pac,osm_pac)) and Count(Aggr(Distinct osm_pac,Grupo))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395687#M423721</guid>
      <dc:creator>pedromsouza</dc:creator>
      <dc:date>2017-11-02T14:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395688#M423722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro,&lt;/P&gt;&lt;P&gt;Just a small info. Aggr() implicitly uses DISTINCT so even if you don't mention distinct in your Aggr() it should work fine. If you do not want DISTINCT you have to Explicitly use NODISTINCT keyword. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395688#M423722</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-02T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395689#M423723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I see in your sample QVW if I use as expression&lt;/P&gt;&lt;P&gt;=Count( Aggr( osm_pac, osm_pac))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-11-02 19_35_04-QlikView x64 - [Radar ].png" class="jive-image image-1" src="/legacyfs/online/181888_2017-11-02 19_35_04-QlikView x64 - [Radar ].png" style="height: 358px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum of the rows / slices adds up to 4158 which seems to be the value you are after, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395689#M423723</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-02T18:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395690#M423724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395690#M423724</guid>
      <dc:creator>pedromsouza</dc:creator>
      <dc:date>2017-11-02T21:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dual + Count &lt;&gt; Count ?!</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395691#M423725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct! That's exactly what I wanted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Count-lt-gt-Count/m-p/1395691#M423725</guid>
      <dc:creator>pedromsouza</dc:creator>
      <dc:date>2017-11-02T21:41:03Z</dc:date>
    </item>
  </channel>
</rss>

