<?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: Sub total issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485173#M181234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no it should have&amp;nbsp; expression cost this year/total cost this year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 10:51:02 GMT</pubDate>
    <dc:creator>mohamed_ahid</dc:creator>
    <dc:date>2013-07-16T10:51:02Z</dc:date>
    <item>
      <title>Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485169#M181230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every body,&lt;/P&gt;&lt;P&gt;I'm working on a pivot table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 560px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" width="80"&gt;Level&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;" width="80"&gt;Canal&lt;/TD&gt;&lt;TD width="80"&gt;&lt;SPAN style="color: #ff0000;"&gt;Cost this year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="80"&gt;&lt;SPAN style="color: #ff0000;"&gt;Cost last year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="80"&gt;&lt;SPAN style="color: #ff0000;"&gt;Weignt&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="34" rowspan="2" style="border-bottom: white 0.5pt solid; border-top: medium none;" width="80"&gt;RENAGEL&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="80"&gt;HP&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="80"&gt;4865&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="80"&gt;5641,65&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="80"&gt;46.22%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-left: medium none; border-top: medium none;" width="80"&gt;MT&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="80"&gt;3506&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="80"&gt;5641,65&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="80"&gt;33.31%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="34" rowspan="2" style="border-bottom: white 0.5pt solid; border-top: medium none;" width="80"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="80"&gt;GP&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="80"&gt;2154&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="80"&gt;1927,8&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="80"&gt;20;46%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-left: medium none; border-top: medium none;" width="80"&gt;Total &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="80"&gt;10525&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="80"&gt;1927,8&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="80"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for facts columns i used this formulas :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cost this year :&lt;/STRONG&gt; set analysis over Cost column using a varibles which returns this year number :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;P&gt;=sum({&amp;lt;Level={'level1'},Year={$(=year_n)}&amp;gt;}cost)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Cost last year : &lt;/STRONG&gt;same thing this the formula :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿=sum({&amp;lt;Level={'level1'},Year={$(=year_n-1)}&amp;gt;}cost) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;my question is what is the formula to calculate weight like in the&amp;nbsp; table ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;exmple : 46.22%=(4865/10525)*100&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485169#M181230</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2013-07-16T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485170#M181231</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;num(sum(Cost)/sum(total Cost), '#,##0%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485170#M181231</guid>
      <dc:creator />
      <dc:date>2013-07-16T10:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485171#M181232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your [Weignt] column should have expression &lt;STRONG&gt;Num([Cost this year]/[Cost last year],'#,###.00%')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485171#M181232</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-07-16T10:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485172#M181233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx for your answer but this will not work, i tried it before .&lt;/P&gt;&lt;P&gt;because i need to calculat sum(total cost) for this year.&lt;/P&gt;&lt;P&gt;see formulas above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485172#M181233</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2013-07-16T10:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485173#M181234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no it should have&amp;nbsp; expression cost this year/total cost this year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 10:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485173#M181234</guid>
      <dc:creator>mohamed_ahid</dc:creator>
      <dc:date>2013-07-16T10:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485174#M181235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u post ur qvw file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it would be great. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 11:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485174#M181235</guid>
      <dc:creator />
      <dc:date>2013-07-16T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485175#M181236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0e2233; font-family: 'Open Sans', arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt;(Sales&lt;/SPAN&gt;&lt;SUB style="font-family: 'Open Sans', arial, sans-serif; color: #0e2233; background-color: #ffffff;"&gt;this year&lt;/SUB&gt;&lt;SPAN style="color: #0e2233; font-family: 'Open Sans', arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt; - Sales&lt;/SPAN&gt;&lt;SUB style="font-family: 'Open Sans', arial, sans-serif; color: #0e2233; background-color: #ffffff;"&gt;last year&lt;/SUB&gt;&lt;SPAN style="color: #0e2233; font-family: 'Open Sans', arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt;) / Sales&lt;/SPAN&gt;&lt;SUB style="font-family: 'Open Sans', arial, sans-serif; color: #0e2233; background-color: #ffffff;"&gt;last year&lt;/SUB&gt;&lt;SPAN style="color: #0e2233; font-family: 'Open Sans', arial, sans-serif; font-size: 14px; background-color: #ffffff;"&gt; * 100&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485175#M181236</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2013-07-16T12:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485176#M181237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;100-(&lt;SPAN style="color: #ff0000; font-family: Arial; background-color: #ffffff;"&gt;Cost last year&lt;/SPAN&gt;/&lt;SPAN style="color: #ff0000; font-family: Arial; background-color: #ffffff;"&gt;Cost last year&lt;/SPAN&gt;%)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485176#M181237</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2013-07-16T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485177#M181238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485177#M181238</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2013-07-16T12:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485178#M181239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't to try like (Column(3)/Column(4))*100 in your expression weight?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here Column(3) is "Cost is this year" and Column(4) is "Cost last year".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 12:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485178#M181239</guid>
      <dc:creator />
      <dc:date>2013-07-16T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total issue</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485179#M181240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see assumed answered, but had one more neat trick to contribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make another column with the same expression, then check the 'relative' box and set totals mode to 'expression totals' for that expression.&amp;nbsp; (These options are on the expressions tab.).&amp;nbsp; That's if you want one column for the counts and one for the percentages.&amp;nbsp; You could just check the relative box on the expression you have to make it go to percentages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 14:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-total-issue/m-p/485179#M181240</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2013-07-16T14:30:25Z</dc:date>
    </item>
  </channel>
</rss>

