<?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 Aggr error in chart: only displaying 1 value per dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1809#M792563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of queries, each query is part of a bucket. I want to use an if statement to assign the average monthly volume of the &lt;SPAN style="font-size: 13.3333px;"&gt;query's &lt;/SPAN&gt;bucket if its own monthly volume is null, and if it's not null just return the query's volume. Here's the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(avg([monthly volume])), aggr(avg({1}[monthly volume]), bucket_v2), avg([monthly volume]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the average monthly volumes by bucket are:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/190273_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is the result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190272_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column [monthly vol] is just there to show that all are null for the query except "online colleges", so the [adj monthly vol] should be the buckets' averages for all except "online colleges". As you can see it's only showing the bucket average for one of each bucket, the rest are null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me figure out what I'm doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Aggr error in chart: only displaying 1 value per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1809#M792563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of queries, each query is part of a bucket. I want to use an if statement to assign the average monthly volume of the &lt;SPAN style="font-size: 13.3333px;"&gt;query's &lt;/SPAN&gt;bucket if its own monthly volume is null, and if it's not null just return the query's volume. Here's the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(avg([monthly volume])), aggr(avg({1}[monthly volume]), bucket_v2), avg([monthly volume]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the average monthly volumes by bucket are:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/190273_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is the result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/190272_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column [monthly vol] is just there to show that all are null for the query except "online colleges", so the [adj monthly vol] should be the buckets' averages for all except "online colleges". As you can see it's only showing the bucket average for one of each bucket, the rest are null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me figure out what I'm doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1809#M792563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr error in chart: only displaying 1 value per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1810#M792564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&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;STRONG&gt;If(IsNull(Avg([monthly volume])), Aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; Avg({1}[monthly volume]), bucket_v2), Avg([monthly volume]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&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;STRONG&gt;If(IsNull(Avg([monthly volume])), Avg(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;bucket_v2&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt; {1}[monthly volume]), Avg([monthly volume]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 02:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1810#M792564</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-17T02:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr error in chart: only displaying 1 value per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1811#M792565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The NODISTINCT worked like a charm. Can't believe I didn't think of that. Thank you Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 17:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1811#M792565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-17T17:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr error in chart: only displaying 1 value per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1812#M792566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked out for you, but I wonder if you tried the other one also and if it did not work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 17:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1812#M792566</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-17T17:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr error in chart: only displaying 1 value per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1813#M792567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other one worked but with the {1} set identifier included, it returns all rows disregarding my selection. When I remove the {1} it just returns nulls like before. So the first solution with NODISTINCT is better &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 17:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-error-in-chart-only-displaying-1-value-per-dimension/m-p/1813#M792567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-17T17:45:20Z</dc:date>
    </item>
  </channel>
</rss>

