<?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 Problem: Total number in a selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550219#M1126990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing a QV document that, among other things, are going to calculate average absence data for a number of schools per Term.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to divide the number of days absent (column C)&amp;nbsp; on the number of students in the current selection (column A). However, I can't just divide the data for absence code GFE on the number of students with the absence code GFE, I have to divide it on the total number of students in the current selection in the school. That is, for school X I have to divide the different numbers in column C on the total 1, and for school Y I have to divide the numbers on total 68.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't divide on the number of students at the school, because not everyone is registered at each term. I have to have an expression that divides on the total number of students in the current selection at each school. Ie 505 for School X, and 68 for school Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Number of days absent: sum(Sessions)&lt;/P&gt;&lt;P&gt;Expression for Average: (Sum(Sessions))/count(total{$}PersonCounter)&lt;/P&gt;&lt;P&gt;Expression for number of students: sum(PersonCounter)&lt;/P&gt;&lt;P&gt;Expression for number of students at the school: sum(OrgPersonCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify: I need an expression that will calculate the GFE for School X to be 0,97 (488 number of days absent/505 total number of students in the selection for school X).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Joachim Hollekim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jan 2014 14:44:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-03T14:44:52Z</dc:date>
    <item>
      <title>Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550219#M1126990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing a QV document that, among other things, are going to calculate average absence data for a number of schools per Term.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to divide the number of days absent (column C)&amp;nbsp; on the number of students in the current selection (column A). However, I can't just divide the data for absence code GFE on the number of students with the absence code GFE, I have to divide it on the total number of students in the current selection in the school. That is, for school X I have to divide the different numbers in column C on the total 1, and for school Y I have to divide the numbers on total 68.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't divide on the number of students at the school, because not everyone is registered at each term. I have to have an expression that divides on the total number of students in the current selection at each school. Ie 505 for School X, and 68 for school Y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Number of days absent: sum(Sessions)&lt;/P&gt;&lt;P&gt;Expression for Average: (Sum(Sessions))/count(total{$}PersonCounter)&lt;/P&gt;&lt;P&gt;Expression for number of students: sum(PersonCounter)&lt;/P&gt;&lt;P&gt;Expression for number of students at the school: sum(OrgPersonCount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify: I need an expression that will calculate the GFE for School X to be 0,97 (488 number of days absent/505 total number of students in the selection for school X).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Joachim Hollekim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 14:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550219#M1126990</guid>
      <dc:creator />
      <dc:date>2014-01-03T14:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550220#M1126991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you share part of the Application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 14:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550220#M1126991</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-01-03T14:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550221#M1126992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I fully understood, a sample application with your expected results may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look into using TOTAL with a field list, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(&lt;STRONG&gt;TOTAL&amp;lt;Organization&amp;gt;&lt;/STRONG&gt; PersonCounter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 14:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550221#M1126992</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-03T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550222#M1126993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550222#M1126993</guid>
      <dc:creator />
      <dc:date>2014-01-03T15:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550223#M1126994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that did not work. &lt;IMG alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/51036_Capture.JPG.jpg" style="width: 620px; height: 230px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550223#M1126994</guid>
      <dc:creator />
      <dc:date>2014-01-03T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550224#M1126995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the qvw you are working on, or a reduced data version of it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550224#M1126995</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-01-03T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550225#M1126997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. I have attached an example to my original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550225#M1126997</guid>
      <dc:creator />
      <dc:date>2014-01-03T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550226#M1127000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as expression for the average: Sum(Sessions)/sum(total &amp;lt;OrganisationTitle&amp;gt; PersonCounter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550226#M1127000</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-03T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550227#M1127005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the correct field name for your dimension Organization:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(total&amp;lt;[OrganisationTitle]&amp;gt;&amp;nbsp; PersonCounter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550227#M1127005</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-03T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: Total number in a selection</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550228#M1127008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did it! Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 15:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-Total-number-in-a-selection/m-p/550228#M1127008</guid>
      <dc:creator />
      <dc:date>2014-01-03T15:25:33Z</dc:date>
    </item>
  </channel>
</rss>

