<?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: Calculatin data in a group excluding NA data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867982#M994387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No....it returns the same result.&amp;nbsp; thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 02:17:04 GMT</pubDate>
    <dc:creator>suthashiniv</dc:creator>
    <dc:date>2015-07-15T02:17:04Z</dc:date>
    <item>
      <title>Calculatin data in a group excluding NA data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867978#M994383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am collating the data i have collected into a bar chart whereby i would need to create 3 groups to compare the difference per year. The data i collected are similar to how it is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 482px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="125"&gt;Department&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="65"&gt;Q1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="65"&gt;Q2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="65"&gt;Q3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Dept 1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Dept 2&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Dept 3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Dept 4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;NA&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Average&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each group consists of tables of data whereby some data could be stated as NA. Where the data is NA the final average should be calculated excluding the average, for example, for Q2, the average should be 6.66 and not 5 as the NA value should be excluded and the total sum should be divided by 3 instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;So currently,since i have 3 group, how I'm deriving to this value is by AVG(AGGR(AVG({[Group 3]}Data),Faculty, Questions,Year))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;As i want to exclude data which is NA, i need to include something like Data-='NA', but how do i do it as this is the data from a group. in this scenario, the group name is Group 3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Please help. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 10:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867978#M994383</guid>
      <dc:creator>suthashiniv</dc:creator>
      <dc:date>2015-07-14T10:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculatin data in a group excluding NA data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867979#M994384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is group an alternate state here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 10:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867979#M994384</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculatin data in a group excluding NA data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867980#M994385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, yes. Group is an alternate state&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867980#M994385</guid>
      <dc:creator>suthashiniv</dc:creator>
      <dc:date>2015-07-14T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculatin data in a group excluding NA data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867981#M994386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Avg(&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{[Group 3]&amp;lt;Data -= {'NA'}&amp;gt;} &lt;/SPAN&gt;Aggr(Avg({[Group 3]&amp;lt;Data -= {'NA'}&amp;gt;}Data), Faculty, Questions,Year))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867981#M994386</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-14T13:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculatin data in a group excluding NA data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867982#M994387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No....it returns the same result.&amp;nbsp; thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 02:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatin-data-in-a-group-excluding-NA-data/m-p/867982#M994387</guid>
      <dc:creator>suthashiniv</dc:creator>
      <dc:date>2015-07-15T02:17:04Z</dc:date>
    </item>
  </channel>
</rss>

