<?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: how to add? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724683#M260003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change it to just the word total does it work? If not try changing the font color to make it more conspicuous it may be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the word total by itself works then add the 1st count by itself and see if that works...&amp;nbsp; This should tell you which part of your 3 part expression is failing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Sep 2014 15:49:09 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-06T15:49:09Z</dc:date>
    <item>
      <title>how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724681#M260001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;='Total '&amp;amp; Count([Moc.Type&amp;nbsp; .])+Count(Moc.Type.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above expression i written in under presentation tab in "TEXT IN CHART" , i am trying to show total count,but i used sum not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 14:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724681#M260001</guid>
      <dc:creator>balasundaram</dc:creator>
      <dc:date>2014-09-06T14:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724682#M260002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please provide sample app/data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 14:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724682#M260002</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-06T14:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724683#M260003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change it to just the word total does it work? If not try changing the font color to make it more conspicuous it may be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the word total by itself works then add the 1st count by itself and see if that works...&amp;nbsp; This should tell you which part of your 3 part expression is failing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 15:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724683#M260003</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-06T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724684#M260004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Looking at your expressions there are two potential issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;balasun per wrote:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;='Total '&amp;amp; Count([Moc.Type&amp;nbsp; .])+Count(Moc.Type.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;1. Your second expression i.e. Count(Moc.Type.) should be Count([Moc.Type.]). I'm not sure if these are right field names but I recommend you to use the square brackets around the field names when there is period or space.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;2. When you are aggregating the data (In your case - it's Count) in different expressions and using a string concatenation operator, you need&amp;nbsp; brackets around the two aggragation expressions (See the read brackets marked below).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;So you need to use something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG&gt;='Total '&amp;amp; &lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;Count([Moc.Type&amp;nbsp; .])+Count([Moc.Type.])&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 16:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724684#M260004</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-09-06T16:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724685#M260005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, its not working.... dont know why...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you keep Total at the end then its working..like below..&lt;/P&gt;&lt;P&gt;= sum(Sales)&amp;nbsp; + Count(Sales)&amp;amp;'&amp;nbsp;&amp;nbsp; Total ...............its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you just do sum and count in "text in chart" and create a text object for Total, make it transparent, and just put it left to your total value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 16:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724685#M260005</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2014-09-06T16:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724686#M260006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;keep it in variable like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;='Total : '&amp;amp;(Count(field)+count(Field2))...and use that variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 17:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724686#M260006</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-09-06T17:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724687#M260007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prem - Curious to know, how will variable help compared to normal expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 18:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724687#M260007</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-09-06T18:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724688#M260008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;me too...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;have tried, not working even in variable...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 18:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724688#M260008</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2014-09-06T18:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724689#M260009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;This expression works for me:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;So you need to use something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG&gt;='Total '&amp;amp; &lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;Count([Moc.Type&amp;nbsp; .])+Count([Moc.Type.])&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 18:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724689#M260009</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-09-06T18:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724690#M260010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, for me too... &lt;/P&gt;&lt;P&gt;but logically these () does not make sense.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;I consider it, a qlikview fault......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway Thanks for.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 18:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724690#M260010</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2014-09-06T18:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: how to add?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724691#M260011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Good to know it works for you. &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG style="color: #ff0000; text-decoration: underline;"&gt;But it's not QlikView's fault but that's natural behaviour in programming paradigm&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;. The reason for this behaviour is the nature of the operators used in the expression and the order of precedence. I would recommend you to read - The Order of Precedence of arthimetic operators for clear understanding. However, Let me try to explain:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG&gt;='Total '&amp;amp; &lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;Count([Moc.Type&amp;nbsp; .]) + Count([Moc.Type.])&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG style="color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Above expression won't work without the brackets (in red colour) because we are using "+"/addition arthimetic operator and when we use the brackets then QlikView aggregates the both the count values and then adds them together. So if there are no brackets the expression evaulation might be confusing with the string concatenation operator and it returns a NULL value.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;However, below expression works without the same brackets when we use the "*"/multiplier arthimetic operator because this operator take first precedence when we don't specify any brackets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG&gt;='Total '&amp;amp; Count([Moc.Type&amp;nbsp; .]) * Count([Moc.Type.])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;So, it's important to explicity specify the brackets whenever writing the expressions and not depending on the Order of precedence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;I hope all this makes sense!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;SPAN style="color: #575757;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2014 19:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-add/m-p/724691#M260011</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-09-06T19:46:08Z</dc:date>
    </item>
  </channel>
</rss>

