<?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 of Set Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028331#M347350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Is this the same question?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad, may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(Sum(TOTAL &amp;lt;Job&amp;gt; STE)/SUM(TOTAL STE), Job))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120078_Capture.PNG" style="height: 68px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 17:16:10 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-31T17:16:10Z</dc:date>
    <item>
      <title>Average of Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028330#M347349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a beginner on Qlikview and i would like to do the Average of percentage of different AsOf (2 here) into a Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AVG({$&amp;lt; AsOf = {"&amp;gt;=$(=Num(AddMonths(Max(STEAsOf),-2)))&amp;lt;=$(=Num(Date(STEAsOf, 'DD/MM/YYYY')))"}&amp;gt;} Sum(TOTAL &amp;lt;Job&amp;gt; STE)/SUM(TOTAL STE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find a sample attached here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you in advance for your help,&lt;/P&gt;&lt;P&gt;Sébastien.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028330#M347349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-31T17:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028331#M347350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Is this the same question?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad, may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(Sum(TOTAL &amp;lt;Job&amp;gt; STE)/SUM(TOTAL STE), Job))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120078_Capture.PNG" style="height: 68px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028331#M347350</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-31T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028332#M347351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[It's a little confusing that you keep changing your AsOf field name]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; AsOF = {"&amp;gt;=$(=Num(AddMonths(Max(AsOF),-2)))&amp;lt;=$(=Num(Date(AsOF, 'DD/MM/YYYY')))"}&amp;gt;} Total&amp;lt;Job&amp;gt; STE)&lt;/P&gt;&lt;P&gt;/SUM({$&amp;lt; AsOF = {"&amp;gt;=$(=Num(AddMonths(Max(AsOF),-2)))&amp;lt;=$(=Num(Date(AsOF, 'DD/MM/YYYY')))"}&amp;gt;} TOTAL STE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: And just in case you wonder why I dismissed the avg() function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3208"&gt;Average – Which average?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028332#M347351</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-31T17:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028333#M347352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot it works perfectly ! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 07:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-Set-Expression/m-p/1028333#M347352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-01T07:14:19Z</dc:date>
    </item>
  </channel>
</rss>

