<?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 Calculating Averages without including NA in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Averages-without-including-NA/m-p/922976#M986818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently i have this table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table.PNG" class="jive-image image-1" height="254" src="https://community.qlik.com/legacyfs/online/94625_Table.PNG" style="height: 254px; width: 764.466019417476px;" width="764" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, my dimensions are Questions and Rotation.&lt;/P&gt;&lt;P&gt;The set analysis below is my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;=Avg({&amp;lt;[Rotation],Questions={'Q1','Q2','Q3','Q4','Q5','Q6','Q7','Q8','Q9','Q10','Q11','Q12','Q13','Q14','Q15','Q16','Q17','Q18','Q19','Q20','Q21','Q22','Q23','Q24','Q25','Q26'}&amp;gt;}Aggr(((SUM(Data)/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;COUNT({&amp;lt;Data-={"NA"}&amp;gt;}Rotation)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;, Questions,Rotation))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By checking the box to show partial sums for both dimensions, i will get&amp;nbsp; "Rotation on Avg Score" and the last row, as the Program Average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the result is not exactly how i want it. &lt;STRONG&gt;NA&lt;/STRONG&gt; represents empty and this calculation takes an average of all including &lt;STRONG&gt;NA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example, Q9's program average should be 5.13 and not 1.28.&lt;/P&gt;&lt;P&gt;I understand that the problem lies with the set analysis where i declare &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Questions={'Q1',........,'Q26'} .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I was looking into dynamic set analysis which could work but need some guidance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 01:51:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-31T01:51:28Z</dc:date>
    <item>
      <title>Calculating Averages without including NA</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Averages-without-including-NA/m-p/922976#M986818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently i have this table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table.PNG" class="jive-image image-1" height="254" src="https://community.qlik.com/legacyfs/online/94625_Table.PNG" style="height: 254px; width: 764.466019417476px;" width="764" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, my dimensions are Questions and Rotation.&lt;/P&gt;&lt;P&gt;The set analysis below is my expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;=Avg({&amp;lt;[Rotation],Questions={'Q1','Q2','Q3','Q4','Q5','Q6','Q7','Q8','Q9','Q10','Q11','Q12','Q13','Q14','Q15','Q16','Q17','Q18','Q19','Q20','Q21','Q22','Q23','Q24','Q25','Q26'}&amp;gt;}Aggr(((SUM(Data)/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;COUNT({&amp;lt;Data-={"NA"}&amp;gt;}Rotation)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;, Questions,Rotation))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By checking the box to show partial sums for both dimensions, i will get&amp;nbsp; "Rotation on Avg Score" and the last row, as the Program Average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the result is not exactly how i want it. &lt;STRONG&gt;NA&lt;/STRONG&gt; represents empty and this calculation takes an average of all including &lt;STRONG&gt;NA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example, Q9's program average should be 5.13 and not 1.28.&lt;/P&gt;&lt;P&gt;I understand that the problem lies with the set analysis where i declare &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Questions={'Q1',........,'Q26'} .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I was looking into dynamic set analysis which could work but need some guidance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 01:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Averages-without-including-NA/m-p/922976#M986818</guid>
      <dc:creator />
      <dc:date>2015-07-31T01:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Averages without including NA</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Averages-without-including-NA/m-p/922977#M986819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a qlikview document that demonstrates the problem?&lt;/P&gt;&lt;P&gt;You can use the scramble feature to scramble any confidential information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 05:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Averages-without-including-NA/m-p/922977#M986819</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-31T05:13:45Z</dc:date>
    </item>
  </channel>
</rss>

