<?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: Average not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2473012#M99830</link>
    <description>&lt;P&gt;I see, thank you anyway&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 14:06:19 GMT</pubDate>
    <dc:creator>Chris_Buck</dc:creator>
    <dc:date>2024-07-25T14:06:19Z</dc:date>
    <item>
      <title>Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472397#M99792</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am still getting to grips with Qliksense, help is very much appreciated.&lt;/P&gt;
&lt;P&gt;I want to average a set of data and have it so it shows above the data like in the image below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chris_Buck_0-1721740546376.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169801iBFA83117CB05B8F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chris_Buck_0-1721740546376.png" alt="Chris_Buck_0-1721740546376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the following formula in the measure section, but no luck&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Avg((&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (24*Count({$}distinct Date)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; -Sum({$&amp;lt;[Excused / Un-Excused]={$(vDTtype)}&amp;gt;}[Downtime Hours])&amp;nbsp; //&amp;nbsp; &amp;nbsp;"Un-Excused Downtime","N/A"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; +Sum({1-$&amp;lt;[Downtime Hours]={"*"}&amp;gt;}0))&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; /&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (24*Count({$}distinct Date))&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ))+ 0.00001&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thank you for taking the time to look at this one&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jul 2024 13:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472397#M99792</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-07-23T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472400#M99794</link>
      <description>&lt;P&gt;That will not work - as the formula window will tell you, nested aggregation is not allowed.&lt;/P&gt;
&lt;P&gt;If you want to nest aggregation, you'll need to use the Aggr() function. I'd suggest reading up on that as it may provide what you need in this case. You'd need something like:&lt;/P&gt;
&lt;P&gt;Avg(Aggr(YourFormula,Month,[Plant Name]))&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 13:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472400#M99794</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-07-23T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472448#M99799</link>
      <description>&lt;P&gt;Is this a nested aggregation? I thought the formula would be simple.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 16:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472448#M99799</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-07-23T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472473#M99801</link>
      <description>&lt;P&gt;Yes, it is - you have a bunch of Sum() and Count() functions contained within an Avg() function, so, nested aggregation.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 18:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472473#M99801</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-07-23T18:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472591#M99804</link>
      <description>&lt;P&gt;well, this was the original formula from the sheet that I duplicated from and I wanted the average so I added the avg function in front of it. Should I create a new measure to get the average then?&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (24*Count({$}distinct Date)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; -Sum({$&amp;lt;[Excused / Un-Excused]={$(vDTtype)}&amp;gt;}[Downtime Hours])&amp;nbsp; //&amp;nbsp; &amp;nbsp;"Un-Excused Downtime","N/A"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; +Sum({1-$&amp;lt;[Downtime Hours]={"*"}&amp;gt;}0))&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; /&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (24*Count({$}distinct Date))&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;))+ 0.00001&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jul 2024 07:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472591#M99804</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-07-24T07:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472597#M99805</link>
      <description>&lt;P&gt;As I said, if you want to take an existing aggregation and get an aggregation of that, you would need to use aggr().&lt;/P&gt;
&lt;P&gt;Since I don't know what exactly this expression is meant to do, and what the data model is, I have no idea if there's an easier alternative.&lt;/P&gt;
&lt;P&gt;Note that totals in general will use the same formula as the underlying measure, so if you add a total, that formula will be applied. It sounds like you might be able to get away with just using this formula and dividing by the number of Plants.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 08:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472597#M99805</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-07-24T08:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472870#M99823</link>
      <description>&lt;P&gt;I don't know what the expression is meant to do either. I am extracting the data on a monthly basis and I need to average it then enter the value somewhere else, currently I am doing it manually, but I would have liked to have the information in one of the rows under the month column, so that when I filter the plants, the information is there. If there is no other way, then I'll just continue doing it manually&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472870#M99823</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-07-25T08:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472894#M99825</link>
      <description>&lt;P&gt;It surely is possible, but it does require you understand the formula you're working with, unfortunately, at least to a basic degree. Sounds like manual may be the way to go here.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 09:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2472894#M99825</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-07-25T09:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Average not working</title>
      <link>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2473012#M99830</link>
      <description>&lt;P&gt;I see, thank you anyway&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 14:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-not-working/m-p/2473012#M99830</guid>
      <dc:creator>Chris_Buck</dc:creator>
      <dc:date>2024-07-25T14:06:19Z</dc:date>
    </item>
  </channel>
</rss>

