<?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: Expression (Average) that calculates based on selected/filtered value as well as other peer groups which the selection belongs to in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450688#M97952</link>
    <description>&lt;P&gt;If i may add an additional complexity,&lt;/P&gt;
&lt;P&gt;if the table is as per below where John now belongs to two different Class. When using the formula, i get a null value. i assume this is due grouping by 2 Class "&lt;SPAN&gt;aggr(nodistinct Avg({&amp;lt;Name=&amp;gt;}Grade),Class)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="319px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl64" style="height: 15.0pt; width: 48pt;"&gt;Name&lt;/TD&gt;
&lt;TD width="64.375px" class="xl64" style="border-left: none; width: 48pt;"&gt;Gender&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl64" style="border-left: none; width: 48pt;"&gt;Class&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl64" style="border-left: none; width: 48pt;"&gt;Subject&lt;/TD&gt;
&lt;TD width="62.3906px" class="xl64" style="border-left: none; width: 48pt;"&gt;Grade&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I i would like to get a value based on both class that John belongs to, is it possible? &lt;SPAN&gt;&lt;STRONG&gt;Overall average grade by Class&lt;/STRONG&gt; for John would be :&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Average(5, 4, 3, 2, 4, 5, 3, 3, 4, 4, 4, 5) =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;3.75.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This average includes scores for John (both classes A1 and A3) as well as other scores for class A1 and A3.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 09:29:20 GMT</pubDate>
    <dc:creator>sbfernandes</dc:creator>
    <dc:date>2024-05-09T09:29:20Z</dc:date>
    <item>
      <title>Expression (Average) that calculates based on selected/filtered value as well as other peer groups which the selection belongs to</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450300#M97916</link>
      <description>&lt;P&gt;Greetings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the below data:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl64" style="height: 15.0pt; width: 48pt;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl64" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Gender&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl64" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Class&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl64" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Subject&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" class="xl64" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Grade&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;John&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;John&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;John&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;John&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Jane&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Jane&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Jane&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Jane&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Joe&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Joe&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Joe&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Joe&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Janice&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Janice&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Janice&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="61.5px" height="15px" class="xl63" style="height: 15.0pt; border-top: none;"&gt;&lt;STRONG&gt;Janice&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="67.0156px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="60.1719px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="68.7969px" height="15px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="61.5156px" height="15px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create a Table chart that will display the Average Grade by Person Name. In addition, for that person it will also display the average Grade by gender as well as Class.&lt;/P&gt;
