<?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 in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993708#M1233114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum([Number of invoices] &amp;amp; Company)/Sum(Total &amp;lt;Company&amp;gt; [Number of invoices] &amp;amp; Company)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105453_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2015 14:16:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-11-13T14:16:42Z</dc:date>
    <item>
      <title>Total in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993707#M1233109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, QV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one problem that I don't know he solution.&lt;/P&gt;&lt;P&gt;I am seeing if you can figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this dataset. I have information of number of invoices for every category and company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="294"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Company&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Categories&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;No. of invoices&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Intercompany&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;42787&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Scanned&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;17894&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1100&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Emailed PDF&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3773&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1100&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Scanned&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;12608&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;I want to know e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;How many invoices in percentage are scanned for company 1000 of total invoices for company 1000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The answer I am looking for is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Scanned Invoices for company 1000/ Total Invoices for company 1000 = 17894/60681 = 29,4%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use this formula: =Sum([Number of invoices])/Sum(Total [Number of invoices])&lt;/P&gt;&lt;P&gt;But it does not give me the right answer because in the formula: &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Total [Number of invoices]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I get all the invoices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993707#M1233109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Total in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993708#M1233114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum([Number of invoices] &amp;amp; Company)/Sum(Total &amp;lt;Company&amp;gt; [Number of invoices] &amp;amp; Company)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105453_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993708#M1233114</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-13T14:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Total in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993709#M1233118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum([Number of invoices])/Sum(Total &amp;lt;Company&amp;gt;[Number of invoices] )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993709#M1233118</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-13T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Total in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993710#M1233120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to specify the company dimension in your TOTAL expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt; Sum([Number of invoices])/Sum(Total &amp;lt;Company&amp;gt; [Number of invoices])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use this in a chart with Company as a dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993710#M1233120</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-11-13T14:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Total in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993711#M1233122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace&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;&lt;EM&gt;Sum([Number of invoices])/Sum(Total [Number of invoices])&lt;/EM&gt;&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;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&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;with&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;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum([Number of invoices])/Sum(Total&amp;nbsp; &lt;STRONG&gt;&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Company&lt;/SPAN&gt;&amp;gt;&lt;/STRONG&gt; [Number of invoices])&lt;/EM&gt;&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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;because you want the total at the Company level&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-an-expression/m-p/993711#M1233122</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-13T14:25:03Z</dc:date>
    </item>
  </channel>
</rss>

