<?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 total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954189#M328055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do a table with two expressions but without success. I am having issues with the last expression taht would be a total&lt;/P&gt;&lt;P&gt;The table is a pivot table with one dimension for the Question and another one with the answer.&lt;/P&gt;&lt;P&gt;The two expressions are the number of answers and the total number of answers at a question level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Question&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Answer&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Count (Distinct Answer) aggregated per Survey&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Count total&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;74&lt;/TD&gt;&lt;TD class="xl72" style="border-top-style: none; border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;73&lt;/TD&gt;&lt;TD class="xl67" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;3&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;408&lt;/TD&gt;&lt;TD class="xl67" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;4&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;90&lt;/TD&gt;&lt;TD class="xl67" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl70" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;5&lt;/TD&gt;&lt;TD class="xl71" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;53&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first Expresion is correct, and it is displaying the number of distinct answers for each survey:&lt;/P&gt;&lt;P&gt;sum(aggr(count(distinct Answer),Survey, Answer)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to do the total count at a question level I am able to obtain the total if I do not select any Answer with the following calculus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( total &amp;lt;Question, Survey,&amp;gt; {&amp;lt;Answer&amp;gt;} aggr(count( {&amp;lt;Answer&amp;gt;}Answer),Survey, Answer)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I select an Answer, instead of displaying the total at a Question level, it displays the same figure than the number of answers for the answer, and not the total answers for the answers in the question: 698&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Question&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Answer&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Count (Distinct Answer) aggregated per Survey&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Count total&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl67"&gt;1&lt;/TD&gt;&lt;TD class="xl68"&gt;74&lt;/TD&gt;&lt;TD class="xl72" style="border-top-style: none; border-left-style: none;"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Dec 2015 14:30:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-04T14:30:05Z</dc:date>
    <item>
      <title>Count total</title>
      <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954189#M328055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do a table with two expressions but without success. I am having issues with the last expression taht would be a total&lt;/P&gt;&lt;P&gt;The table is a pivot table with one dimension for the Question and another one with the answer.&lt;/P&gt;&lt;P&gt;The two expressions are the number of answers and the total number of answers at a question level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Question&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Answer&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Count (Distinct Answer) aggregated per Survey&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Count total&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;74&lt;/TD&gt;&lt;TD class="xl72" style="border-top-style: none; border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;73&lt;/TD&gt;&lt;TD class="xl67" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;3&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;408&lt;/TD&gt;&lt;TD class="xl67" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;4&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;90&lt;/TD&gt;&lt;TD class="xl67" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD class="xl70" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;5&lt;/TD&gt;&lt;TD class="xl71" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;53&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;698&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first Expresion is correct, and it is displaying the number of distinct answers for each survey:&lt;/P&gt;&lt;P&gt;sum(aggr(count(distinct Answer),Survey, Answer)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to do the total count at a question level I am able to obtain the total if I do not select any Answer with the following calculus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( total &amp;lt;Question, Survey,&amp;gt; {&amp;lt;Answer&amp;gt;} aggr(count( {&amp;lt;Answer&amp;gt;}Answer),Survey, Answer)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I select an Answer, instead of displaying the total at a Question level, it displays the same figure than the number of answers for the answer, and not the total answers for the answers in the question: 698&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Question&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Answer&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Count (Distinct Answer) aggregated per Survey&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; background-color: #6690bc;"&gt;Count total&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl67"&gt;1&lt;/TD&gt;&lt;TD class="xl68"&gt;74&lt;/TD&gt;&lt;TD class="xl72" style="border-top-style: none; border-left-style: none;"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 14:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-total/m-p/954189#M328055</guid>
      <dc:creator />
      <dc:date>2015-12-04T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count total</title>
      <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954190#M328056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could be totally wrong here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't your first expression be equivalent to&lt;/P&gt;&lt;P&gt;=Count(DISTINCT Survey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then your total maybe&lt;/P&gt;&lt;P&gt;=SUM( Aggr( Count(DISTINCT Survey), Question, Answer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resp. to ignore selection on Answer:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=SUM(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Answer= &amp;gt;} &lt;/SPAN&gt; Aggr( Count({&amp;lt;Answer= &amp;gt;} DISTINCT Survey), Question, Answer))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 17:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-total/m-p/954190#M328056</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-04T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count total</title>
      <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954191#M328057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but it does not work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The calculus is aggregate count of answers at a survey and answer level, as one survey-question could have more than two answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;When I put your formula the output is the same, as it is not being done at a total level.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas to have the total of these calculus at a question level and be able to see this total data of the question when selecting a specificanswer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 08:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-total/m-p/954191#M328057</guid>
      <dc:creator />
      <dc:date>2015-12-07T08:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count total</title>
      <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954192#M328058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, the corresponding count would probably be &lt;/P&gt;&lt;P&gt;=Count(DISTINCT Survey &amp;amp;'-'&amp;amp; Answer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's quite hard to see why your expression is not working like expected without knowing the full context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be possible that you share a small sample QVW (could contain some mock up data) that demonstrates your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-total/m-p/954192#M328058</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-07T17:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count total</title>
      <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954193#M328059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached a document in the first message.&lt;/P&gt;&lt;P&gt;In the first column (Answers #) you can see the number of answers aggregated by Survey.&lt;/P&gt;&lt;P&gt;In the second column (Total Answers #) the total appears. However, when I select one answer it does not just display the selected answer but alls.&lt;/P&gt;&lt;P&gt;In case of selecting one or two answers, just these selected answers should appear, but the total count should be of all the possible answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 18:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-total/m-p/954193#M328059</guid>
      <dc:creator />
      <dc:date>2015-12-07T18:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count total</title>
      <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954194#M328060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that's something different than described in your OP.&lt;/P&gt;&lt;P&gt;It's understandable that you see all dimension values, since you cleared the selection in Answer field in the set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try multiplying your existing expression with an expression that return 1 for the selected values and 0 for the excluded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( total &amp;lt;Question, Survey&amp;gt; {&amp;lt;Answer&amp;gt;} aggr(count( {&amp;lt;Answer&amp;gt;}Answer),Survey, Answer))* COUNT(DISTINCT 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 18:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-total/m-p/954194#M328060</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-07T18:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count total</title>
      <link>https://community.qlik.com/t5/QlikView/Count-total/m-p/954195#M328061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It totally works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 18:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-total/m-p/954195#M328061</guid>
      <dc:creator />
      <dc:date>2015-12-07T18:59:42Z</dc:date>
    </item>
  </channel>
</rss>

