<?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 only once (without duplicates) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230679#M392182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If(Aggr(NODISTINCT count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Created&lt;/STRONG&gt;), &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Modified&lt;/STRONG&gt;) &amp;gt; 1, count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Number of Defects&lt;/STRONG&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2016 13:14:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-10T13:14:05Z</dc:date>
    <item>
      <title>Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230676#M392179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a set of qvds for various years like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="292" style="width: 422px; height: 283px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="64" width="198"&gt;&lt;STRONG&gt;Defect ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="85"&gt;&lt;STRONG&gt;Created&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;&lt;STRONG&gt;Modified&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="89"&gt;&lt;STRONG&gt;Number of Defects&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="22" style="border-top: none;" width="198"&gt;xxxxx1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="85"&gt;1.1.2015&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;1.2.2015&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="89"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="22" style="border-top: none;" width="198"&gt;xxxxx2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="85"&gt;10.1.2015&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;12.1.2015&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: none;" width="89"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="22" style="border-top: none;" width="198"&gt;xxxxx5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="85"&gt;29.1.2015&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;3.5.2015&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="89"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="22" style="border-top: none;" width="198"&gt;xxxx18&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="85"&gt;4.4.2015&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;4.4.2015&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="89"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="43" style="border-top: none;" width="198"&gt;xxx105&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;SPAN class="font6"&gt;count this&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="85"&gt;28.12.2015&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;8.1.2016&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;" width="89"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="43" style="border-top: none;" width="198"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;xxx105&amp;nbsp; don’t&lt;/SPAN&gt;&lt;SPAN class="font6"&gt; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Count this&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="85"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;28.12.2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="80"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;8.1.2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="89"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="22" style="border-top: none;" width="198"&gt;xxx203&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="85"&gt;13.1.2016&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="80"&gt;16.1.2016&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: none;" width="89"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Here, Some of the defects may be entered more than once in the table(See Defect ID) because they may be created in 2015 and still open or modified/closed in 2016. Number of defects have to be taken for counting according to the “Created” date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;For example&amp;nbsp; if issue was created in the earlier year(e,g.2015), then you can skip it in this year’s data(2016). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dashboard table looks like below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="noofdefects.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143525_noofdefects.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;How do i re-write the expression to show the count of defects in the above table for each Year month without counting the same defect code in more than once ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230676#M392179</guid>
      <dc:creator />
      <dc:date>2016-11-10T13:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230677#M392180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try count(DISTINCT &lt;STRONG&gt;Defect ID&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230677#M392180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T13:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230678#M392181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(distinct [Defect ID]) will count the number of unique Defect ID values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230678#M392181</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-10T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230679#M392182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=If(Aggr(NODISTINCT count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Created&lt;/STRONG&gt;), &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Modified&lt;/STRONG&gt;) &amp;gt; 1, count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Number of Defects&lt;/STRONG&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230679#M392182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T13:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230680#M392183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=If(Aggr(NODISTINCT count(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Created&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Modified&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) &amp;gt; 1, count(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Defect ID&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230680#M392183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T13:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230681#M392184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, This is my current expression. But it includes the count of same 'DefectID' that appears in more than one year.&lt;/P&gt;&lt;P&gt;So it should be modified to count DefectID's without repetitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230681#M392184</guid>
      <dc:creator />
      <dc:date>2016-11-10T13:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230682#M392185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then use year as dimension instead on month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230682#M392185</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-10T13:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230683#M392186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to count the first appearances of each defect ID, then you need a little more. Like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(Aggr(DISTINCT If(Created = Min(TOTAL &amp;lt;[Defect ID]&amp;gt; Created), [Defect ID]), [Defect ID], Month, Year)) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="143619" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143619_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;(based on your sample data above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Defect ID, Created, Modified, Number of Defects&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx1, 1.1.2015,&amp;nbsp; 1.2.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx2, 10.1.2015,&amp;nbsp; 12.1.2015, 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx5, 29.1.2015,&amp;nbsp; 3.5.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxx18, 4.4.2015,&amp;nbsp; 4.4.2015, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxx105, 28.12.2015, 8.1.2016, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxx105, 28.12.2016,&amp;nbsp; 8.1.2016,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxx203, 13.1.2016,&amp;nbsp; 16.1.201&lt;/EM&gt;6, 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a more complete set of test cases:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Defect ID, Created, Modified, Number of Defects&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx1, 1.1.2015,&amp;nbsp; 1.2.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx2, 10.1.2015,&amp;nbsp; 12.1.2015, 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx5, 29.1.2015,&amp;nbsp; 3.5.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxx18, 4.4.2015,&amp;nbsp; 4.4.2015, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxx105, 28.12.2015, 8.1.2016, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxx105, 28.12.2016,&amp;nbsp; 8.1.2016,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxx203, 13.1.2016,&amp;nbsp; 16.1.2016, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx6, 20.2.2015,&amp;nbsp; 3.5.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx6, 20.4.2016,&amp;nbsp; 3.5.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx7, 20.3.2015,&amp;nbsp; 3.5.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx7, 20.3.2015,&amp;nbsp; 3.8.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx8, 20.8.2015,&amp;nbsp; 3.5.2016,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xxxxx8, 20.10.2015,&amp;nbsp; 3.10.2015,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="143620" alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143620_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 06:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230683#M392186</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-11T06:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230684#M392187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could flag the first appearances in the load script - either do a sorted load with an Exists to detect the first instance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Defect ID],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Exists(&lt;EM style="font-size: 13.3333330154419px;"&gt;[Defect ID]), 0, 1) as FlagFirst,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Created, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order by [Defect ID], Created;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, or join with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join(Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Defect ID],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(Created) as Created, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as FlagFirst&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Resident Data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Group By [Defext ID];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;Then you can count the using :&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;=Count({&amp;lt;FlagFirst = {1}&amp;gt;} Distinct &lt;EM style="font-size: 13.3333330154419px;"&gt;[Defect ID]);&lt;/EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 06:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230684#M392187</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-11T06:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230685#M392188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If(Aggr(DISTINCT count(&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Created&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;), &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Modified&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) &amp;gt; 1, count(&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Defect ID&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 06:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230685#M392188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-11T06:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230686#M392189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was&amp;nbsp; not able to implement your previous idea, but with this I am getting NULL for count &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 10:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230686#M392189</guid>
      <dc:creator />
      <dc:date>2016-11-11T10:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230687#M392190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Min(TOTAL &amp;lt;[Defect ID]&amp;gt; Created) this does in your expression, can you please post the sample app you created.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;FYI : there is no Month , Year column in my table , so I&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; replaced it with Month(Created) , Year(Created) in your expression and I hope it does not make any difference.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 10:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230687#M392190</guid>
      <dc:creator />
      <dc:date>2016-11-11T10:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230688#M392191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you cannot use expressions for the dimensions in an Aggr(). Use the underlying field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(Aggr(DISTINCT If(Created = Min(TOTAL &amp;lt;[Defect ID]&amp;gt; Created), [Defect ID]), [Defect ID], &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Created&lt;/STRONG&gt;&lt;/EM&gt;))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 05:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230688#M392191</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-15T05:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230689#M392192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TOTAL &amp;lt;[Defect ID]&amp;gt; is a partial total by Defect ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 05:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230689#M392192</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-15T05:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230690#M392193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression counts the defects and shows them in the first month only. It does not show the month wise defect. I have attached the sample app. If I put general count (commented in the expression tab) it shows same count value for all the months, Please help in correcting the expression to show month wise defect count without counting the same defect number if it appears in the consecutive years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JB !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 05:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230690#M392193</guid>
      <dc:creator />
      <dc:date>2016-12-01T05:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230691#M392194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your calender table (Cal) has no association with your fact table, so you cannot use a field here as a dimension for an expression from the fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there are no duplicate NCF's in your sample data, so its not much good as a test set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 05:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230691#M392194</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-01T05:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230692#M392195</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;EM&gt;I want you to quickly refer this &lt;A _jive_internal="true" href="https://community.qlik.com/thread/239814" title="https://community.qlik.com/thread/239814"&gt;https://community.qlik.com/thread/239814&lt;/A&gt;&lt;/EM&gt; . There is no link in the table here too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 05:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230692#M392195</guid>
      <dc:creator />
      <dc:date>2016-12-01T05:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230693#M392196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached app and please let me know if it works or not. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 06:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230693#M392196</guid>
      <dc:creator>svinnakota</dc:creator>
      <dc:date>2016-12-01T06:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230694#M392197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your expression counts the defects by Distinct Created date. But the logic to be implemented is distinct defect codes... Ignore the first inline data... Please find the actual app attached in comments...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230694#M392197</guid>
      <dc:creator />
      <dc:date>2016-12-01T07:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count only once (without duplicates)</title>
      <link>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230695#M392198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please re-write the expression as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct{&amp;lt; Created&amp;gt;} [Defect ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives the cound of distinct id's based on the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not work please attach the app once again. I am not able to find the actual app which you are referring to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-only-once-without-duplicates/m-p/1230695#M392198</guid>
      <dc:creator>svinnakota</dc:creator>
      <dc:date>2016-12-01T07:45:56Z</dc:date>
    </item>
  </channel>
</rss>

