<?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 Aggr only returning first number of data set in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Avg-Aggr-only-returning-first-number-of-data-set/m-p/1245462#M24844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect.&amp;nbsp; Thanks for the quick answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 17:44:47 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2017-03-20T17:44:47Z</dc:date>
    <item>
      <title>Avg Aggr only returning first number of data set</title>
      <link>https://community.qlik.com/t5/App-Development/Avg-Aggr-only-returning-first-number-of-data-set/m-p/1245460#M24842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following expression in an attempt to return the average number of orders processed per day, for the last seven days, for the specified warehouses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(Aggr(Count(DISTINCT {1&amp;lt;IsInLast7Days = {1},Warehouse = {'YSS','SSS'}&amp;gt;} SalesOrder),Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual data set from the chart looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="03.20.2017-10.35.png" class="jive-image image-1" src="https://content.screencast.com/users/mikegrattan/folders/Snagit/media/b0fb8e26-48cc-499c-82d5-efd12382dc45/03.20.2017-10.35.png" style="height: 253px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart data looks fine, and uses the following function:&lt;/P&gt;&lt;P&gt;Count(DISTINCT {1&amp;lt;IsInLast7Days = {1},Warehouse = {'YBF','SBF'},Date&amp;gt;} SalesOrder) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the reference line only picks up the first number instead of the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Avg-Aggr-only-returning-first-number-of-data-set/m-p/1245460#M24842</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Avg Aggr only returning first number of data set</title>
      <link>https://community.qlik.com/t5/App-Development/Avg-Aggr-only-returning-first-number-of-data-set/m-p/1245461#M24843</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;Avg(&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TOTAL &lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;{1&amp;lt;IsInLast7Days = {1},Warehouse = {'YSS','SSS'}&amp;gt;}&lt;/SPAN&gt; &lt;/SPAN&gt;Aggr(Count(DISTINCT {1&amp;lt;IsInLast7Days = {1},Warehouse = {'YSS','SSS'}&amp;gt;} SalesOrder),Date))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 17:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Avg-Aggr-only-returning-first-number-of-data-set/m-p/1245461#M24843</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-20T17:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Avg Aggr only returning first number of data set</title>
      <link>https://community.qlik.com/t5/App-Development/Avg-Aggr-only-returning-first-number-of-data-set/m-p/1245462#M24844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect.&amp;nbsp; Thanks for the quick answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 17:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Avg-Aggr-only-returning-first-number-of-data-set/m-p/1245462#M24844</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2017-03-20T17:44:47Z</dc:date>
    </item>
  </channel>
</rss>