&lt;P&gt;Output chart with Average values is as per below:&lt;/P&gt;
&lt;TABLE width="601px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="63.9688px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="126.828px"&gt;&lt;STRONG&gt;Average Grade&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="211.562px"&gt;&lt;STRONG&gt;Overall average grade by gender&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="197.641px"&gt;&lt;STRONG&gt;Overall average grade by Class&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9688px"&gt;&lt;STRONG&gt;John&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="126.828px"&gt;3.5&lt;/TD&gt;
&lt;TD width="211.562px"&gt;3.125&lt;/TD&gt;
&lt;TD width="197.641px"&gt;3.625&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9688px"&gt;&lt;STRONG&gt;Jane&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="126.828px"&gt;3.75&lt;/TD&gt;
&lt;TD width="211.562px"&gt;3.000&lt;/TD&gt;
&lt;TD width="197.641px"&gt;3.625&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9688px"&gt;&lt;STRONG&gt;Joe&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="126.828px"&gt;2.75&lt;/TD&gt;
&lt;TD width="211.562px"&gt;3.125&lt;/TD&gt;
&lt;TD width="197.641px"&gt;2.500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9688px"&gt;&lt;STRONG&gt;Janice&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="126.828px"&gt;2.25&lt;/TD&gt;
&lt;TD width="211.562px"&gt;3.000&lt;/TD&gt;
&lt;TD width="197.641px"&gt;2.500&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Eg: &lt;STRONG&gt;Overall average grade by gender&lt;/STRONG&gt; will consider &lt;STRONG&gt;John&lt;/STRONG&gt;'s grade as well as all grades that match his gender. So &lt;STRONG&gt;Overall average grade by gender&amp;nbsp;&lt;/STRONG&gt;for John = Average(5, 4, 3, 2, 4, 1, 4, 2) = 3.125&lt;/P&gt;
&lt;P&gt;Further if user selects a name say &lt;STRONG&gt;John&lt;/STRONG&gt;, the output should be as per below:&lt;/P&gt;
&lt;TABLE width="601px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="63.9375px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="126.828px"&gt;Average Grade&lt;/TD&gt;
&lt;TD width="211.578px"&gt;Overall average grade by gender&lt;/TD&gt;
&lt;TD width="197.656px"&gt;Overall average grade by Class&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9375px"&gt;John&lt;/TD&gt;
&lt;TD width="126.828px"&gt;3.5&lt;/TD&gt;
&lt;TD width="211.578px"&gt;3.125&lt;/TD&gt;
&lt;TD width="197.656px"&gt;3.625&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thus far, i have not been able to get the correct expression for the last 2 expressions.&lt;/P&gt;
&lt;P&gt;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 12:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450300#M97916</guid>
      <dc:creator>sbfernandes</dc:creator>
      <dc:date>2024-05-08T12:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression (Average) that calculates based on selected/filtered value as well as other peer groups which the selection belongs to</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450374#M97922</link>
      <description>&lt;P&gt;to get the first table with the 3 expressions, you must be agregating your data to come up with the last 2 expressions with something like this:&lt;BR /&gt;&lt;BR /&gt;aggr(nodistinct Avg(Grade),Gender)&lt;BR /&gt;aggr(nodistinct Avg(Grade),Class)&lt;BR /&gt;&lt;BR /&gt;to keep the correct averages by class and gender regardless of what name is selected, add set analysis ignoring the selection:&lt;BR /&gt;&lt;BR /&gt;aggr(nodistinct Avg({&amp;lt;Name=&amp;gt;}Grade),Gender)&lt;BR /&gt;aggr(nodistinct Avg({&amp;lt;Name=&amp;gt;}Grade),Class)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 14:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450374#M97922</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2024-05-08T14:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression (Average) that calculates based on selected/filtered value as well as other peer groups which the selection belongs to</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450672#M97949</link>
      <description>&lt;P&gt;Many thanks for this.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 09:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450672#M97949</guid>
      <dc:creator>sbfernandes</dc:creator>
      <dc:date>2024-05-09T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression (Average) that calculates based on selected/filtered value as well as other peer groups which the selection belongs to</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450688#M97952</link>
      <description>&lt;P&gt;If i may add an additional complexity,&lt;/P&gt;
&lt;P&gt;if the table is as per below where John now belongs to two different Class. When using the formula, i get a null value. i assume this is due grouping by 2 Class "&lt;SPAN&gt;aggr(nodistinct Avg({&amp;lt;Name=&amp;gt;}Grade),Class)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="319px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl64" style="height: 15.0pt; width: 48pt;"&gt;Name&lt;/TD&gt;
&lt;TD width="64.375px" class="xl64" style="border-left: none; width: 48pt;"&gt;Gender&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl64" style="border-left: none; width: 48pt;"&gt;Class&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl64" style="border-left: none; width: 48pt;"&gt;Subject&lt;/TD&gt;
&lt;TD width="62.3906px" class="xl64" style="border-left: none; width: 48pt;"&gt;Grade&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Jane&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A1&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Joe&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Janice&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A2&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Math&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Science&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;French&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="62.7188px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;John&lt;/TD&gt;
&lt;TD width="64.375px" class="xl63" style="border-top: none; border-left: none;"&gt;M&lt;/TD&gt;
&lt;TD width="61.5312px" class="xl63" style="border-top: none; border-left: none;"&gt;A3&lt;/TD&gt;
&lt;TD width="67.9844px" class="xl63" style="border-top: none; border-left: none;"&gt;Misc&lt;/TD&gt;
&lt;TD width="62.3906px" align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I i would like to get a value based on both class that John belongs to, is it possible? &lt;SPAN&gt;&lt;STRONG&gt;Overall average grade by Class&lt;/STRONG&gt; for John would be :&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Average(5, 4, 3, 2, 4, 5, 3, 3, 4, 4, 4, 5) =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;3.75.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This average includes scores for John (both classes A1 and A3) as well as other scores for class A1 and A3.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 09:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Average-that-calculates-based-on-selected-filtered/m-p/2450688#M97952</guid>
      <dc:creator>sbfernandes</dc:creator>
      <dc:date>2024-05-09T09:29:20Z</dc:date>
    </item>
  </channel>
</rss>

