<?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: Counting Entries spread on multiple rows with multiple criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415673#M819709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, I had some typos, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;GroupId = {"=Only({&amp;lt;Question = {Q1}&amp;gt;} Answer) &amp;lt;= 4 and Only({&amp;lt;Question = {Q2}&amp;gt;} Answer) = 'B'"}&amp;gt;} GroupId)&lt;/STRONG&gt;&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/173743_Capture.PNG" style="height: 164px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2017 16:43:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-17T16:43:25Z</dc:date>
    <item>
      <title>Counting Entries spread on multiple rows with multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415671#M819707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My data consists of something similar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mytable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [GroupId, Question, Answer&lt;/P&gt;&lt;P&gt;G1, Q1, 3&lt;/P&gt;&lt;P&gt;G1, Q2, B&lt;/P&gt;&lt;P&gt;G2, Q1, 5&lt;/P&gt;&lt;P&gt;G2, Q2, B&lt;/P&gt;&lt;P&gt;G3, Q1, 1&lt;/P&gt;&lt;P&gt;G3, Q2, C&lt;/P&gt;&lt;P&gt;G4, Q1, 1&lt;/P&gt;&lt;P&gt;G4, Q2, B&lt;/P&gt;&lt;P&gt;G5, Q1, 3&lt;/P&gt;&lt;P&gt;G5, Q2, D&lt;/P&gt;&lt;P&gt;G6, Q1, 2&lt;/P&gt;&lt;P&gt;G6, Q2, B&lt;/P&gt;&lt;P&gt; ];&lt;/P&gt;&lt;P&gt;Each GroupID(G1..G6) has 2 questions in it (Q1 and Q2)&lt;/P&gt;&lt;P&gt;Q1: Possible Answers: 1,2,3,4,5&lt;/P&gt;&lt;P&gt;Q2: Possible Answers: A,B,C,D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is count Unique GroupIDs where Q1 was answered less than or equal to 4 &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/SPAN&gt; Q2 was answered B&lt;/P&gt;&lt;P&gt;In the Above data the count should be 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you all&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/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415671#M819707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Entries spread on multiple rows with multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415672#M819708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;May be this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;Count(DISTINCT {&amp;lt;GroupId = {"=Only({&amp;lt;Question = {Q1} Answer) &amp;lt;= 4 and &lt;SPAN style="font-size: 13.3333px;"&gt;Only({&amp;lt;Question = {Q2} Answer) = B&lt;/SPAN&gt;"}&amp;gt;} GroupId)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 16:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415672#M819708</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-17T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Entries spread on multiple rows with multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415673#M819709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, I had some typos, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;GroupId = {"=Only({&amp;lt;Question = {Q1}&amp;gt;} Answer) &amp;lt;= 4 and Only({&amp;lt;Question = {Q2}&amp;gt;} Answer) = 'B'"}&amp;gt;} GroupId)&lt;/STRONG&gt;&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/173743_Capture.PNG" style="height: 164px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 16:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415673#M819709</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-17T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Entries spread on multiple rows with multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415674#M819710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;GroupId&lt;/SPAN&gt;=&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Question&lt;/SPAN&gt;={'Q1'}, &lt;SPAN style="color: #800000;"&gt;Answer&lt;/SPAN&gt;={'&amp;lt;4'}&amp;gt;})*&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Question&lt;/SPAN&gt;={'Q2'}, &lt;SPAN style="color: #800000;"&gt;Answer&lt;/SPAN&gt;={'B'}&amp;gt;})&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;GroupId&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 16:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415674#M819710</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-08-17T16:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Entries spread on multiple rows with multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415675#M819711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since in my original data the Q1 answers are string rather than numeric, I used the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;GroupId&lt;/SPAN&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;P&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;Question&lt;/SPAN&gt;={'Q1'}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;&lt;STRONG&gt;Answer-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;={'5'}&lt;/STRONG&gt;&amp;gt;})*&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;P&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;Question&lt;/SPAN&gt;={'Q2'}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;Answer&lt;/SPAN&gt;={'B'}&amp;gt;})&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;GroupId&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415675#M819711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-21T11:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Entries spread on multiple rows with multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415676#M819712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, or&lt;/P&gt;&lt;P&gt;Answer={'1','2','3','4'}&lt;/P&gt;&lt;P&gt;if You need.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Entries-spread-on-multiple-rows-with-multiple-criteria/m-p/1415676#M819712</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-08-21T15:35:55Z</dc:date>
    </item>
  </channel>
</rss>

