<?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: Re: Using set analysis to calculate percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706663#M475812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option using Set Analysis is the following:&lt;/P&gt;&lt;P&gt;Num(Sum({&amp;lt;[Year]={'2015'}&amp;gt;} [Sales]) - Sum({&amp;lt;[Year]={'2014'}&amp;gt;} [Sales])) / Sum({&amp;lt;[Year]={'2014'}&amp;gt;} [Sales])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 16:05:03 GMT</pubDate>
    <dc:creator>jcampbell</dc:creator>
    <dc:date>2015-10-20T16:05:03Z</dc:date>
    <item>
      <title>Using set analysis to calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706658#M475807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following dimension fields in a straight chart: project number, project name, allocation code, project type. I have expressions rowno() ,SUM(Amount) for 2011, 2012, 2013, and Year To Date totals. I need to create a percentage. There is an extra field, "business unit", required to create this percentage, but it is not used in the dimensions. The formula for the percentage should be " project total by business unit divided by the project total". I have tried using expressions like sum({$&amp;lt;business unit = business unit&amp;gt;}Amount)/SUM({$&amp;lt;project=project&amp;gt;}Amount) which gives me 0s down the board. I have tried aggr(SUM({$}amount),businessunit)/aggr(SUM({$}amount),project) * .01. This produces dahes "-" down the board. I am at a standstill. I am sure somebody has done this before but I am not choosing the correct search criteria for this site. Any assistance is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706658#M475807</guid>
      <dc:creator />
      <dc:date>2014-07-03T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706659#M475808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The formula for the percentage should b&lt;/SPAN&gt;e " project total by business unit divided by the project total"&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That sounds like &lt;EM&gt;sum(total &amp;lt;[business unit]&amp;gt; amount)/sum(total amount)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, please post a sample document with some data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706659#M475808</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-03T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706660#M475809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I understand what you're after. Project and&amp;nbsp; Business Unit needs to be Dimensions and the following your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(Sum(Amount)/Sum(total &amp;lt;[business unit]&amp;gt; Amount),'#0.0%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you share your data / application I can confirm / create an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706660#M475809</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2014-07-03T13:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706661#M475810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert, Shane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. I had to pare down my file to fit within company e-mail attachment standards. I have it attached. After this question is answered I will be able to post another question concerning this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706661#M475810</guid>
      <dc:creator />
      <dc:date>2014-07-03T15:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using set analysis to calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706662#M475811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a look at the pivot table and straight table I have created as examples on Sheet1. I think this is what you are after, if not please elaborate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 07:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706662#M475811</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2014-07-04T07:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using set analysis to calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706663#M475812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option using Set Analysis is the following:&lt;/P&gt;&lt;P&gt;Num(Sum({&amp;lt;[Year]={'2015'}&amp;gt;} [Sales]) - Sum({&amp;lt;[Year]={'2014'}&amp;gt;} [Sales])) / Sum({&amp;lt;[Year]={'2014'}&amp;gt;} [Sales])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 16:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-to-calculate-percentage/m-p/706663#M475812</guid>
      <dc:creator>jcampbell</dc:creator>
      <dc:date>2015-10-20T16:05:03Z</dc:date>
    </item>
  </channel>
</rss>

