<?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: Percentage issue.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542433#M1125939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TOTAL keyword gives the total for that sum (or any aggregation) regardless of the dimension.&amp;nbsp; This means you are dividing the Demand for one row by the total demand for all rows (and on the total row it is the Total divided by itself - i.e. 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a new expression with just &lt;STRONG&gt;sum(TOTAL Demand)&lt;/STRONG&gt; in it you will see it has the same value on every row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jan 2014 19:58:01 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2014-01-01T19:58:01Z</dc:date>
    <item>
      <title>Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542426#M1125920</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;PFA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here calculating &lt;STRONG&gt;Actual vs Demand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AD %age= Demand/Actual..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 16:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542426#M1125920</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2014-01-01T16:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542427#M1125922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Total sum it Should be 100% &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 16:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542427#M1125922</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2014-01-01T16:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542428#M1125925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This.... and it cant be 100% as Actual and Demand is not equal.&lt;/P&gt;&lt;P&gt;AD % age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alt(SUM(Demand)/SUM(Actual),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 17:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542428#M1125925</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-01T17:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542429#M1125926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should always use aggregations in expressions, so I would expect the expression to read like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Demand)/sum(Actual)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only time you wouldn't do this if if you were referencing prior columns, eg.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Actual Demand] / [Monthly Coverage]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the aggregations are done in the other columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what you mean by the total should be 100% - as each row is independent of the others.&amp;nbsp; To get the contribution of the demand to the whole you could add an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Demand) / sum(TOTAL Demand)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will divide the value on each row by the total across all rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 17:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542429#M1125926</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-01-01T17:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542430#M1125930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are saying Demand/Actual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should it be SUM(Demand)/SUM(Actual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 17:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542430#M1125930</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-01-01T17:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542431#M1125933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum(Demand) / sum(TOTAL Demand)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;it's show perfect 100% of the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why are You using (TOTAL) Function here...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 17:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542431#M1125933</guid>
      <dc:creator>paulwalker</dc:creator>
      <dc:date>2014-01-01T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542432#M1125936</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;If we are using Total Keyword then It will consider Entire set for that Field &amp;amp; show the result.&lt;/P&gt;&lt;P&gt;Formula should be &lt;/P&gt;&lt;P&gt;SUM(Demand)/SUM(Actual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 18:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542432#M1125936</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2014-01-01T18:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage issue..</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542433#M1125939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TOTAL keyword gives the total for that sum (or any aggregation) regardless of the dimension.&amp;nbsp; This means you are dividing the Demand for one row by the total demand for all rows (and on the total row it is the Total divided by itself - i.e. 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a new expression with just &lt;STRONG&gt;sum(TOTAL Demand)&lt;/STRONG&gt; in it you will see it has the same value on every row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 19:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-issue/m-p/542433#M1125939</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-01-01T19:58:01Z</dc:date>
    </item>
  </channel>
</rss>

