<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262977#M398162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need some help to resolve this issue (i think is an issue):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this query: "&lt;STRONG&gt;Count( {&amp;lt;IdRequa={'0'}, IdRes={'Qual'}&amp;gt;} Distinct IdSub)&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Qlikview solve was &lt;STRONG&gt;1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question or issue is I need result "&lt;STRONG&gt;count=0&lt;/STRONG&gt;". When i'm using the expr &lt;STRONG&gt;{&amp;lt;[IdRequa]={'0'}, [IdRes]={'Qual'}&amp;gt;}&lt;/STRONG&gt; i'm using this like a "filter" and Qlik are making this like a Distinct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table source is below (in this exemple the column IdRes is always equal not always is, this is just a sort of total table):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 314px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" style="text-align: center;" width="44"&gt;&lt;STRONG&gt;IdMap&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="96"&gt;&lt;STRONG&gt;IdCandidatura&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="43"&gt;&lt;STRONG&gt;IdSub&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="58"&gt;&lt;STRONG&gt;IdRequa&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="73"&gt;&lt;STRONG&gt;IdRes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2992&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2283&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;11&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;-1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2988&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2282&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;11&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2990&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2283&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;22&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;-1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2989&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2282&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;22&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2986&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2282&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;125&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 15:09:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-24T15:09:07Z</dc:date>
    <item>
      <title>Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262977#M398162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need some help to resolve this issue (i think is an issue):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this query: "&lt;STRONG&gt;Count( {&amp;lt;IdRequa={'0'}, IdRes={'Qual'}&amp;gt;} Distinct IdSub)&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Qlikview solve was &lt;STRONG&gt;1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question or issue is I need result "&lt;STRONG&gt;count=0&lt;/STRONG&gt;". When i'm using the expr &lt;STRONG&gt;{&amp;lt;[IdRequa]={'0'}, [IdRes]={'Qual'}&amp;gt;}&lt;/STRONG&gt; i'm using this like a "filter" and Qlik are making this like a Distinct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table source is below (in this exemple the column IdRes is always equal not always is, this is just a sort of total table):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 314px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" style="text-align: center;" width="44"&gt;&lt;STRONG&gt;IdMap&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="96"&gt;&lt;STRONG&gt;IdCandidatura&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="43"&gt;&lt;STRONG&gt;IdSub&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="58"&gt;&lt;STRONG&gt;IdRequa&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; text-align: center;" width="73"&gt;&lt;STRONG&gt;IdRes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2992&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2283&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;11&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;-1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2988&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2282&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;11&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2990&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2283&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;22&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;-1&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2989&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2282&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;22&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none; text-align: center;"&gt;2986&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;2282&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;125&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; text-align: center;"&gt;0&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Qual&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 15:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262977#M398162</guid>
      <dc:creator />
      <dc:date>2017-02-24T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262978#M398163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView is giving you 1? I would think it would give you 3... and why do you want 0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 17:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262978#M398163</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-24T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262979#M398164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview is giving me 1 and the line is IdMap "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: center;"&gt;2988".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do this with the result 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 17:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262979#M398164</guid>
      <dc:creator />
      <dc:date>2017-02-24T17:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262980#M398165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your logic for seeing 0? Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 18:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262980#M398165</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-24T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262981#M398166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your requirement I have used below exp and result showing here is 0 &amp;amp; 1 according to the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(IdRequa='0'and IdRes='Qual',0,Count( Distinct IdSub))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154443_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 10:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct/m-p/1262981#M398166</guid>
      <dc:creator>shivkumar300</dc:creator>
      <dc:date>2017-02-25T10:58:19Z</dc:date>
    </item>
  </channel>
</rss>

