<?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: Avg vg Avg(aggr()) at chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avg-vg-Avg-aggr-at-chart/m-p/2018826#M1221986</link>
    <description>&lt;P&gt;First, you need to ask average of WHAT? Of the transactions (the individual records)? Or of the average per Order? Those are different. See&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Average-Which-average/ba-p/1466654" target="_blank"&gt;https://community.qlik.com/t5/Design/Average-Which-average/ba-p/1466654&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I think you want a different Aggr() call. I suggest not having [Mean value] as dimension. Also, make sure that you use an inner aggregation function. Hence:&lt;/P&gt;&lt;P&gt;Avg(Aggr(Avg([Mean value]),[Order]))&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank"&gt;https://community.qlik.com/t5/Design/Pitfalls-of-the-Aggr-function/ba-p/1463275&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 07:35:31 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2022-12-21T07:35:31Z</dc:date>
    <item>
      <title>Avg vg Avg(aggr()) at chart</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-vg-Avg-aggr-at-chart/m-p/2018820#M1221985</link>
      <description>&lt;P&gt;Hello guys.&lt;/P&gt;
&lt;P&gt;I have the below chart.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmano_0-1671606036192.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96655i5FB0E8AF94341FDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmano_0-1671606036192.png" alt="cmano_0-1671606036192.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I use this expression : Avg([Mean value]) results on the chart.&lt;/P&gt;
&lt;P&gt;No they want to convert this chart to boxplot. I use the box plot wizard and i take this chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmano_1-1671606200172.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96656i2E7CECDBCAA75EA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmano_1-1671606200172.png" alt="cmano_1-1671606200172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I create a table to verify the values :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmano_2-1671606259955.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96657i6A3570C588125613/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmano_2-1671606259955.png" alt="cmano_2-1671606259955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see the mean values are not the same ( for middle measurements at least).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expression at boxplot is :&amp;nbsp;Avg(Aggr([Mean value],[Order],[Mean value]))&lt;/P&gt;
&lt;P&gt;I create bar charts with these 2 expressions and the results are not the same.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmano_3-1671606517803.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96658iD9515FAF4A36BED4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmano_3-1671606517803.png" alt="cmano_3-1671606517803.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The questions are :&lt;/P&gt;
&lt;P&gt;Why i take different results with different expressions of average?&lt;/P&gt;
&lt;P&gt;How i can resolve this issue? I mean boxplot avg to be the same as bar chart?&lt;/P&gt;
&lt;P&gt;thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 07:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-vg-Avg-aggr-at-chart/m-p/2018820#M1221985</guid>
      <dc:creator>cmano</dc:creator>
      <dc:date>2022-12-21T07:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Avg vg Avg(aggr()) at chart</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-vg-Avg-aggr-at-chart/m-p/2018826#M1221986</link>
      <description>&lt;P&gt;First, you need to ask average of WHAT? Of the transactions (the individual records)? Or of the average per Order? Those are different. See&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Average-Which-average/ba-p/1466654" target="_blank"&gt;https://community.qlik.com/t5/Design/Average-Which-average/ba-p/1466654&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I think you want a different Aggr() call. I suggest not having [Mean value] as dimension. Also, make sure that you use an inner aggregation function. Hence:&lt;/P&gt;&lt;P&gt;Avg(Aggr(Avg([Mean value]),[Order]))&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank"&gt;https://community.qlik.com/t5/Design/Pitfalls-of-the-Aggr-function/ba-p/1463275&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 07:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-vg-Avg-aggr-at-chart/m-p/2018826#M1221986</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-12-21T07:35:31Z</dc:date>
    </item>
  </channel>
</rss>

