<?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 Average of Averages that are not zero in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-of-Averages-that-are-not-zero/m-p/1677825#M51537</link>
    <description>&lt;P&gt;I need to calculate the average of average Hours spent on audits by Lead Team .&lt;/P&gt;&lt;P&gt;The added caveat that is missing is, don't count any Lead Teams where no time was spent on audits.&lt;/P&gt;&lt;P&gt;I am displaying the team average hours per audit as bars. So if I had a bar1= 50, a bar2= 100, and a bar3= 150, the average would be 100 because the sum of the 3 is 300 divided by 3 gives me an average of 100.&lt;/P&gt;&lt;P&gt;The issue occurs when one of the bars has a zero value . In QlikView that bar can be suppressed (as in Qlik Sense as well) but the QV average reference line automatically takes it out of the equation.&lt;/P&gt;&lt;P&gt;So for example if bar3= 0 and therefore suppressed, QV would sum the 2 non zero bars as 150 and divide by 2 to get an average of&amp;nbsp; 75.&amp;nbsp; In QS, it is still dividing the sum of all 3, 150 by 3 and getting 50.&lt;/P&gt;&lt;P&gt;How do I get QS reference line to behave like QV?&lt;/P&gt;&lt;P&gt;My current expression is:&lt;/P&gt;&lt;P&gt;=Avg(Total Aggr(&lt;BR /&gt;Sum({&amp;lt;[Audit Year]={"&amp;gt;=2019"}, [Audit Task]={"Reporting"}, RscActuals={'Y'}, [Audit Region]={'United States'}&amp;gt;} Hours)/&lt;BR /&gt;Count({&amp;lt;[Audit Year]={"&amp;gt;=2019"}, RscActuals={'Y'}, [Audit Region]={'United States'}&amp;gt;} DISTINCT [Audit ID])&lt;BR /&gt;, [Lead Team]))&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:04:34 GMT</pubDate>
    <dc:creator>tschullo</dc:creator>
    <dc:date>2024-11-16T19:04:34Z</dc:date>
    <item>
      <title>Average of Averages that are not zero</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-Averages-that-are-not-zero/m-p/1677825#M51537</link>
      <description>&lt;P&gt;I need to calculate the average of average Hours spent on audits by Lead Team .&lt;/P&gt;&lt;P&gt;The added caveat that is missing is, don't count any Lead Teams where no time was spent on audits.&lt;/P&gt;&lt;P&gt;I am displaying the team average hours per audit as bars. So if I had a bar1= 50, a bar2= 100, and a bar3= 150, the average would be 100 because the sum of the 3 is 300 divided by 3 gives me an average of 100.&lt;/P&gt;&lt;P&gt;The issue occurs when one of the bars has a zero value . In QlikView that bar can be suppressed (as in Qlik Sense as well) but the QV average reference line automatically takes it out of the equation.&lt;/P&gt;&lt;P&gt;So for example if bar3= 0 and therefore suppressed, QV would sum the 2 non zero bars as 150 and divide by 2 to get an average of&amp;nbsp; 75.&amp;nbsp; In QS, it is still dividing the sum of all 3, 150 by 3 and getting 50.&lt;/P&gt;&lt;P&gt;How do I get QS reference line to behave like QV?&lt;/P&gt;&lt;P&gt;My current expression is:&lt;/P&gt;&lt;P&gt;=Avg(Total Aggr(&lt;BR /&gt;Sum({&amp;lt;[Audit Year]={"&amp;gt;=2019"}, [Audit Task]={"Reporting"}, RscActuals={'Y'}, [Audit Region]={'United States'}&amp;gt;} Hours)/&lt;BR /&gt;Count({&amp;lt;[Audit Year]={"&amp;gt;=2019"}, RscActuals={'Y'}, [Audit Region]={'United States'}&amp;gt;} DISTINCT [Audit ID])&lt;BR /&gt;, [Lead Team]))&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-Averages-that-are-not-zero/m-p/1677825#M51537</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2024-11-16T19:04:34Z</dc:date>
    </item>
  </channel>
</rss>

