<?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: Issue with Counting Distinct in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186851#M22182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qvw or Excel data will work. If you are providing Excel, please let us know the dimensions you have used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 17:43:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-16T17:43:27Z</dc:date>
    <item>
      <title>Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186847#M22178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to count distinct 'Call: Call ID' using set analysis. I have include the script I am using below. However, when I use this method, I am missing about 30 records from the data set. I have confirmed that there should be 241 records returned but I am only getting 210. Is there something wrong with my script? Any other suggestions as I am stuck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(distinct{$&amp;lt;[Liason Type]-={'FME','AML'},[Product: Description]={'Apples'},Objective-={'Presentations'}&amp;gt;} [Call: Call ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186847#M22178</guid>
      <dc:creator />
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186848#M22179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to check this out? Expression in itself doesn't look wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 16:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186848#M22179</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-16T16:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186849#M22180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. Would you like a sample of the data set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 16:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186849#M22180</guid>
      <dc:creator />
      <dc:date>2016-09-16T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186850#M22181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. Would you like a sample of the data I am using or other?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 17:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186850#M22181</guid>
      <dc:creator />
      <dc:date>2016-09-16T17:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186851#M22182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qvw or Excel data will work. If you are providing Excel, please let us know the dimensions you have used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 17:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186851#M22182</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-16T17:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186852#M22183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have NULLs in your fields you are trying to filter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you don't have active selections in your model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4424"&gt;Excluding values in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 17:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186852#M22183</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T17:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186853#M22184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There may be a few NULLs in the dataset but I am not trying to filter these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a line graph that shows number of interactions per month over a period of time. I just want the graph and do not need/want selection filters on this particular sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check out the link provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186853#M22184</guid>
      <dc:creator />
      <dc:date>2016-09-16T18:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186854#M22185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The attached doesn't have a field called Liason Type, don't know if that is important or not but you have used that in your expression. Without using that, I am getting a distinct count of 503.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used this expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;[Product: Description]={'Apples'}, Objective-={'Presentations'}&amp;gt;} DISTINCT [Call: Call ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 19:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186854#M22185</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-16T19:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186855#M22186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Yes, I get this number when just counting in Excel and removing duplicates. This tells me the script is working in this case. However, then I apply the script to my other data set, I still only get 210 records and there should be 238 (I counted manually). This is very strange...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 19:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186855#M22186</guid>
      <dc:creator />
      <dc:date>2016-09-16T19:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186856#M22187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is that extra part? Can we have that too to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 19:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186856#M22187</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-16T19:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186857#M22188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I posted de-identified data set that will be similar to the data I am using. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186857#M22188</guid>
      <dc:creator />
      <dc:date>2016-09-16T21:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186858#M22189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the new sample, I am seeing a count of 3827. Is that right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186858#M22189</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-16T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186859#M22190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still assume there may be an issue with NULL in the fields you filter (as described in Henric's blog post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I interpret empty field values as NULL, your expression returns 3813, if I don't, 3827.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186859#M22190</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T21:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186860#M22191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was focusing on the Month of August to check numbers in order to get them more manageable. For August the total for interactions of 'Face to Face' and 'Phone' should be 238. I am getting 210.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186860#M22191</guid>
      <dc:creator />
      <dc:date>2016-09-16T21:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186861#M22192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the August data there are null values in the 'Parent Call' field so maybe this is the issue. How should I try this in my script to test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186861#M22192</guid>
      <dc:creator />
      <dc:date>2016-09-16T21:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186862#M22193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather look at the fields you modify in the set expression, i.e. Objective for example, which seems to show NULL for some records, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe something along&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(distinct{$&amp;lt;[Call: Call ID]=e({&amp;lt;Objective={'Presentations'}&amp;gt;}),[Liaison Type] -={'FME','AML'},[Product: Description]={'Apples'}&amp;gt;} [Call: Call ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though I can't reproduce your exact numbers, also using your original expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 21:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186862#M22193</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-16T21:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186863#M22194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the CSV you have shared and filtering to the selections you have mentioned about and the selections you have in your set analysis, I am only able to see 210 for July (not August). I am attaching the filtered csv file for you to guide us on what other rows did we miss to add up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filters&lt;/P&gt;&lt;P&gt;1) Datetime = July 2016&lt;/P&gt;&lt;P&gt;2) Interaction Type = Face to Face and Phone&lt;/P&gt;&lt;P&gt;3) Objective = Everything except presentation&lt;/P&gt;&lt;P&gt;4) Product: Decription = Apples&lt;/P&gt;&lt;P&gt;5) Liason Type = Everything except AML and FME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137824_Capture.PNG" style="height: 402px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;If you want to count August, then I am getting 259 which seems higher then both your numbers. Not sure if that is the right month to look at, but I am attaching a CSV file for that as well.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/137825_Capture.PNG" style="height: 412px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess if you can point us how you are counting the number of rows in the csv file we might be able to locate the issue. Because right now, it seems your expression is doing the calculation rather correctly as it suppose to do. But may be you are looking for something slightly different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 17:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186863#M22194</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-18T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186864#M22195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I can duplicate your numbers for July in both the deidentified data set and my original data set. However, for the August, I still only get 239 rows. I am using the same filter criteria as above but using August instead of July as the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 13:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186864#M22195</guid>
      <dc:creator />
      <dc:date>2016-09-19T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186865#M22196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Excel file or in the QlikView application? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 23:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186865#M22196</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-19T23:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Counting Distinct</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186866#M22197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 04:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-Counting-Distinct/m-p/1186866#M22197</guid>
      <dc:creator />
      <dc:date>2016-09-20T04:39:32Z</dc:date>
    </item>
  </channel>
</rss>

