<?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 Count distinct by two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553141#M206669</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 have a particular case. I need to get the number of tickets from a db that contains the detail of these. So, the first solution could be "Select distinct (Nume_docum) from Detalles", the trouble is because we have many locals son in sql I could use "Select distinct Codi_local, Nume_docum from Detalles". &lt;/P&gt;&lt;P&gt;Into qlikview i use this expression: "=count(distinct Nume_docum)" and i get the first case, How i do to make qlikview get the total by this fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to add Codi_local into dimension at last resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Santiago.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 22:25:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-08T22:25:27Z</dc:date>
    <item>
      <title>Count distinct by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553141#M206669</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 have a particular case. I need to get the number of tickets from a db that contains the detail of these. So, the first solution could be "Select distinct (Nume_docum) from Detalles", the trouble is because we have many locals son in sql I could use "Select distinct Codi_local, Nume_docum from Detalles". &lt;/P&gt;&lt;P&gt;Into qlikview i use this expression: "=count(distinct Nume_docum)" and i get the first case, How i do to make qlikview get the total by this fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to add Codi_local into dimension at last resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Santiago.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 22:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553141#M206669</guid>
      <dc:creator />
      <dc:date>2013-07-08T22:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553142#M206670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count ( Distinct&amp;nbsp; Codi_local &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; Nume_docum)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 04:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553142#M206670</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-09T04:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553143#M206671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure I understand what you're asking. But if what you're asking is how to do a distinct count of "Nume_docum" for a specific Codi_local without displaying Codi_local as a dimension, you can probably use set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.count({&amp;lt;Code_local = {'&lt;EM&gt;some value&lt;/EM&gt;'}&amp;gt;} distinct Nume_docum)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 04:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553143#M206671</guid>
      <dc:creator />
      <dc:date>2013-07-09T04:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553144#M206672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santiago.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 14:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553144#M206672</guid>
      <dc:creator />
      <dc:date>2013-07-09T14:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553145#M206673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you response, but on your way i get the total for every codi_local, what i needed was a total by 'combination' &lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santiago.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 14:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-by-two-fields/m-p/553145#M206673</guid>
      <dc:creator />
      <dc:date>2013-07-09T14:58:42Z</dc:date>
    </item>
  </channel>
</rss>

