<?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 ID based on field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815284#M1212962</link>
    <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running'}&amp;gt;} Status) &amp;gt; 1 or Count({&amp;lt;Status = {'Complete'}&amp;gt;} Status) &amp;gt; 1 or Count({&amp;lt;Status = {'Pending'}&amp;gt;} Status) &amp;gt; 1"}, Status = {'Running', 'Complete', 'Pending'}&amp;gt;} ID)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 15 Jun 2021 15:20:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2021-06-15T15:20:29Z</dc:date>
    <item>
      <title>Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814225#M1212843</link>
      <description>&lt;P&gt;I have two Columns - ID and Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Running&lt;/P&gt;&lt;P&gt;Pending&lt;/P&gt;&lt;P&gt;Complete&lt;/P&gt;&lt;P&gt;I have to count all the IDs that have more than one Running or Pending or Complete Status&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814225#M1212843</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-10T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814258#M1212847</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running', 'Complete', 'Pending'}&amp;gt;} Status) &amp;gt; 1"}&amp;gt;} ID)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Jun 2021 15:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814258#M1212847</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-10T15:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814269#M1212851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; Thank you. This works. And how do I show IDs that only have value &amp;gt;=1 in a chart?&lt;/P&gt;&lt;P&gt;When I add ID as dimension and this expression, it shows IDs even with Expression values with 0 in it. I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running', 'Complete', 'Pending'}&amp;gt;} Status) &amp;gt; 1"}&amp;gt;} ID)&amp;gt;=1, ID, Null())&lt;/P&gt;&lt;P&gt;This gives me error in Dimension&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 16:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814269#M1212851</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-10T16:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814284#M1212854</link>
      <description>&lt;P&gt;Try this with Aggr()&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(If(Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running', 'Complete', 'Pending'}&amp;gt;} Status) &amp;gt; 1"}&amp;gt;} ID)&amp;gt;=1, ID, Null()), ID)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Jun 2021 17:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814284#M1212854</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-10T17:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814600#M1212887</link>
      <description>&lt;P&gt;How do I add&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MonthYear={"&amp;gt;=$(=MonthName(addmonths(today(),-12)))"} in the above Set Analysis? It is giving me errors when I do&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running', 'Complete', 'Pending'},MonthYear ={"&amp;gt;=$(=MonthName(addmonths(today(),-12)))"}&amp;gt;} Status) &amp;gt; 1"}&amp;gt;} ID)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Jun 2021 19:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814600#M1212887</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-11T19:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814601#M1212888</link>
      <description>&lt;P&gt;How is MonthYear field created in the script? Do you use MonthName function to create it? or do you use Date() function with some formatting?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 19:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814601#M1212888</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-11T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814611#M1212890</link>
      <description>&lt;P&gt;I am doing this in the script using Date() and MonthName, to see if at least one works.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date(MonthStart(date#(Date(Date#([DateField],'YYYYMMDD'),'MM/DD/YYYY'),'MM/DD/YYYY')),'MMM YYYY') as MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MonthName(date(MonthStart(date#(Date(Date#([DateField],'YYYYMMDD'),'MM/DD/YYYY'),'MM/DD/YYYY')),'MM/DD/YYYY')) as MonthYear1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Completed'}, Type={'Primary'},MonthYear ={"&amp;gt;=$(=MonthName(addmonths(today(),-12)))"}&amp;gt;} Status) &amp;gt; 1"}&amp;gt;} ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikwiz123_0-1623444064050.png" style="width: 760px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56704i19966A468AD9F82E/image-dimensions/760x19?v=v2" width="760" height="19" role="button" title="qlikwiz123_0-1623444064050.png" alt="qlikwiz123_0-1623444064050.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It just converts everything after '$' into some variable thing and gives error.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 20:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814611#M1212890</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-11T20:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814646#M1212891</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached my sample data QVW for easy understanding.&lt;/P&gt;&lt;P&gt;Looks like the original expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running', 'Complete', 'Pending'}&amp;gt;} Status) &amp;gt; 1"}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is also failing. It is also counting other values in 'Status' and adding them. My requirement is to count ID if there is more than one 'Running' or 'Complete' or 'Pending' status value for that ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also included the MonthYear issue in my set analysis. Highly appreciate it if you could help me with this like always&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 23:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814646#M1212891</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-14T23:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814929#M1212913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; Any help with finding out why the original set expression is failing and counting non&amp;nbsp;&lt;STRONG&gt;'Running', 'Complete', 'Pending'&amp;nbsp;&lt;/STRONG&gt;status value rows?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 14:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1814929#M1212913</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-14T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815230#M1212944</link>
      <description>&lt;P&gt;You can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running', 'Complete', 'Pending'}&amp;gt;} Status) &amp;gt; 1"}, Status = {'Running', 'Complete', 'Pending'}&amp;gt;} ID)&lt;/LI-CODE&gt;&lt;P&gt;Not sure, but you have no values for MonthYear in your attached app&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sunny_talwar_0-1623765485193.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56841i1142431063729D6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sunny_talwar_0-1623765485193.png" alt="sunny_talwar_0-1623765485193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 13:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815230#M1212944</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-15T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815240#M1212947</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry. I corrected the file now.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815240#M1212947</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-15T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815248#M1212950</link>
      <description>&lt;P&gt;This worked for me&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Complete'},MonthYear ={[&amp;gt;=$(=MonthName(addmonths(today(),-12)))]}&amp;gt;} Status) &amp;gt; 1"}&amp;gt;} ID)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815248#M1212950</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-15T14:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815255#M1212951</link>
      <description>&lt;P&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running', 'Complete', 'Pending'}&amp;gt;} Status) &amp;gt; 1"}, Status = {'Running', 'Complete', 'Pending'}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is still acting up.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikwiz123_0-1623767371108.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56844i36ACCE2321000166/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qlikwiz123_0-1623767371108.png" alt="qlikwiz123_0-1623767371108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For ID&amp;nbsp;A560591, it is counting even though it only has 1 complete and 1 Running. My condition is to count when Count of Running or Complete or Pending is greater than one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815255#M1212951</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2021-06-15T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID based on field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815284#M1212962</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;ID = {"=Count({&amp;lt;Status = {'Running'}&amp;gt;} Status) &amp;gt; 1 or Count({&amp;lt;Status = {'Complete'}&amp;gt;} Status) &amp;gt; 1 or Count({&amp;lt;Status = {'Pending'}&amp;gt;} Status) &amp;gt; 1"}, Status = {'Running', 'Complete', 'Pending'}&amp;gt;} ID)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Jun 2021 15:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-based-on-field/m-p/1815284#M1212962</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-15T15:20:29Z</dc:date>
    </item>
  </channel>
</rss>

