<?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 How to Count records which have same values grouping on a particular field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259393#M397502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuck with a logic&lt;/P&gt;&lt;P&gt;I have a sample data which has test data for several users.I need to identify how many users have passed and how many have failed .&lt;/P&gt;&lt;P&gt;A user is allowed to get multiple attempts , if in any of the attempt he has passed he is considered to be pass else if he fails in all the attempts only then is he considered to be failed .&lt;/P&gt;&lt;P&gt;Maybe previous or peek could help but i am not sure how ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 16:26:16 GMT</pubDate>
    <dc:creator>fashid</dc:creator>
    <dc:date>2017-01-30T16:26:16Z</dc:date>
    <item>
      <title>How to Count records which have same values grouping on a particular field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259393#M397502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuck with a logic&lt;/P&gt;&lt;P&gt;I have a sample data which has test data for several users.I need to identify how many users have passed and how many have failed .&lt;/P&gt;&lt;P&gt;A user is allowed to get multiple attempts , if in any of the attempt he has passed he is considered to be pass else if he fails in all the attempts only then is he considered to be failed .&lt;/P&gt;&lt;P&gt;Maybe previous or peek could help but i am not sure how ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259393#M397502</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2017-01-30T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records which have same values grouping on a particular field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259394#M397503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [ATTEMPT NO], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[..\..\Downloads\SAMPLE DATA.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD USER,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(MaxString(PASSED) = 'YES', 'Passed', 'Not Passed') as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By USER;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259394#M397503</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T16:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records which have same values grouping on a particular field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259395#M397504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option in script could be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [ATTEMPT NO], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASSED&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;[SAMPLE DATA.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(USER = Peek('USER'), Peek('Result'), PASSED) as Result&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by USER, PASSED desc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Table;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in chart I think&lt;/P&gt;&lt;P&gt;dimension&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;expression&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count({$ &amp;lt;PASSED={YES}&amp;gt;} DISTINCT USER)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 17:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259395#M397504</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-01-30T17:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records which have same values grouping on a particular field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259396#M397505</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;/P&gt;&lt;P&gt;one front end solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248031_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151321_QlikCommunity_Thread_248031_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248031_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/151322_QlikCommunity_Thread_248031_Pic2.JPG" style="height: 246px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PASSED&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='YES'),'passed',&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;PASSED&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='NO'),'failed','no attempts')),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;USER&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_248031_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/151323_QlikCommunity_Thread_248031_Pic3.JPG" style="height: 209px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 00:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259396#M397505</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-01-31T00:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records which have same values grouping on a particular field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259397#M397506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny , Marco and Massimo . Wished i could mark all the answers as correct . Appreciate all your efforts taken to help . &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 04:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259397#M397506</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2017-02-07T04:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count records which have same values grouping on a particular field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259398#M397507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;Glad it helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 06:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Count-records-which-have-same-values-grouping-on-a/m-p/1259398#M397507</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-02-07T06:51:28Z</dc:date>
    </item>
  </channel>
</rss>

