<?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 expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438403#M1160350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have to calculate average for selected number of zones. If i select single zone it will display the correct value, but if i select two to three zones , it is not showing the correct value. Please help me with the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 10:09:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-21T10:09:01Z</dc:date>
    <item>
      <title>Average expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438403#M1160350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have to calculate average for selected number of zones. If i select single zone it will display the correct value, but if i select two to three zones , it is not showing the correct value. Please help me with the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 10:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438403#M1160350</guid>
      <dc:creator />
      <dc:date>2013-01-21T10:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Average expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438404#M1160351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is hard to answer your request, because we don't know anything about the expression you are using, the data model, the context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a small qvw sample file here to the forum? And your requested result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or some lines of your data as INLINE table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 10:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438404#M1160351</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-21T10:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438405#M1160352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"Avg &lt;/P&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(#vYear)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Annual Average]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) "&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where annual average values are&amp;nbsp; -28.91&amp;nbsp; -28.27 &amp;amp; 25.48&lt;/P&gt;&lt;P&gt;Answer should be -10.56 . But it is displaying -16.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 10:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438405#M1160352</guid>
      <dc:creator />
      <dc:date>2013-01-21T10:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Average expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438406#M1160353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked the number of records that avg() uses, i.e. the frequency of your [Annual Average] values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(#vYear)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Annual Average]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get 3 for your sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 10:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438406#M1160353</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-21T10:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438407#M1160354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i did. I checked the frequency, Its more .&lt;/P&gt;&lt;P&gt;I used DISTINCT in the same expression &amp;amp; got correct answer. Thanks for your clue &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 11:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expressions/m-p/438407#M1160354</guid>
      <dc:creator />
      <dc:date>2013-01-21T11:06:10Z</dc:date>
    </item>
  </channel>
</rss>

