<?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: Total Sum in Tables - total sum ignoring the formula in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Total-Sum-in-Tables-total-sum-ignoring-the-formula/m-p/1380980#M31377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrap your expression around with Sum(Aggr()) like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((if((round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150)&amp;gt;0,(round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&amp;gt;(if((count([Shipment no])&amp;lt; 51), 100 , if((count([Shipment no]) &amp;lt; 101), 500 , if((count([Shipment no]) &amp;lt; 1501),1000 ,1500)))),(if((count([Shipment no])&amp;lt; 51), 100 , if((count([Shipment no]) &amp;lt; 101), 500 , if((count([Shipment no]) &amp;lt; 1501),1000 ,1500)))),(if((round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150)&amp;gt;0,(round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;, [Branch country], [Branch city]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2017 12:31:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-17T12:31:32Z</dc:date>
    <item>
      <title>Total Sum in Tables - total sum ignoring the formula</title>
      <link>https://community.qlik.com/t5/App-Development/Total-Sum-in-Tables-total-sum-ignoring-the-formula/m-p/1380979#M31376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179903_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need your help please:&lt;/P&gt;&lt;P&gt;In the above table we are calculating some figures per branch (e.g. Actual Malus Delivery Quota). The problem is that the total line is always using the the formula as all other lines within the table. BUT we need to have a total sum (more or less ignoring the above mentioned formula). In this case our desired result would be 2.900 € instead of 900 €.&lt;/P&gt;&lt;P&gt;A possible solution could also be that the figure is displayed in a different object (e.g. KPI, Second table etc.).&lt;/P&gt;&lt;P&gt;But here comes our second problem:&lt;/P&gt;&lt;P&gt;Our formula (see formula at the bottom) is based on Branch level therefore the it is a bit difficult to get our desired result on country level.&lt;/P&gt;&lt;P&gt;If you need any additional information to help us - please contact us!!! We really have to solve this problem and would really appreciate if you could help us!&lt;/P&gt;&lt;P&gt;Many, many thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukas &amp;amp; Whiteside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((if((round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150)&amp;gt;0,(round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150),0)&lt;/P&gt;&lt;P&gt;)&amp;gt;(if((count([Shipment no])&amp;lt; 51), 100 , if((count([Shipment no]) &amp;lt; 101), 500 , if((count([Shipment no]) &amp;lt; 1501),1000 ,1500)))),(if((count([Shipment no])&amp;lt; 51), 100 , if((count([Shipment no]) &amp;lt; 101), 500 , if((count([Shipment no]) &amp;lt; 1501),1000 ,1500)))),(if((round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150)&amp;gt;0,(round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150),0)&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 09:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-Sum-in-Tables-total-sum-ignoring-the-formula/m-p/1380979#M31376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T09:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum in Tables - total sum ignoring the formula</title>
      <link>https://community.qlik.com/t5/App-Development/Total-Sum-in-Tables-total-sum-ignoring-the-formula/m-p/1380980#M31377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrap your expression around with Sum(Aggr()) like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((if((round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150)&amp;gt;0,(round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&amp;gt;(if((count([Shipment no])&amp;lt; 51), 100 , if((count([Shipment no]) &amp;lt; 101), 500 , if((count([Shipment no]) &amp;lt; 1501),1000 ,1500)))),(if((count([Shipment no])&amp;lt; 51), 100 , if((count([Shipment no]) &amp;lt; 101), 500 , if((count([Shipment no]) &amp;lt; 1501),1000 ,1500)))),(if((round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150)&amp;gt;0,(round(0.90 - (count({&amp;lt;[QR6 Timestatus]={'in time'}&amp;gt;}[Shipment no])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(count([Shipment no]) - count({&amp;lt;[QR6 Timestatus]={'island shipment','ZIP-Code exists in platform, but not in branch','ZIP-Code in branch and platform missing'}&amp;gt;}[Shipment no])) ),0.01)*100*150),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;, [Branch country], [Branch city]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 12:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-Sum-in-Tables-total-sum-ignoring-the-formula/m-p/1380980#M31377</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T12:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum in Tables - total sum ignoring the formula</title>
      <link>https://community.qlik.com/t5/App-Development/Total-Sum-in-Tables-total-sum-ignoring-the-formula/m-p/1380981#M31378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks! That works! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 14:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-Sum-in-Tables-total-sum-ignoring-the-formula/m-p/1380981#M31378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T14:17:08Z</dc:date>
    </item>
  </channel>
</rss>

