<?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 Expression with two func aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145060#M590385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much&lt;BR /&gt;&lt;BR /&gt;but it isn't what i need becuase PTT and RTT are depending of Filters and Selections in Sheet&lt;/P&gt;&lt;P&gt;no the Avegare Total of PTT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 23:44:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-26T23:44:23Z</dc:date>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145057#M590382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help:&lt;/P&gt;&lt;P&gt;i have the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic; padding-left: 30px"&gt;Avg(if(RTT&amp;lt;Avg(PTT)-1,RTT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is wrong, because isn't posible have 2 functions aggregation (AVG) in the same expression,&lt;/P&gt;&lt;P&gt;but i don't know is it.&lt;/P&gt;&lt;P&gt;RTT is a Real Transit Time (40,35,30,32,54)&lt;/P&gt;&lt;P&gt;PTT is a Planned Transit Time (41,35,31,29,40)&lt;/P&gt;&lt;P&gt;I need:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;get Average of all RTT that are lesser that Average of PTT -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some one Idea?????&lt;/P&gt;&lt;P&gt;Thanks in advance for help&lt;/P&gt;&lt;P&gt;Sergio.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 22:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145057#M590382</guid>
      <dc:creator />
      <dc:date>2009-05-26T22:58:06Z</dc:date>
    </item>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145058#M590383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to nest aggregation functions, you need to use "Advanced Aggregation" with function "Aggr". You also need to determine, at what level of detail do you want the "internal" aggregation to happen - i.e. you are comparing RTT with the average of PTT - at what level?&lt;/P&gt;&lt;P&gt;You expression should look like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;I&gt;Avg( aggr( if(RTT&amp;lt;Avg(PTT)-1,RTT), &amp;lt;Dimension1, Dimension2...&amp;gt;) )&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;I&gt;&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 23:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145058#M590383</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-26T23:16:15Z</dc:date>
    </item>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145059#M590384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will it work if you define a variable say AVGPTT as =Avg(Total PTT)&lt;/P&gt;&lt;P&gt;and use the following as Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(If(RTT&amp;lt;$(AVGPTT)-1,RTT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 23:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145059#M590384</guid>
      <dc:creator />
      <dc:date>2009-05-26T23:25:22Z</dc:date>
    </item>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145060#M590385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much&lt;BR /&gt;&lt;BR /&gt;but it isn't what i need becuase PTT and RTT are depending of Filters and Selections in Sheet&lt;/P&gt;&lt;P&gt;no the Avegare Total of PTT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 23:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145060#M590385</guid>
      <dc:creator />
      <dc:date>2009-05-26T23:44:23Z</dc:date>
    </item>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145061#M590386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have reviewed this function Aggr(), but the result isn't correct&lt;BR /&gt;&lt;BR /&gt;becuase i don't know what is the level detail&lt;BR /&gt;&lt;BR /&gt;i think that is ID of the Transit Time, but the result isn't correct&lt;BR /&gt;&lt;BR /&gt;the fields RTT and PTT depending of Filters and Selecctions.&lt;BR /&gt;&lt;BR /&gt;for example: if is selected a Port Origin or Port Destination or Country or Dates or others&lt;BR /&gt;the Averages must be with the values posibles&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 00:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145061#M590386</guid>
      <dc:creator />
      <dc:date>2009-05-27T00:02:35Z</dc:date>
    </item>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145062#M590387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergio,&lt;/P&gt;&lt;P&gt;when everything is defined correctly, it should work. Function aggr() takes in account your selections.&lt;/P&gt;&lt;P&gt;You need to answer this question: "Avg(PTT)" - for what Entity? Average by Port? or Country? If you are after the overall average (for anything selected/associated), than the approach with the variable (suggested above) would work even better.&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 00:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145062#M590387</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-05-27T00:22:51Z</dc:date>
    </item>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145063#M590388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is a file with the same problem&lt;/P&gt;&lt;P&gt;if you can see!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[View:/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.06.54.26/Two-Func-Aggregation.qvw]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 03:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145063#M590388</guid>
      <dc:creator />
      <dc:date>2009-05-27T03:03:18Z</dc:date>
    </item>
    <item>
      <title>Expression with two func aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145064#M590389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergio,&lt;BR /&gt;We could've seen it - if you could post an example.&lt;BR /&gt;I"m sure that aggr will work if you correctly define the dimensions which you need to use in aggregation. Sometimes it's not straightforward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 03:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-two-func-aggregation/m-p/145064#M590389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-27T03:16:23Z</dc:date>
    </item>
  </channel>
</rss>

