<?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: Sum of aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140561#M20920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you say 'add up' that means you want a sum of rows in your pivot table?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-row…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding the the Sum(Aggr(..., YourChartDimensions)) like&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;{$&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;} &lt;/SPAN&gt;Aggr(&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;FirstSortedValue({$&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;} distinct aggr(Sum({1&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;}SlutprognosAnsvar), ProjektNr, AnsvarNr, MålkortsDatum),-MålkortsDatum)&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;,ProjektNr, AnsvarNr))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Oct 2018 15:00:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2018-10-28T15:00:45Z</dc:date>
    <item>
      <title>Sum of aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140560#M20919</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 have a QV table with an expression that looks like below.&lt;/P&gt;&lt;P&gt;As you can see from the picture it doesn't seem to add upp in the column total and I can't figure out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The expression looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MålkortsDatum = Date formated as YYYY-MM-DD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SVDate (Variable) = 2018-10-30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SlutprognosAnsvar = number column (data from excelfile)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ProjektNr = &lt;SPAN style="font-size: 13.3333px;"&gt;number column (data from excelfile)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AnsvarNr&lt;/SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;number column (data from excelfile)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue({$&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;} distinct aggr(Sum({1&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;}SlutprognosAnsvar), ProjektNr, AnsvarNr, MålkortsDatum),-MålkortsDatum)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 14:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140560#M20919</guid>
      <dc:creator>patrickbender</dc:creator>
      <dc:date>2018-10-28T14:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140561#M20920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you say 'add up' that means you want a sum of rows in your pivot table?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-row…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding the the Sum(Aggr(..., YourChartDimensions)) like&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;{$&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;} &lt;/SPAN&gt;Aggr(&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;FirstSortedValue({$&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;} distinct aggr(Sum({1&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;}SlutprognosAnsvar), ProjektNr, AnsvarNr, MålkortsDatum),-MålkortsDatum)&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;,ProjektNr, AnsvarNr))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 15:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140561#M20920</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-10-28T15:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140562#M20921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is awesome!&lt;BR /&gt;Why does it work when using a second aggr argument?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 15:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140562#M20921</guid>
      <dc:creator>patrickbender</dc:creator>
      <dc:date>2018-10-28T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140563#M20922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3798"&gt;Totals in Charts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2018 15:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140563#M20922</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-10-28T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140564#M20923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the information Stefan,&lt;BR /&gt;I ended up rewriting the expression after getting a better understanding of the expressions and this is the end result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MålkortsDatum={"&amp;lt;$(SVDate)"}&amp;gt;}AGGR(FirstSortedValue(SlutprognosAnsvar, -MålkortsDatum), ProjektNr, AnsvarNr))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 10:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-aggr-function/m-p/140564#M20923</guid>
      <dc:creator>patrickbender</dc:creator>
      <dc:date>2018-10-29T10:55:36Z</dc:date>
    </item>
  </channel>
</rss>

