<?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: line level count and avg at total is it possible? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407704#M797063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, let me ask you this... did it not work at all, or did it not work as your expected? The reason it did not work as expected it because you failed to provide complete information.... do you expect me to know your expression and give you a result that would work for you? I am sorry, but you will have a hard time all the time... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, try adding the set analysis from your inner aggregation to the outer one and see if this resolves your problem.&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: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Year/Month],Period={'&amp;lt;=$(=max(Period))'}&amp;gt;}&lt;/SPAN&gt;A&lt;/SPAN&gt;ggr(Count( {&amp;lt;[Year/Month],Period={'&amp;lt;=$(=max(Period))'}&amp;gt;} EMPLID),YEAR,MONTH))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2017 20:43:37 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-14T20:43:37Z</dc:date>
    <item>
      <title>line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407700#M797052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;is it possible to count by month and Total would be Average?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="count avg.png" class="jive-image image-1" src="/legacyfs/online/187042_count avg.png" style="height: auto;" /&gt;&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/line-level-count-and-avg-at-total-is-it-possible/m-p/1407700#M797052</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407701#M797058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure... it would be something like this may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(Count(Measure), SnapYear, SnapMonth))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 19:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407701#M797058</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-14T19:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407702#M797060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It didnt work&lt;/P&gt;&lt;P&gt;AVG(aggr(Count( {&amp;lt;[Year/Month],Period={'&amp;lt;=$(=max(Period))'}&amp;gt;} EMPLID),YEAR,MONTH))&lt;/P&gt;&lt;P&gt;with this I got was only Oct (As user has selected Oct) no other months showed&lt;/P&gt;&lt;P&gt;2017&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 122878&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know what that 122878 number is..not the AVG...I have all values below 80000 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407702#M797060</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2017-12-14T20:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407703#M797062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample app to look into?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407703#M797062</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-12-14T20:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407704#M797063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, let me ask you this... did it not work at all, or did it not work as your expected? The reason it did not work as expected it because you failed to provide complete information.... do you expect me to know your expression and give you a result that would work for you? I am sorry, but you will have a hard time all the time... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, try adding the set analysis from your inner aggregation to the outer one and see if this resolves your problem.&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: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Year/Month],Period={'&amp;lt;=$(=max(Period))'}&amp;gt;}&lt;/SPAN&gt;A&lt;/SPAN&gt;ggr(Count( {&amp;lt;[Year/Month],Period={'&amp;lt;=$(=max(Period))'}&amp;gt;} EMPLID),YEAR,MONTH))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 20:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407704#M797063</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-14T20:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407705#M797065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, Thanks for help. Much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still AGGR() and AVG() producing some results difficult to figure out what they are doing. I have to dig more on these functions. I feel in QV these 2 functions are not straight forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407705#M797065</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2017-12-14T21:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407706#M797067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the value for the row level isn't the right number? or just the totals are off?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 21:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407706#M797067</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-14T21:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407707#M797068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is an app I was able to reproduce problem in sample data. Any suggestions why it is not calculating roll up for 2016 and work around?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;IMG alt="count avg.png" class="jive-image image-1" src="/legacyfs/online/187374_count avg.png" style="height: 181px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 17:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407707#M797068</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2017-12-18T17:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407708#M797069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the goal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187388_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg({&amp;lt;Period=,Period={'&amp;lt;=$(=max(Period))'}&amp;gt;}aggr(sum({&amp;lt;Period=,Period={'&amp;lt;=$(=max(Period))'}&amp;gt;}data),Yr))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 17:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407708#M797069</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-18T17:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407709#M797070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Desired state is where total for year would be AVG, right now with this change in statement we have sum as total for year and overall is AVG but in separate column. If I get Goal is shown below is Ideal but even if I have 70/120 sum as totals and 95 (AVG) as overall total I would be happy and not spending time any further.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="count avg.png" class="jive-image image-1" src="/legacyfs/online/187397_count avg.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 18:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407709#M797070</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2017-12-18T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407710#M797071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Period=,Period={'&amp;lt;=$(=max(Period))'}&amp;gt;}aggr(sum({&amp;lt;Period=,Period={'&amp;lt;=$(=max(Period))'}&amp;gt;}data),Yr, mnth))/Count({&amp;lt;Period=,Period={'&amp;lt;=$(=max(Period))'}&amp;gt;}DISTINCT Yr)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187406_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 18:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407710#M797071</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-18T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: line level count and avg at total is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407711#M797072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU!&lt;/P&gt;&lt;P&gt;I would have not figured this out with out your expertise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/line-level-count-and-avg-at-total-is-it-possible/m-p/1407711#M797072</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2017-12-18T20:36:53Z</dc:date>
    </item>
  </channel>
</rss>

