<?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: Aggr Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487372#M182037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a little concerned about the else statement in your if. You will take an average among TB AND the many 0's which do not satisfy your if statement. Would that be technically correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, I suggest using the following way:&lt;/P&gt;&lt;P&gt;First of all try using set analysis and second use an expression similar to sum({set analysis} TB)/count({set analysis} TB).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 09:16:19 GMT</pubDate>
    <dc:creator>simondachstr</dc:creator>
    <dc:date>2013-09-27T09:16:19Z</dc:date>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487370#M182035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate average of TB if a set of conditions meet and then want to sort the data on the Customer ID.&lt;/P&gt;&lt;P&gt;Will the following Expression work ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(avg(if([Customer Type]='P' and [Product Brand]='Xi'and [Target Status-X]='Y'and call&amp;gt;0,TB,0)),[Customer ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487370#M182035</guid>
      <dc:creator />
      <dc:date>2013-09-27T09:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487371#M182036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In first look, seems okay. You have a doubt and so have been here or might be not working as you expect in your case. Request to share sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487371#M182036</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-27T09:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487372#M182037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a little concerned about the else statement in your if. You will take an average among TB AND the many 0's which do not satisfy your if statement. Would that be technically correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, I suggest using the following way:&lt;/P&gt;&lt;P&gt;First of all try using set analysis and second use an expression similar to sum({set analysis} TB)/count({set analysis} TB).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487372#M182037</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2013-09-27T09:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487373#M182038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recomend you to use set analysis instead of ifs.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;aggr&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NODISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'P'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product Brand]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Xi'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Target Status-X]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Y'}, call={'&amp;gt;0'}&amp;gt;} TB),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Notice the NODISTINCT. Try it with and wihtout it depending where do you want your expression to be placed.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487373#M182038</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-09-27T09:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487374#M182039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your dimension is the one in the aggregation you may not need the aggregation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487374#M182039</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-09-27T09:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487375#M182040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Martin,&lt;/P&gt;&lt;P&gt;The Condition 'Call' in the if statement is a calculated expression it self, where Call= sum(call).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i add a Calculated Expression in set analysis.&lt;/P&gt;&lt;P&gt;If not,&lt;/P&gt;&lt;P&gt;is there any other way to do so ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 09:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function/m-p/487375#M182040</guid>
      <dc:creator />
      <dc:date>2013-09-27T09:43:39Z</dc:date>
    </item>
  </channel>
</rss>

