<?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: Calculation using sum of rows in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-using-sum-of-rows-in-straight-table/m-p/1214021#M873095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this for % Delivered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 28.6924px;"&gt;sum(order_delivered)/sum(total orders)&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: 28.6924px;"&gt;&lt;BR /&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: 28.6924px;"&gt;And then give relative&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2016 16:51:12 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2016-11-08T16:51:12Z</dc:date>
    <item>
      <title>Calculation using sum of rows in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-using-sum-of-rows-in-straight-table/m-p/1214019#M873093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following straight table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 370px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="77"&gt;Area &lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="90"&gt;Vehicle&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="139"&gt;Deliveries&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Orders&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;2337&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;1285&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR12&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR13&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;48&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR14&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;115&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;94&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR15&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;538&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;418&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR16&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;136&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;128&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR17&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR18&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;88&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR19&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;140&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR20&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;41&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR21&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1099&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;432&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR22&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR23&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;37&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;CoR24&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;11&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;For each area, i have Deliveries and orders rexpectively. i have to calculate another column which gives % delivered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formula for that is [Deliveries value of each vehicle] divided by the total value 2337. this total is not the expression total. it is the sum of all rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg. my first column calculation is 30/2337 = 1.28%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calculation for deliveries is sum(order_delivered)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;required output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 524px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="77"&gt;Area &lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="90"&gt;Vehicle&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="139"&gt;Deliveries&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Orders&lt;/TD&gt;&lt;TD class="xl70" style="border-left: none;" width="154"&gt; % Delivered&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;2337&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;1285&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR12&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;29&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR13&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;48&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;1.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR14&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;115&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;94&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;2.40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR15&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;538&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;418&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;4.68&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR16&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;136&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;128&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;0.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR17&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;0.02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR18&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;88&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;29.33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR19&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;140&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;93&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;1.59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR20&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;41&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;0.29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR21&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;1099&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;432&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;26.80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR22&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR23&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;37&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;7.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;Aberdeen&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;CoR24&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;0.27&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so, can someone please help me with expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried using Total &amp;amp; All function, but it is not giving the sum of rows value. it is giving expression total of that column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-using-sum-of-rows-in-straight-table/m-p/1214019#M873093</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation using sum of rows in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-using-sum-of-rows-in-straight-table/m-p/1214020#M873094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;calculation is&lt;/P&gt;&lt;P&gt;sum(TOTAL Aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;order_delivered),Area, Vehicle))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-using-sum-of-rows-in-straight-table/m-p/1214020#M873094</guid>
      <dc:creator />
      <dc:date>2016-11-08T16:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation using sum of rows in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-using-sum-of-rows-in-straight-table/m-p/1214021#M873095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this for % Delivered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 28.6924px;"&gt;sum(order_delivered)/sum(total orders)&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: 28.6924px;"&gt;&lt;BR /&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: 28.6924px;"&gt;And then give relative&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-using-sum-of-rows-in-straight-table/m-p/1214021#M873095</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-08T16:51:12Z</dc:date>
    </item>
  </channel>
</rss>

