<?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: Calculating percentage of total by dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198095#M22618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might help explain it better. Check out the screenshot. I need that rev % number to be the percentage of 1,305 / (1305 + 1212). I have a line for every month, by city as well. This is just one line, breaking out brand vs. generic for one city for one month. I need this done on each line but I can't figure out how to format the formula to handle this. it has to be by both city and month.&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/141398_Capture.PNG" style="height: 53px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 15:16:44 GMT</pubDate>
    <dc:creator>remedibi</dc:creator>
    <dc:date>2016-10-20T15:16:44Z</dc:date>
    <item>
      <title>Calculating percentage of total by dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198092#M22615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out if I can do something in Qlik or if I have to do it at the SQL Server Database level via SQL code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I'm making a pivot table in Qlik Sense that shows revenue by month for some dimensions. What I'm trying to do, is create a % of Total Revenue column that will take the revenue for the dimension and then compare it against the total revenue for all dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for instance, if I have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Colors&amp;nbsp; | Revenue | % of Total Rev&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Blue&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; $10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10%&lt;/P&gt;&lt;P&gt;Red&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; $20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20%&lt;/P&gt;&lt;P&gt;Green&amp;nbsp; |&amp;nbsp; $70&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would want to see 10% total revenue next to blue, 20% total revenue next to red, and then 70% total revenue next to green. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is over simplifying it, but it's essentially the formula I'm trying to come up with. Comparing the total revenue of one slice of a dimension against the cumulative total of results under the same dimension (colors in the instance above.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 14:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198092#M22615</guid>
      <dc:creator>remedibi</dc:creator>
      <dc:date>2016-10-14T14:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage of total by dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198093#M22616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the total qualifier in your denominator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Revenue)/Sum(TOTAL Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 17:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198093#M22616</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T17:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage of total by dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198094#M22617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like it could work, but I'm having trouble making it work in a pivot table. I made a pivot table that is broken out as such...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rows: City, Month&lt;/P&gt;&lt;P&gt;Columns: Brand/Generic (drugs)&lt;/P&gt;&lt;P&gt;Measures: Sum Revenue, Rev %&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The revenue % is what I'm trying to get to work within the pivot table. I need it to give me the percentage revenue of the brand total vs. the total brand vs. generic by city and month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do this via the SQL, but I'm hoping to be able to do this in Qlik to make it easier to scale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help with this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 13:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198094#M22617</guid>
      <dc:creator>remedibi</dc:creator>
      <dc:date>2016-10-20T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage of total by dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198095#M22618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might help explain it better. Check out the screenshot. I need that rev % number to be the percentage of 1,305 / (1305 + 1212). I have a line for every month, by city as well. This is just one line, breaking out brand vs. generic for one city for one month. I need this done on each line but I can't figure out how to format the formula to handle this. it has to be by both city and month.&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/141398_Capture.PNG" style="height: 53px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 15:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198095#M22618</guid>
      <dc:creator>remedibi</dc:creator>
      <dc:date>2016-10-20T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage of total by dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198096#M22619</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Revenue)/Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&amp;lt;City, Month&amp;gt;&lt;/SPAN&gt; Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198096#M22619</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-20T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage of total by dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198097#M22620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be just this (Can't see the complete image, so not 100% sure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Revenue)/Sum(TOTAL &lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Month&amp;gt;&lt;/SPAN&gt; Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-percentage-of-total-by-dimension/m-p/1198097#M22620</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-20T16:44:51Z</dc:date>
    </item>
  </channel>
</rss>

