<?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 Expression to Calculate average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-to-Calculate-average/m-p/1093510#M939603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the&amp;nbsp; average figure from the attached&amp;nbsp; chart to go in a text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression used in my chart, any help on how I calculate the average figure from it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Farm ID]=,[Target Weight]={600}&amp;gt;}Aggr(Sum({&amp;lt;[Farm ID]=&amp;gt;}Quantity)/only({&amp;lt;[Farm ID]=&amp;gt;}[Calculated Cow Course])/only({&amp;lt;[Farm ID]=&amp;gt;}[No Cows]),Product,[Farm ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2016 15:35:03 GMT</pubDate>
    <dc:creator>yvonne-c</dc:creator>
    <dc:date>2016-01-28T15:35:03Z</dc:date>
    <item>
      <title>Expression to Calculate average</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Calculate-average/m-p/1093510#M939603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the&amp;nbsp; average figure from the attached&amp;nbsp; chart to go in a text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression used in my chart, any help on how I calculate the average figure from it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Farm ID]=,[Target Weight]={600}&amp;gt;}Aggr(Sum({&amp;lt;[Farm ID]=&amp;gt;}Quantity)/only({&amp;lt;[Farm ID]=&amp;gt;}[Calculated Cow Course])/only({&amp;lt;[Farm ID]=&amp;gt;}[No Cows]),Product,[Farm ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 15:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Calculate-average/m-p/1093510#M939603</guid>
      <dc:creator>yvonne-c</dc:creator>
      <dc:date>2016-01-28T15:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to Calculate average</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-Calculate-average/m-p/1093511#M939604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be easier to answer with more context provided, the dimensions in your chart you've used, some details about the data model, how you calculcated the average line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe (probably not the best solution) something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;[Farm ID]=,[Target Weight]={600}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;[Farm ID]=,[Target Weight]={600}&amp;gt;}Aggr(Sum({&amp;lt;[Farm ID]=&amp;gt;}Quantity)/only({&amp;lt;[Farm ID]=&amp;gt;}[Calculated Cow Course])/only({&amp;lt;[Farm ID]=&amp;gt;}[No Cows]),Product,[Farm ID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, &lt;EM&gt;YourChartDimensionField(s)CommaSeparated&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;))&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 19:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-Calculate-average/m-p/1093511#M939604</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-28T19:39:43Z</dc:date>
    </item>
  </channel>
</rss>

