<?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: Total average by field, without chart dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-average-by-field-without-chart-dimension/m-p/1752180#M719639</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/84901"&gt;@JustInTime&lt;/a&gt;&amp;nbsp; why is 4.666 not 5&lt;/P&gt;&lt;P&gt;If I understood correctly you need&lt;/P&gt;&lt;P&gt;dimension : Periond&lt;/P&gt;&lt;P&gt;measure :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=aggr(nodistinct avg( Numerator),ID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 366px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42181i77A399D9F7C2F645/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 20:26:08 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-10-13T20:26:08Z</dc:date>
    <item>
      <title>Total average by field, without chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Total-average-by-field-without-chart-dimension/m-p/1752120#M719638</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got an annoying problem that I've managed to solve in some cases but doesn't fit specifically what I'm trying to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data that looks like the following:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Period&lt;/TD&gt;&lt;TD&gt;Numerator&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;201804&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;201804&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;201804&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;201805&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;201806&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;201806&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;201807&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;201807&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to transform it into the following:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Period&lt;/TD&gt;&lt;TD&gt;Average of Numerator&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;201804&lt;/TD&gt;&lt;TD&gt;4.666...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;201805&lt;/TD&gt;&lt;TD&gt;4.666...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;201806&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;201807&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where Average of Numerator is the average of all Periods for each ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have accomplished this with the following expression:&lt;BR /&gt;avg(total &amp;lt;ID&amp;gt; aggr(avg(Numerator), Period))&lt;/P&gt;&lt;P&gt;But in order for this to work I need to have ID as a dimension in the chart. I don't want to have ID as a dimension because I will be using this expression in a line graph alongside other expressions. If I use a line graph with other expressions, the change in average according to the ID doesn't happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a test file and test data that hopefully shows what I mean.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-average-by-field-without-chart-dimension/m-p/1752120#M719638</guid>
      <dc:creator>JustInTime</dc:creator>
      <dc:date>2024-11-16T17:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Total average by field, without chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Total-average-by-field-without-chart-dimension/m-p/1752180#M719639</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/84901"&gt;@JustInTime&lt;/a&gt;&amp;nbsp; why is 4.666 not 5&lt;/P&gt;&lt;P&gt;If I understood correctly you need&lt;/P&gt;&lt;P&gt;dimension : Periond&lt;/P&gt;&lt;P&gt;measure :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=aggr(nodistinct avg( Numerator),ID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 366px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42181i77A399D9F7C2F645/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 20:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-average-by-field-without-chart-dimension/m-p/1752180#M719639</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-13T20:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Total average by field, without chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Total-average-by-field-without-chart-dimension/m-p/1752273#M719640</link>
      <description>&lt;P&gt;Amazing, thank you. This worked, using nodistinct was the key.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 08:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-average-by-field-without-chart-dimension/m-p/1752273#M719640</guid>
      <dc:creator>JustInTime</dc:creator>
      <dc:date>2020-10-14T08:12:35Z</dc:date>
    </item>
  </channel>
</rss>

