<?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: calculate average of variable in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770117#M717090</link>
    <description>&lt;P&gt;.QVW sample file is attached in above comment. Overall Step Weightage Formula is different for each sub-Project. Overall Step Weightage formula is a set expression itself. For Example for&amp;nbsp;Sub-Project NFR-EV charger , Overall Step Weightage Formula is&amp;nbsp;&lt;/P&gt;&lt;P&gt;num(&lt;BR /&gt;sum(aggr(RangeSum(Above(TOTAL IF([Progress Description] &amp;lt;&amp;gt; ' ',If(Sum(Aggr(If(Match([Progress Description], [Sub Activities]), 1, 0), [Progress Description],[Sub Activities])) &amp;gt; 0,[Sub Activities Weightage]*1,0),0) , 0, RowNo(TOTAL))),[Sub-Project], Month,[Fiscal Year]))&lt;BR /&gt;,'0.##%')&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 07:27:54 GMT</pubDate>
    <dc:creator>sadiaasghar</dc:creator>
    <dc:date>2020-12-23T07:27:54Z</dc:date>
    <item>
      <title>calculate average of variable in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770100#M717085</link>
      <description>&lt;P&gt;I want to calculate average of sum of all projects but it's giving me nested aggregation error. I have tried using total but it's giving me 0 as a result.&lt;/P&gt;&lt;P&gt;=Num(sum({&amp;lt;year_month_num = {$(=Max(year_month_num))}&amp;gt;}aggr($(=[Overall Step Weightage Formula]),Project,Month)),'#0.##%')&lt;/P&gt;&lt;P&gt;Please help me with this&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/118643"&gt;@brett&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 04:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770100#M717085</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-12-23T04:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average of variable in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770106#M717086</link>
      <description>&lt;P&gt;You will get nested aggregation errors when trying to do an aggregation inside an aggregation (without using aggr() in between. Example: sum({$} avg())&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now your expression looks like this&lt;/P&gt;&lt;P&gt;Num(Sum({} aggr( %unknown%)))&lt;/P&gt;&lt;P&gt;As long as %unknown% is a normal aggregation such as sum(), max () or avg() then your expression setup should be fine and you should not get that nested aggregation warning.&lt;/P&gt;&lt;P&gt;So please check your inner dollar expanded expression to see if the error lies there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 05:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770106#M717086</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-23T05:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average of variable in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770110#M717087</link>
      <description>&lt;P&gt;Below Expressions are giving me error. Can we apply average directly on variable?&lt;/P&gt;&lt;P&gt;(sum(Avg({&amp;lt;year_month_num = {$(=Max(year_month_num))}&amp;gt;}aggr($(=[Overall Step Weightage Formula]),Month))))*100&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;(sum(Avg({&amp;lt;year_month_num = {$(=Max(year_month_num))}&amp;gt;}aggr($(=[Overall Step Weightage Formula]),Month))))*100&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 06:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770110#M717087</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-12-23T06:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average of variable in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770113#M717088</link>
      <description>&lt;P&gt;What's the difference between the two?&lt;/P&gt;&lt;P&gt;What is the content of [Overall Step Weightage Formula]?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 06:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770113#M717088</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-23T06:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average of variable in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770114#M717089</link>
      <description>&lt;P&gt;I am attaching sample .qvw file. And secondly I want variable value to calculate on the basis of Measure/Department but this formula only calculating value for Sub-Projects. Please have a look&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 07:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770114#M717089</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-12-23T07:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average of variable in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770117#M717090</link>
      <description>&lt;P&gt;.QVW sample file is attached in above comment. Overall Step Weightage Formula is different for each sub-Project. Overall Step Weightage formula is a set expression itself. For Example for&amp;nbsp;Sub-Project NFR-EV charger , Overall Step Weightage Formula is&amp;nbsp;&lt;/P&gt;&lt;P&gt;num(&lt;BR /&gt;sum(aggr(RangeSum(Above(TOTAL IF([Progress Description] &amp;lt;&amp;gt; ' ',If(Sum(Aggr(If(Match([Progress Description], [Sub Activities]), 1, 0), [Progress Description],[Sub Activities])) &amp;gt; 0,[Sub Activities Weightage]*1,0),0) , 0, RowNo(TOTAL))),[Sub-Project], Month,[Fiscal Year]))&lt;BR /&gt;,'0.##%')&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 07:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770117#M717090</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-12-23T07:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average of variable in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770316#M717091</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;Please look into the attached .qvw file.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 16:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-average-of-variable-in-qlikview/m-p/1770316#M717091</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-12-23T16:33:47Z</dc:date>
    </item>
  </channel>
</rss>

