<?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 Values Ignoring Certain Selections / Subsets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734800#M1084385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I totally understand but if you want a total by company and course you just need to use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;sum(TOTAL &amp;lt;Company, Course&amp;gt; People)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Read "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;TOTAL &amp;lt;Company, Course&amp;gt;&lt;/SPAN&gt;" as group by sums of people BY Company and Course.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;{$&amp;lt;Company=&amp;gt;}&lt;/SPAN&gt; - you need to do that only if you want to disregard what users select in your company list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 16:28:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-24T16:28:55Z</dc:date>
    <item>
      <title>Calculating Values Ignoring Certain Selections / Subsets</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734797#M1084382</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;First things first, please be nice as I've very new to QlikView and struggling with what others probably consider basic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said I need some help working out some percentages... I have a very large data set which I want to create a summary table for; the user will make selections on different dimensions in the data set and summary results will be shown in the summary table.&amp;nbsp; I want to show a percentage for certain values against the larger data set, however when I try to do this I can't figure out how to calculate the percentage to ignore some of the selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help explain better I've produced a dummy data set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The left half of the picture is the raw data, the right hand side is the summary table I'm trying to calculate.&amp;nbsp; Imaging a user has selected Company A and Engineering from the relevant dimension boxes.&amp;nbsp; I therefore want to calculate the people in each of the sectors as a percentage of engineering and also as a percentage of company A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate the People column I'm using an expression =sum(People)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the total population belonging to Company A I think I use =sum(TOTAL &amp;lt;Company&amp;gt; People)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm stumped on how to work out the number of people in the total population belonging to Company A AND Engineering&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/61076_Capture.PNG" style="width: 620px; height: 259px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOhn &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 11:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734797#M1084382</guid>
      <dc:creator />
      <dc:date>2014-06-24T11:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Values Ignoring Certain Selections / Subsets</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734798#M1084383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use Company and Course as your dimensions in your chart, QV will slice data for you and break them by these dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get specific number for company A and course = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Engineering&lt;/SPAN&gt;, you would need to use set analysis expressions which you would need to master. There are a lot of examples and tutorials out there on this subject. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically if you create a text box on a side in QV and type this expression below, it would give you number of people just for Company A and Engineering:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= SUM ( {$&amp;lt;Company={'CompanyA'},Course={'Engineering'} &amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;People&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also override user selections using set analysis or you can reset user selections. For example, if in your chart you would use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;sum(TOTAL &amp;lt;Company&amp;gt; People)&lt;/SPAN&gt; and user will select CompanyA and CompanyB, your chart will show just these 2 companies. BUT if your expression will be written like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;sum(TOTAL &amp;lt;Company&amp;gt; {$&amp;lt;Company=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;People)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;it would show all companies still even if user decided not to see all of them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;Hope if makes sense&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734798#M1084383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Values Ignoring Certain Selections / Subsets</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734799#M1084384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Borys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help so far, what you have said makes sense but the problem I have is the size of my data set; I have 200 companies and 12 possible courses so i cannot write down every comobination.&amp;nbsp; The code you suggested to put in the text box worked but I need to put this in the table. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/61084_Capture.PNG" style="width: 620px; height: 170px;" /&gt;&lt;/P&gt;&lt;P&gt;I have added your formula into an expression in my table to give the sum of people by company.&amp;nbsp; What I need to know is how to do an intersection on two dimensions (in this case Company and Course) to get the total people in engineering and company A - i.e. where the ???? are in the image&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I plan on using these numbers to calculate percentages of people employed in each discipline and then create a ranking function to priotitise them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I can't share the main worksheet with teh 200+ companies in it as there is proprietary info there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 15:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734799#M1084384</guid>
      <dc:creator />
      <dc:date>2014-06-24T15:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Values Ignoring Certain Selections / Subsets</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734800#M1084385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I totally understand but if you want a total by company and course you just need to use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;sum(TOTAL &amp;lt;Company, Course&amp;gt; People)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Read "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;TOTAL &amp;lt;Company, Course&amp;gt;&lt;/SPAN&gt;" as group by sums of people BY Company and Course.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;{$&amp;lt;Company=&amp;gt;}&lt;/SPAN&gt; - you need to do that only if you want to disregard what users select in your company list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 16:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734800#M1084385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T16:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Values Ignoring Certain Selections / Subsets</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734801#M1084386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you!!!&lt;/P&gt;&lt;P&gt;As ever the answer is generally straight forward once you see it!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 16:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734801#M1084386</guid>
      <dc:creator />
      <dc:date>2014-06-24T16:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Values Ignoring Certain Selections / Subsets</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734802#M1084387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad I was able to help and yes the devil in the details &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW you mentioned ranking - look up RANK function in QV help file, it might do exactly what you need (or not). Once you have you SUM expression working, you can use RANK function around it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 16:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734802#M1084387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-24T16:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Values Ignoring Certain Selections / Subsets</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734803#M1084388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is there any possible way to achieve the above task using aggr(). I have included the expression below...Will the below expression work ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr({1}sum(People),Company)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 05:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Values-Ignoring-Certain-Selections-Subsets/m-p/734803#M1084388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-26T05:56:00Z</dc:date>
    </item>
  </channel>
</rss>

