<?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: Alternatives to using relative % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternatives-to-using-relative/m-p/1362928#M417490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that there is a difference between&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Sales)/Sum($(vCostOfSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Sales/$(vCostOfSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172715_Capture.PNG" style="height: auto;" /&gt;\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how there value differ. So when you use this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(TOTAL Sales/$(vCostOfSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The denominator = 16.5033 vs. 22.84 you are looking to get....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way is to use your second alternative here....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(sum(Sales)/sum($(vCostOfSales)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(sum(Total aggr(sum(Sales)/sum($(vCostOfSales)),YM)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2017 01:01:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-08T01:01:13Z</dc:date>
    <item>
      <title>Alternatives to using relative %</title>
      <link>https://community.qlik.com/t5/QlikView/Alternatives-to-using-relative/m-p/1362927#M417489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to develop alternatives to using a relative percentage where the expression is more complicated than e.g. sum(sales) which could then be done as sum(Sales).&amp;nbsp; I've attached some scenarios where I'm trying to calculate the relative % of sum(sales)/sum(cost of sales) and match this to the values generated by Qlikview's relative %.&amp;nbsp; The solutions I've come up with thus far though are a little complicated and some require aggr which I'd prefer to avoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My "Simulated 1" in the attached is the most simple &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum(Sales)/sum(CostOfSales)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum(Total Sales / CostOfSales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But it seems to become difficult to maintain if using a more complicated variable instead of the field (as shown in second chart).&amp;nbsp; Is there some simple way of doing this that I'm missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Test23.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172707_Test23.png" style="height: 285px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 21:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternatives-to-using-relative/m-p/1362927#M417489</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2017-08-07T21:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alternatives to using relative %</title>
      <link>https://community.qlik.com/t5/QlikView/Alternatives-to-using-relative/m-p/1362928#M417490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that there is a difference between&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Sales)/Sum($(vCostOfSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Sales/$(vCostOfSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172715_Capture.PNG" style="height: auto;" /&gt;\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how there value differ. So when you use this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(TOTAL Sales/$(vCostOfSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The denominator = 16.5033 vs. 22.84 you are looking to get....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way is to use your second alternative here....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(sum(Sales)/sum($(vCostOfSales)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(sum(Total aggr(sum(Sales)/sum($(vCostOfSales)),YM)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 01:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternatives-to-using-relative/m-p/1362928#M417490</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-08T01:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alternatives to using relative %</title>
      <link>https://community.qlik.com/t5/QlikView/Alternatives-to-using-relative/m-p/1362929#M417491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; I've gone with the second alternative in my charts.&amp;nbsp; This is actually for a Qliksense implementation which, very frustratingly, doesn't have an option for relative percentage.&amp;nbsp; The performance doesn't seem too bad at least.&amp;nbsp; Thanks for the advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 06:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternatives-to-using-relative/m-p/1362929#M417491</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2017-08-16T06:16:27Z</dc:date>
    </item>
  </channel>
</rss>

