<?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 get 'Sum of Rows' in Text box instead of 'Expression Total' ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443584#M511805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;STRONG&gt;Text Box to display the value for an expression&lt;/STRONG&gt; like sum(A)*B, for any number of dimensions selected by the user.&lt;/P&gt;&lt;P&gt;By default it is showing 'Expression Total', which is not giving correct results because of multiplication involved.&lt;/P&gt;&lt;P&gt;I need to show 'Sum of the Rows' in the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data example :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 210px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="text-align: center;" width="82"&gt;Dimension&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none; text-align: center;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none; text-align: center;" width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; text-align: center;"&gt;D1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; text-align: center;"&gt;D2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;12&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; text-align: center;"&gt;D3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;13&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If D1, D2 and D3 are selected, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Total:&amp;nbsp;&amp;nbsp; (10+12+13) * (2+3+4) = 35 * 9 = 315 (incorrect)&lt;/P&gt;&lt;P&gt;Sum of Total: (10*2)+(12*3)+(13*4) = 108 (correct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 07:10:09 GMT</pubDate>
    <dc:creator>jazzsran</dc:creator>
    <dc:date>2017-12-07T07:10:09Z</dc:date>
    <item>
      <title>How to get 'Sum of Rows' in Text box instead of 'Expression Total' ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443584#M511805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;STRONG&gt;Text Box to display the value for an expression&lt;/STRONG&gt; like sum(A)*B, for any number of dimensions selected by the user.&lt;/P&gt;&lt;P&gt;By default it is showing 'Expression Total', which is not giving correct results because of multiplication involved.&lt;/P&gt;&lt;P&gt;I need to show 'Sum of the Rows' in the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data example :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 210px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="text-align: center;" width="82"&gt;Dimension&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none; text-align: center;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none; text-align: center;" width="64"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; text-align: center;"&gt;D1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; text-align: center;"&gt;D2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;12&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; text-align: center;"&gt;D3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;13&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none; text-align: center;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If D1, D2 and D3 are selected, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Total:&amp;nbsp;&amp;nbsp; (10+12+13) * (2+3+4) = 35 * 9 = 315 (incorrect)&lt;/P&gt;&lt;P&gt;Sum of Total: (10*2)+(12*3)+(13*4) = 108 (correct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 07:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443584#M511805</guid>
      <dc:creator>jazzsran</dc:creator>
      <dc:date>2017-12-07T07:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 'Sum of Rows' in Text box instead of 'Expression Total' ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443585#M511806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaspreet Sran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you could use aggr() function like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum(A*B),Dimension)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 18:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443585#M511806</guid>
      <dc:creator>lucpechali</dc:creator>
      <dc:date>2017-12-07T18:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 'Sum of Rows' in Text box instead of 'Expression Total' ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443586#M511807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try sum(A*B)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443586#M511807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-07T21:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get 'Sum of Rows' in Text box instead of 'Expression Total' ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443587#M511808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, you are right, just need to add sum outside this to get sum for all the dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;aggr(sum(A*B),Dimension))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jaspreet Kaur Sran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Sum-of-Rows-in-Text-box-instead-of-Expression-Total/m-p/1443587#M511808</guid>
      <dc:creator>jazzsran</dc:creator>
      <dc:date>2017-12-11T08:53:18Z</dc:date>
    </item>
  </channel>
</rss>

