<?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: Count if and distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-if-and-distinct/m-p/1354485#M460346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=count({&amp;lt;[Raw Material] = {1}&amp;gt;} DISTINCT ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 May 2017 16:05:21 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-05-29T16:05:21Z</dc:date>
    <item>
      <title>Count if and distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-and-distinct/m-p/1354484#M460345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty new using set analysis and I am having some trouble while calculating an Indicator through a database on qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The base has the structure below. What I want to do is to count the number of distinct IDs which has number 1 in the column on the right ("Raw Material"). This column may be 1 or 0 in one same ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, the calculation using the base below has to be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="184"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="92"&gt; ID &lt;/TD&gt;&lt;TD class="xl67" width="92"&gt; Raw Material &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl68"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl68"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl68"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 15:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-and-distinct/m-p/1354484#M460345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count if and distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-and-distinct/m-p/1354485#M460346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=count({&amp;lt;[Raw Material] = {1}&amp;gt;} DISTINCT ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 16:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-and-distinct/m-p/1354485#M460346</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-29T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count if and distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-and-distinct/m-p/1354486#M460347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following steps may help;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1: Create listbox with field Raw material&lt;/P&gt;&lt;P&gt;Step2: Create listbox with field ID(in properties general tick show frequency)&lt;/P&gt;&lt;P&gt;Step3: Create straight table with dimension ID and expression as sum(Raw material)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can select 0 or 1 in Raw material to show distinct ID values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Taj Mohamed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 17:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-and-distinct/m-p/1354486#M460347</guid>
      <dc:creator>tajmohamed30</dc:creator>
      <dc:date>2017-05-29T17:33:00Z</dc:date>
    </item>
  </channel>
</rss>

