<?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 a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063243#M941577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am fairly new to QlikView and I wouldn't be posting a question if I could find an answer. I need to add a column to a table that has values for each row equal to the average of the values of the previous column. Example of what I need to accomplish(underlined):&lt;/P&gt;&lt;P&gt;Name Value &lt;SPAN style="text-decoration: underline;"&gt;Mean&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 05:08:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-25T05:08:28Z</dc:date>
    <item>
      <title>Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063243#M941577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am fairly new to QlikView and I wouldn't be posting a question if I could find an answer. I need to add a column to a table that has values for each row equal to the average of the values of the previous column. Example of what I need to accomplish(underlined):&lt;/P&gt;&lt;P&gt;Name Value &lt;SPAN style="text-decoration: underline;"&gt;Mean&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 05:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063243#M941577</guid>
      <dc:creator />
      <dc:date>2016-01-25T05:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063244#M941578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Name,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From Source;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Avg(Value) as Mea&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 11:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063244#M941578</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-25T11:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063245#M941579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in 'Mean' Expression&lt;/P&gt;&lt;P&gt;AVG(Total(Value))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 11:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063245#M941579</guid>
      <dc:creator>luizmendes118</dc:creator>
      <dc:date>2016-01-25T11:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063246#M941580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, Avg() function does not required any grouping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Avg(Value) as Mea&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;group by Dimension&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 11:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063246#M941580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063247#M941581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no fields listed in my load, so in this case Group By is not required. If I did have a non-aggregating field, then Yes you are right, I would need a Group By statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 11:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063247#M941581</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-25T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063248#M941582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right Sunny and even though the OP has asked for this I would have to ask why he would want change at script level. If this is suppose to dynamically change based on filters in the model then Luiz approach is correct, otherwise mean-of-mean (average of an average) would take place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 11:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063248#M941582</guid>
      <dc:creator />
      <dc:date>2016-01-25T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063249#M941583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ohh..okay, did not noticed that you are taking single field only in resident&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, 25 Jan 2016 12:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063249#M941583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Average of a field</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063250#M941584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only need this at script level, it does not get to the model, for I only need to export data to a qvd, not display it. Thank you though for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 04:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-a-field/m-p/1063250#M941584</guid>
      <dc:creator />
      <dc:date>2016-01-26T04:50:39Z</dc:date>
    </item>
  </channel>
</rss>

