<?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: Re: Get total by 1st dim when using calc dim and rank in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670695#M243689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 12:46:40 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-06-27T12:46:40Z</dc:date>
    <item>
      <title>Get total by 1st dim when using calc dim and rank</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670692#M243686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached a sample qvw.&lt;/P&gt;&lt;P&gt;I'd like to get the total number of employees within country.&lt;/P&gt;&lt;P&gt;The usual count(distinct total &amp;lt;Country&amp;gt; Emp) gives same result as count(distinct Emp).&lt;/P&gt;&lt;P&gt;I tried using a sort of sum(aggr(count())) but it's giving correct result on one line, the 2nd is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get it correctly on all lines ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 11:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670692#M243686</guid>
      <dc:creator />
      <dc:date>2014-06-27T11:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get total by 1st dim when using calc dim and rank</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670693#M243687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe sum(aggr(count(DISTINCT Emp),Country,Reason))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 12:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670693#M243687</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-27T12:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get total by 1st dim when using calc dim and rank</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670694#M243688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's giving same value as the first expression, which is the total employees associated with the top 2 reasons displayed.&lt;/P&gt;&lt;P&gt;I want to get the total by country which is 4 for C1, 4 for C2, 6 for C2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx 4 your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 12:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670694#M243688</guid>
      <dc:creator />
      <dc:date>2014-06-27T12:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Get total by 1st dim when using calc dim and rank</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670695#M243689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 12:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670695#M243689</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-27T12:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get total by 1st dim when using calc dim and rank</title>
      <link>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670696#M243690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just added a case with dimensionality() to get the total employees if I check partial sum on country.&lt;/P&gt;&lt;P&gt;if(dimensionality() = 0, count(total distinct Emp), your expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thx for your help Gysbert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-total-by-1st-dim-when-using-calc-dim-and-rank/m-p/670696#M243690</guid>
      <dc:creator />
      <dc:date>2014-06-27T13:28:55Z</dc:date>
    </item>
  </channel>
</rss>

