<?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 App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46419#M3146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mentioned that the expression should work in context with "... certain timefield (date/week/month etc.) ...". This meant you need also to add these time-fields to your aggr. If this didn't work it would be helpful to know with which numbers do you expect which output and which you get from your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2018 13:55:39 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-04-03T13:55:39Z</dc:date>
    <item>
      <title>Aggr Function</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46414#M3141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with an aggr function. I think in theory the formula i use should be right but somehow it does not work. I am calculating the driven kilometers of trucks with the following formula: Max (Mileage) - Min (Mileage), and this works fine. Every truck is linked to a department. Now i want to make a pivottable with department as a dimension and a certain timefield (date/week/month etc.) as a dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The measure should calculate for every truck separately the driven kilometers and then calculate the average of all trucks per department. I tried to use this formula but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg (aggr ((Max (MILEAGE)-Min (MILEAGE)),ASSET_NR_LINKED))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereby ASSET_NR_LINKED is the dimension for the different trucks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone who can help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46414#M3141</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-04-03T13:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46415#M3142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could a single truck land up in more then one Department or is there a one to one relation between Department and truck? If it is not one to one, then may add Department to your Aggr() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Avg(Aggr((Max(MILEAGE) - Min(MILEAGE)), &lt;SPAN style="color: #ff0000;"&gt;Department&lt;/SPAN&gt;, ASSET_NR_LINKED))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46415#M3142</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-03T13:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46416#M3143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No a single truck is only linked to one department, so this is not the case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46416#M3143</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-04-03T13:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46417#M3144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you still tried this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg(Aggr((Max(MILEAGE) - Min(MILEAGE)), &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Department&lt;/SPAN&gt;, ASSET_NR_LINKED))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46417#M3144</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-03T13:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46418#M3145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah i tried, but the result is exactly the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46418#M3145</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-04-03T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46419#M3146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mentioned that the expression should work in context with "... certain timefield (date/week/month etc.) ...". This meant you need also to add these time-fields to your aggr. If this didn't work it would be helpful to know with which numbers do you expect which output and which you get from your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46419#M3146</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-03T13:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46420#M3147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus, the addition of the timefield seems to solve the problem &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, 03 Apr 2018 14:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function/m-p/46420#M3147</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-04-03T14:17:40Z</dc:date>
    </item>
  </channel>
</rss>

