<?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. :Re: Do a count on specific values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235976#M87201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I ran into another problem similar to the one described here.&lt;/P&gt;&lt;P&gt;I need to do a calculation where I have to count how many people (answerID) have answered a specific combination to 2 questions. Martin's expression works fine for one question but I need to have it "nested" with another question/answer.&lt;/P&gt;&lt;P&gt;So the expressions seperated looks like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;PQQ_QUESTION_TEXT = {'Do you agree?'}, ANS_ANSWERALTERNATIVE = {Yes}&amp;gt;} ANS_ANSWER_ID)&lt;/P&gt;&lt;P&gt;count({&amp;lt;PQQ_QUESTION_TEXT = {Did you have any problems?'}, ANS_ANSWERALTERNATIVE = {Yes, serious problems}&amp;gt;} ANS_ANSWER_ID)&lt;/P&gt;&lt;P&gt;But how to I combine the to give me a count of answerID's that have answered "Yes" to the first question AND "Yes, serious problems" to the other question?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nik&lt;/P&gt;&lt;P&gt;P.s. Let me know if I should open another thread since it's a new question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 May 2010 14:05:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-17T14:05:59Z</dc:date>
    <item>
      <title>Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235971#M87196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I got a large number of different questionnaires that I'm analysing using QLikView.&lt;BR /&gt;A quiestionniare is having:&lt;BR /&gt;- a name&lt;BR /&gt;- 1-m "Categories" (headers)&lt;BR /&gt;- each Category got 1-m questions.&lt;BR /&gt;&lt;BR /&gt;When a questionnaire is selected (filtered) I would like to count how many have answered "Yes" to the question "Do you agree?" - whitout that specific question is filtered, meaning only filter is Questionnare Name. I got other answer combinations that needs to be counted as well (logic will be the same as above). All those values will be plotted in a line chart.&lt;BR /&gt;&lt;BR /&gt;It might help you understand if you see my failed attemp: count(Aggr(PQQ_QUESTION_TEXT = 'Do you agree?' AND ANS_ANSWERALTERNATIVE = 'Yes', ANS_ANSWER_ID))&lt;BR /&gt;&lt;BR /&gt;Hope that one of you guru's can point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Nikolaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 08:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235971#M87196</guid>
      <dc:creator />
      <dc:date>2010-05-10T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235972#M87197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikolaj&lt;/P&gt;&lt;P&gt;does this show your expected result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum(if(PQQ_QUESTION_TEXT = 'Do you agree?' AND ANS_ANSWERALTERNATIVE = 'Yes', 1))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235972#M87197</guid>
      <dc:creator />
      <dc:date>2010-05-10T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235973#M87198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juerg,&lt;/P&gt;&lt;P&gt;Unfortinately your expression does not work.&lt;/P&gt;&lt;P&gt;Thanks for trying anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;/Nikolaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235973#M87198</guid>
      <dc:creator />
      <dc:date>2010-05-10T09:36:17Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235974#M87199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikolaj,&lt;/P&gt;&lt;P&gt;I don't understand why the Juerg's expression does not work. Are you sure about your field names and values.&lt;/P&gt;&lt;P&gt;You can also try this expression :&lt;/P&gt;&lt;P&gt;count({&amp;lt;PQQ_QUESTION_TEXT = {'Do you agree?'}, ANS_ANSWERALTERNATIVE = {Yes}&amp;gt;} ANS_ANSWER_ID)&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235974#M87199</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-10T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235975#M87200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Juerg's expression is returning a different number than expected. Why I don't know. Yours on the other hand gives me the values I'm looking for!&lt;/P&gt;&lt;P&gt;Thanks for the effort both of you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 09:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235975#M87200</guid>
      <dc:creator />
      <dc:date>2010-05-10T09:49:42Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235976#M87201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I ran into another problem similar to the one described here.&lt;/P&gt;&lt;P&gt;I need to do a calculation where I have to count how many people (answerID) have answered a specific combination to 2 questions. Martin's expression works fine for one question but I need to have it "nested" with another question/answer.&lt;/P&gt;&lt;P&gt;So the expressions seperated looks like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;PQQ_QUESTION_TEXT = {'Do you agree?'}, ANS_ANSWERALTERNATIVE = {Yes}&amp;gt;} ANS_ANSWER_ID)&lt;/P&gt;&lt;P&gt;count({&amp;lt;PQQ_QUESTION_TEXT = {Did you have any problems?'}, ANS_ANSWERALTERNATIVE = {Yes, serious problems}&amp;gt;} ANS_ANSWER_ID)&lt;/P&gt;&lt;P&gt;But how to I combine the to give me a count of answerID's that have answered "Yes" to the first question AND "Yes, serious problems" to the other question?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nik&lt;/P&gt;&lt;P&gt;P.s. Let me know if I should open another thread since it's a new question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 14:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235976#M87201</guid>
      <dc:creator />
      <dc:date>2010-05-17T14:05:59Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235977#M87202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If you want to count of answerID's that have answered "Yes, serious problems" to the second question, do this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count({&amp;lt;PQQ_QUESTION_TEXT = {'Did you have any problems?'}, ANS_ANSWERALTERNATIVE = {'Yes, serious problems'}&amp;gt;} ANS_ANSWER_ID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If you want to intersect the 'Yes' on the first question and 'Yes, serious problems' on the second, try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count({&amp;lt;PQQ_QUESTION_TEXT = {'Do you agree?'}, ANS_ANSWERALTERNATIVE = {Yes}&amp;gt;*&amp;lt;PQQ_QUESTION_TEXT = {'Did you have any problems?'}, ANS_ANSWERALTERNATIVE = {'Yes, serious problems'}&amp;gt;} ANS_ANSWER_ID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope it works and helps you.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 14:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235977#M87202</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-17T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Re. :Re: Do a count on specific values</title>
      <link>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235978#M87203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 11:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-a-count-on-specific-values/m-p/235978#M87203</guid>
      <dc:creator />
      <dc:date>2010-05-19T11:35:24Z</dc:date>
    </item>
  </channel>
</rss>

