<?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: Calculating average in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-average-in-set-analysis/m-p/1135488#M463931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I learnt a good thing about set analysis &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 13:50:41 GMT</pubDate>
    <dc:creator>markgraham123</dc:creator>
    <dc:date>2016-05-24T13:50:41Z</dc:date>
    <item>
      <title>Calculating average in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-in-set-analysis/m-p/1135486#M463929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Avg(Aggr(Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}eaches ),[Recent 7 Days]))) /&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg((Aggr(Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}duration_logged_in_Hrs ),[Recent 7 Days])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i'm using above script to calculate average of 'eaches' consumed in recent 7 days.&lt;/P&gt;&lt;P&gt;Although it is giving me the average, i do not wanna divide the average eaches in recent 7 days with &lt;/P&gt;&lt;P&gt;average hrs logged in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to divide sum of eaches / sum of logged in hrs. (Still having the condition Recent 7 Days &amp;lt;&amp;gt; '-'&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Not working:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(Aggr(Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}eaches ),[Recent 7 Days]))) /&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;((Aggr(Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}duration_logged_in_Hrs ),[Recent 7 Days])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 13:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-in-set-analysis/m-p/1135486#M463929</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-05-24T13:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-in-set-analysis/m-p/1135487#M463930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand, but in general, use (outer) aggregation functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Aggr(Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}eaches ),[Recent 7 Days]))) /&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum((Aggr(Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}duration_logged_in_Hrs ),[Recent 7 Days])))&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;edit: Or maybe you don't need to group by [Recent 7 Days]?&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}eaches ) /&amp;nbsp; Sum({&amp;lt;[Recent 7 Days] -= {'-'}&amp;gt;}duration_logged_in_Hrs )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 13:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-in-set-analysis/m-p/1135487#M463930</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-in-set-analysis/m-p/1135488#M463931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I learnt a good thing about set analysis &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 13:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-in-set-analysis/m-p/1135488#M463931</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-05-24T13:50:41Z</dc:date>
    </item>
  </channel>
</rss>

