<?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 Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100955#M765408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hiya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I'm trying to count a total number of checks the number of checks within amount ranges 0 -2500 and 2501 - 5000, so on and so forth.&amp;nbsp; I have what i thought was correct but it seems to be counting individual amounts and not check numbers.&amp;nbsp; Any thoughts on where I am wrong in my set analysis. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=count(DISTINCT(If([CHK_NO] &amp;gt;= 0 and [PAID_AMT]&amp;lt;= 2500, [PAID_AMT])))&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=count(DISTINCT(If([CHK_NO] &amp;gt;= 2501 and [PAID_AMT]&amp;lt;= 10000, [PAID_AMT])))&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=count(DISTINCT(If([CHK_NO] &amp;gt;= 10001 and [PAID_AMT]&amp;lt;= 1000000, [PAID_AMT])))&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the data result i am getting i am using a test of one check and see how i am getting different counts per line and not rolled up to the check number.&amp;nbsp; I would expect to see o in the first column and 1 in the second&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206733_Capture1.PNG" style="height: 107px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100955#M765408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hiya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I'm trying to count a total number of checks the number of checks within amount ranges 0 -2500 and 2501 - 5000, so on and so forth.&amp;nbsp; I have what i thought was correct but it seems to be counting individual amounts and not check numbers.&amp;nbsp; Any thoughts on where I am wrong in my set analysis. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=count(DISTINCT(If([CHK_NO] &amp;gt;= 0 and [PAID_AMT]&amp;lt;= 2500, [PAID_AMT])))&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=count(DISTINCT(If([CHK_NO] &amp;gt;= 2501 and [PAID_AMT]&amp;lt;= 10000, [PAID_AMT])))&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=count(DISTINCT(If([CHK_NO] &amp;gt;= 10001 and [PAID_AMT]&amp;lt;= 1000000, [PAID_AMT])))&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the data result i am getting i am using a test of one check and see how i am getting different counts per line and not rolled up to the check number.&amp;nbsp; I would expect to see o in the first column and 1 in the second&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206733_Capture1.PNG" style="height: 107px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100955#M765408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100956#M765409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CHK_NO]={"&amp;gt;=0"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PAID_AMT]={"&amp;lt;=2500"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distinct([PAID_AMT])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100956#M765409</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-07-02T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100957#M765410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([CHK_NO] &amp;gt;= 0 and [PAID_AMT]&amp;lt;= 2500, If([CHK_NO] &amp;gt;= 2501 and [PAID_AMT]&amp;lt;= 10000, If([CHK_NO] &amp;gt;= 10001 and [PAID_AMT]&amp;lt;= 1000000, Count(DISTINCT PAID_AMT))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If([CHK_NO] &amp;gt;= 0 and [PAID_AMT]&amp;lt;= 2500, If([CHK_NO] &amp;gt;= 2501 and [PAID_AMT]&amp;lt;= 10000, If([CHK_NO] &amp;gt;= 10001 and [PAID_AMT]&amp;lt;= 1000000, Count(DISTINCT PAID_AMT)))),CHK_NO))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100957#M765410</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-07-02T15:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100958#M765411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, that seemed to remove all filters and do a sum of all checks, I am attempting to try a different version of your suggestion.&amp;nbsp; Thank you again for the reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100958#M765411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-02T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100959#M765412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you for the reply, I am slightly confused, if i may inquire some more, should all the calculations be the same and the check count will fall into place?&amp;nbsp; This is a little hard for me to understand, do i break up each segment into a different expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100959#M765412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-02T15:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100960#M765413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whatever, You have done that is exactly how Qlik returns. But, I don't know why not returning any values for you. For assumption, CHK_NO and PAID_AMT are associated each??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100960#M765413</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-07-02T16:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100961#M765414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Anil;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So thinking i did something wrong I attempted these steps.&lt;/P&gt;&lt;P&gt;Did a basic count statement: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;=count(DISTINCT([CHK_NO]))&lt;/STRONG&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;this was &lt;SPAN style="text-decoration: underline;"&gt;successful&lt;/SPAN&gt; as i got an accurate count of total checks and well as when I selected one.&lt;/P&gt;&lt;P&gt;It is now when i want to separate them by amount category, my thought was i need to sum the [PAID_AMT] and then put it in a range.&lt;/P&gt;&lt;P&gt;This is the portion I am not sure how to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100961#M765414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-02T16:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100962#M765415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case, if you see my reply there is second approach for objects. You can try that way as well..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 01:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-in-Set-Analysis/m-p/100962#M765415</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-07-03T01:29:21Z</dc:date>
    </item>
  </channel>
</rss>

