<?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: Expression that Emulates Total in a Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619041#M1117422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael.&lt;/P&gt;&lt;P&gt;That’s what I would have thought initially too, but it is not what worked.&lt;/P&gt;&lt;P&gt;It is a little bit confusing to me, but at the moment I am inclined to go with what appears to be giving me the right result and try to figure it all out later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Feb 2014 02:52:55 GMT</pubDate>
    <dc:creator>peter_burgess</dc:creator>
    <dc:date>2014-02-09T02:52:55Z</dc:date>
    <item>
      <title>Expression that Emulates Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619038#M1117419</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 straight table with a calculated column. To simplify things, let's say the table has a Dimension D with two columns of numeric data A and B. The calculated column has the expression C = (A*v)&amp;nbsp; + B, where v is an input variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set the table to show totals, so once I have made my selection of dimensions, the bottom of the calculated column shows (correctly) the total of the calculations for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, I need to know the correct syntax in an aggregation function, to calculate that total so I can assign it to a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;sum(aggr((A*v)+B,D))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;aggr(sum((A*v)+B),D)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and one or two others that I have now forgotten about, but I have lost confidence in my ability to write aggregation functions and wonder -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please tell me what the correct syntax should be? Or, advise if there is an easier way to emulate the total that appears at the bottom of the calculated column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 02:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619038#M1117419</guid>
      <dc:creator>peter_burgess</dc:creator>
      <dc:date>2014-02-07T02:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression that Emulates Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619039#M1117420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I think I can answer myself here, after having another look at my syntax.&lt;/P&gt;&lt;P&gt;The expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum(aggr((A*v)+B,D))&lt;/P&gt;&lt;P&gt;appears to be the correct one after all.&lt;/P&gt;&lt;P&gt;I think the complications in the real-life example I had, where there were several other columns involved, threw me off track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would still be interested, though, as to whether there is an easier way...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 02:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619039#M1117420</guid>
      <dc:creator>peter_burgess</dc:creator>
      <dc:date>2014-02-07T02:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression that Emulates Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619040#M1117421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have expected that you would want AGGR(SUM((A*v)+B),D)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image 1.png" class="jive-image" src="/legacyfs/online/52751_Image 1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 05:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619040#M1117421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T05:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression that Emulates Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619041#M1117422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael.&lt;/P&gt;&lt;P&gt;That’s what I would have thought initially too, but it is not what worked.&lt;/P&gt;&lt;P&gt;It is a little bit confusing to me, but at the moment I am inclined to go with what appears to be giving me the right result and try to figure it all out later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 02:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-that-Emulates-Total-in-a-Straight-Table/m-p/619041#M1117422</guid>
      <dc:creator>peter_burgess</dc:creator>
      <dc:date>2014-02-09T02:52:55Z</dc:date>
    </item>
  </channel>
</rss>

