<?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: How to do aggregation in expression column? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-aggregation-in-expression-column/m-p/457192#M170687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you want to show these aggregates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you are using a straight table chart and to see one of the above aggregations in the total line, you can set the total mode in expression properties appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also consider using advanced aggregation.&lt;/P&gt;&lt;P&gt;If your expressions are used with a dimension DIM, you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=avg( aggr(count(ID), DIM))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= sum( aggr( count(ID), DIM))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 19:04:43 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-10-01T19:04:43Z</dc:date>
    <item>
      <title>How to do aggregation in expression column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-aggregation-in-expression-column/m-p/457191#M170686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts here,&lt;/P&gt;&lt;P&gt;I used &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;and &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;fabs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Hospital Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Hospital Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&amp;nbsp; expressions in &lt;/SPAN&gt;in my chart and would like to get sum, mean and count of each expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 16:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-aggregation-in-expression-column/m-p/457191#M170686</guid>
      <dc:creator />
      <dc:date>2012-10-01T16:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to do aggregation in expression column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-aggregation-in-expression-column/m-p/457192#M170687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you want to show these aggregates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you are using a straight table chart and to see one of the above aggregations in the total line, you can set the total mode in expression properties appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also consider using advanced aggregation.&lt;/P&gt;&lt;P&gt;If your expressions are used with a dimension DIM, you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=avg( aggr(count(ID), DIM))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= sum( aggr( count(ID), DIM))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 19:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-aggregation-in-expression-column/m-p/457192#M170687</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T19:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to do aggregation in expression column?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-aggregation-in-expression-column/m-p/457193#M170688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution works for the first expression. How about the second expression &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;fabs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;? I wanted to show the average for this expression on the chart and display in the textbox. I named this expression as MR(moving range), but I have no way to access it! How can I access and manipulate the aggregate value of this expression? I tried to use avg(MR), not working. I also tried to use avg(fabs(count(ID)-above(count(ID)))) still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 20:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-aggregation-in-expression-column/m-p/457193#M170688</guid>
      <dc:creator />
      <dc:date>2012-10-01T20:08:40Z</dc:date>
    </item>
  </channel>
</rss>

