<?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: Calculating total in a straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958407#M467908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;In a straight table, where the country and country are dimensions, the total target&amp;nbsp; value is &lt;/P&gt;&lt;P&gt;What we'd like it to be:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="TableNormal" style="margin-left: 4.65pt; width: 284px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Quant.&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Target&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;703&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;4,608&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1739&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;274&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,465&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1595&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;252&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,343&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1977&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;177&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,800&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change the same table to pivot, the Diff total is wrong,&amp;nbsp; as you mentioned, and&amp;nbsp; so is the target:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="TableNormal" style="margin-left: 4.65pt; width: 284px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Quant.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Diff&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Target&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;2903&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;2,408&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1739&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;274&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,465&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1595&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;252&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,343&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1977&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;177&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,800&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2015 17:13:34 GMT</pubDate>
    <dc:creator>dafnis14</dc:creator>
    <dc:date>2015-10-12T17:13:34Z</dc:date>
    <item>
      <title>Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958398#M467899</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'm trying to achieve the following:&lt;/P&gt;&lt;P&gt;I have a metric: Target = Quantity - Diff&lt;/P&gt;&lt;P&gt; In a straight table,&amp;nbsp; I would like to display one row for a country, which would be identical &lt;/P&gt;&lt;P&gt;to the Target displayed in the top table (Straight Table - with Branches), which is based on the sum of rows &lt;/P&gt;&lt;P&gt;But, I receive total which is calculated as the difference of the total sums instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this calculation be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; width: 404px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="219"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Straight Table - with Branches&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Branch&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Quantity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Target &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: none; border-bottom: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;2903&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;4608&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1739&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;274&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1465&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1595&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;252&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1343&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1977&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;177&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1800&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="3" nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="300"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Straight Table - with Branches - Wanted&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Quantity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Target&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;France&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;2903&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;4608&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="3" nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="300"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Straight Table - with Branches - Received&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Quantity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Target&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;France&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;2903&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;2408&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 12:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958398#M467899</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2015-10-12T12:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958399#M467900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dafnis ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can You please attach a sample app or explain elaborately please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;Bunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 12:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958399#M467900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-12T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958400#M467901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the straight tablw with branches, the total, based on your statement of&amp;nbsp; Target = Quantity - Diff- diff is not correct (5311 - 2903 does not equal 4608)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not understrand straight table wanted - it has the same totals as the first example which do not appear to add correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 3rd example ...-Received, the math is correct based on your statement of Target = Quantity - Diff&lt;/P&gt;&lt;P&gt;(5311-2903 = 2408)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it appears the totals of the quanity and target are the sum of the details, but that does not appear to be the case for diff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;branches a,,b, c in france?&lt;/P&gt;&lt;P&gt;can it be a pivot table with country and branch - when all collapsed it would like like a straight table but you would be able to get branch level numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958400#M467901</guid>
      <dc:creator />
      <dc:date>2015-10-12T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958401#M467902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Total Diff Value in the first table isn't right! Can you please tell us what's the diference between Wanted and Received?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958401#M467902</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-12T13:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958402#M467903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the straight tablw with branches, the total, based on your statement of&amp;nbsp; Target = Quantity - Diff- diff is not correct (5311 - 2903 does not equal 4608)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not understrand straight table wanted - it has the same totals as the first example which do not appear to add correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 3rd example ...-Received, the math is correct based on your statement of Target = Quantity - Diff&lt;/P&gt;&lt;P&gt;(5311-2903 = 2408)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it appears the totals of the quanity and target are the sum of the details, but that does not appear to be the case for diff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;branches a,,b, c in france?&lt;/P&gt;&lt;P&gt;can it be a pivot table with country and branch - when all collapsed it would like like a straight table but you would be able to get branch level numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958402#M467903</guid>
      <dc:creator />
      <dc:date>2015-10-12T13:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958403#M467904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101740_Capture1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958403#M467904</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-10-12T13:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958404#M467905</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;Thank you all for your kind help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that i had to simulate a very simplified example based on complex expressions.&lt;/P&gt;&lt;P&gt;The wrong Diff total in the first table was received because the expression's Total Mode&lt;/P&gt;&lt;P&gt;was defined as the Expression Total.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt;" width="404"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" nowrap="nowrap" style="padding: 0 5.4pt;" valign="bottom" width="219"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 10pt; font-family: Arial, sans-serif;"&gt;Staright Table - with Branches&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: 1pt solid #dcdcdc; padding: 0 5.4pt; background-color: #f5f5f5;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top-color: #dcdcdc; border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: solid solid solid none; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top-color: #dcdcdc; border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: solid solid solid none; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; border-left-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Branch&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Quantity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top-color: #dcdcdc; border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: solid solid solid none; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Target &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none none solid; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; border-left-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;2903&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;4608&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; border-left-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; background-color: #99ccff;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #99ccff;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;1739&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #99ccff;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;274&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #99ccff;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;1465&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; border-left-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; background-color: white;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: white;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;1595&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: white;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;252&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: white;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;1343&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; border-left-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; background-color: #99ccff;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #99ccff;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;1977&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #99ccff;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;177&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #99ccff;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8pt; font-family: Tahoma, sans-serif; color: #333333;"&gt;1800&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When changing to Sum of rows, it would display correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the desired metric is the Target. When I changed to Pivot, the totals still displayed wrong.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; width: 404px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="3" nowrap="nowrap" style="padding: 0 5.4pt;" valign="bottom" width="300"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 10pt; font-family: Arial, sans-serif;"&gt;Staright Table - with Branches - Received&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: 1pt solid #dcdcdc; padding: 0 5.4pt; background-color: #f5f5f5;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top-color: #dcdcdc; border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: solid solid solid none; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Quantity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top-color: #dcdcdc; border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: solid solid solid none; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top-color: #dcdcdc; border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: solid solid solid none; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;Target&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt;" valign="bottom" width="105"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;France&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; border-left-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="114"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;2903&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-right-color: #dcdcdc; border-bottom-color: #dcdcdc; padding: 0 5.4pt; border-style: none solid solid none; border-right-width: 1pt; border-bottom-width: 1pt; background-color: #f5f5f5;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: 0.0001pt; text-align: right;"&gt;&lt;STRONG style="color: #e26b0a; font-size: 8pt; font-family: Tahoma, sans-serif;"&gt;2408&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to generate an example app to clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958404#M467905</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2015-10-12T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958405#M467906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not sure I undersatnd - in your last example&lt;/P&gt;&lt;P&gt;the target of 2408 is correct based on the data (5311-2903)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the straight table with branches in your last example has the same total numbers but the detail for diff do not add up to the total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You first examples says you want a target of 4608 - is that correct?&amp;nbsp; If that is the case, the issue is the total of the diff column is incorrect but the detail is correct.&amp;nbsp; By subtracting the detail diff from quantioty, the correct target is calcualted -diff total should then be 703&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vcan you send example with correct diff numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958405#M467906</guid>
      <dc:creator />
      <dc:date>2015-10-12T13:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958406#M467907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe, your simulation have different set off results on Country Level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 14:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958406#M467907</guid>
      <dc:creator />
      <dc:date>2015-10-12T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958407#M467908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;In a straight table, where the country and country are dimensions, the total target&amp;nbsp; value is &lt;/P&gt;&lt;P&gt;What we'd like it to be:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="TableNormal" style="margin-left: 4.65pt; width: 284px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Quant.&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Diff&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Target&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;703&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;4,608&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1739&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;274&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,465&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1595&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;252&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,343&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1977&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;177&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,800&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change the same table to pivot, the Diff total is wrong,&amp;nbsp; as you mentioned, and&amp;nbsp; so is the target:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="TableNormal" style="margin-left: 4.65pt; width: 284px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Quant.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Diff&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Target&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;5311&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;2903&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;STRONG&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;2,408&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1739&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;274&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,465&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1595&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;252&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,343&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1977&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="81"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;177&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: #99CCFF; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="104"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN lang="HE" style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;₪ &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1,800&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 17:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958407#M467908</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2015-10-12T17:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958408#M467909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the expression used for Diff and target, I think that is making all the difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 04:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958408#M467909</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-10-13T04:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958409#M467910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;The wrong Diff total in the first table was received because he expression's Total Mode was defined as the expression Total. &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;When changing to Sum of rows, it would display correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A pivot table always calculates the expression total and not a sum of rows. To get sum of rows in a pivot, you need to use a Sum(Aggr(.....)) expression, using this syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(Aggr( ... your expression here ..., &amp;lt;chart dimension1&amp;gt;, &amp;lt;chart dimension 2&amp;gt;, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart dimensions are ALL the fields used as chart dimensions and they must all be included in the Aggr()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;dimensions. Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(Aggr(Sum(Amount), Country, Branch))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 05:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958409#M467910</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-13T05:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total in a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958410#M467911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 08:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total-in-a-straight-table/m-p/958410#M467911</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2015-10-13T08:28:49Z</dc:date>
    </item>
  </channel>
</rss>

