<?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: Wrong Total in a Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594615#M508384</link>
    <description>&lt;P&gt;That's right, but when I change the Layout to Pivot, then I need your right answer.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 12:54:59 GMT</pubDate>
    <dc:creator>malmsteen1977</dc:creator>
    <dc:date>2019-06-21T12:54:59Z</dc:date>
    <item>
      <title>Wrong Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594587#M508380</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I searched the community but I didn't get a satisfying answer.&lt;/P&gt;&lt;P&gt;I have a simple straight table with 3 rows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Amount previous year&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Amount current year&lt;/P&gt;&lt;P&gt;- The third row should only sum those Parts (Dimension PartID), which have a value &amp;gt;0 in previous AND current year.&lt;/P&gt;&lt;P&gt;I have an if-Clause to do this, which works correctly on dimension-base, but the TOTAL is wrong (2.947.990,80). When you sum up the correct Part-Values, you only get 2.808.454,80&lt;/P&gt;&lt;P&gt;The field "AcceptedAmount" in the Expression is based on single DocumentNumbers (DocNo) and Positions (PosNo) in the table XI_PurchFacts and aggregated on Parts (PartID as Dimension)&lt;/P&gt;&lt;P&gt;I already tried some aggr(sum)-Expressions, but the Total is still wrong.&lt;/P&gt;&lt;P&gt;Sample data attached. Any advice is appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594587#M508380</guid>
      <dc:creator>malmsteen1977</dc:creator>
      <dc:date>2024-11-16T20:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594597#M508381</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(
IF(Sum({&amp;lt;MainDateYear={$(=only(MainDateYear)-1)}&amp;gt;} AcceptedAmount) &amp;lt;&amp;gt;0 	and Sum({&amp;lt;MainDateYear={$(=only(MainDateYear))}&amp;gt;} AcceptedAmount) &amp;lt;&amp;gt; 0, 
		Sum({&amp;lt;MainDateYear={$(=only(MainDateYear)-1)}&amp;gt;}AcceptedAmount),0)
, PartID))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Jun 2019 12:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594597#M508381</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-21T12:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594611#M508382</link>
      <description>&lt;P&gt;Perfect Sunny. Thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 12:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594611#M508382</guid>
      <dc:creator>malmsteen1977</dc:creator>
      <dc:date>2019-06-21T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594614#M508383</link>
      <description>&lt;P&gt;In fact, since this is a straight table... you can continue to use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(Sum({&amp;lt;MainDateYear={$(=only(MainDateYear)-1)}&amp;gt;} AcceptedAmount) &amp;lt;&amp;gt;0 	and Sum({&amp;lt;MainDateYear={$(=only(MainDateYear))}&amp;gt;} AcceptedAmount) &amp;lt;&amp;gt; 0, 
		Sum({&amp;lt;MainDateYear={$(=only(MainDateYear)-1)}&amp;gt;}AcceptedAmount),0)&lt;/LI-CODE&gt;&lt;P&gt;but change the total mode to Sum of Rows&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14172iD4E1359D3C2F1C05/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 12:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594614#M508383</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-21T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594615#M508384</link>
      <description>&lt;P&gt;That's right, but when I change the Layout to Pivot, then I need your right answer.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 12:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-a-Straight-Table/m-p/1594615#M508384</guid>
      <dc:creator>malmsteen1977</dc:creator>
      <dc:date>2019-06-21T12:54:59Z</dc:date>
    </item>
  </channel>
</rss>

