<?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: Sum distinct (Max-Min) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sum-distinct-Max-Min/m-p/35665#M2415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to use the aggr function, but i dont have any experience with using this function. When I enter the following formula, i only get 0 values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (aggr (sum ((Max (MILEAGE)-Min (MILEAGE))),ASSET_NR_LINKED,[ACTIVITY_DATE.autoCalendar.Date])) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone who knows what is going wrong? So i want to calculate the driven kilometers per day per truck, and then sum everything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2018 13:33:52 GMT</pubDate>
    <dc:creator>pascaldijkshoor</dc:creator>
    <dc:date>2018-03-30T13:33:52Z</dc:date>
    <item>
      <title>Sum distinct (Max-Min)</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-distinct-Max-Min/m-p/35663#M2413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating the driven kilometers of trucks with the calculation Max (Mileage) - Min (Mileage) and this works fine. Every truck is linked to a department. Now i want to make a chart with department as dimension and summed or average driven kilometers of all trucks in a certain department. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formulas i tried did not work, because the formula takes from all trucks the truck with the highest mileage and the truck with the lowest mileage. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the formula needs to calculate the driven kilometers for every truck separately and then sum it up per department. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone who can help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 11:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-distinct-Max-Min/m-p/35663#M2413</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-03-30T11:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct (Max-Min)</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-distinct-Max-Min/m-p/35664#M2414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need to use the &lt;A href="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/aggr.htm" title="https://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/ChartFunctions/aggr.htm"&gt;Aggr&lt;/A&gt; function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 12:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-distinct-Max-Min/m-p/35664#M2414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-30T12:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum distinct (Max-Min)</title>
      <link>https://community.qlik.com/t5/App-Development/Sum-distinct-Max-Min/m-p/35665#M2415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to use the aggr function, but i dont have any experience with using this function. When I enter the following formula, i only get 0 values: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (aggr (sum ((Max (MILEAGE)-Min (MILEAGE))),ASSET_NR_LINKED,[ACTIVITY_DATE.autoCalendar.Date])) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone who knows what is going wrong? So i want to calculate the driven kilometers per day per truck, and then sum everything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 13:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sum-distinct-Max-Min/m-p/35665#M2415</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-03-30T13:33:52Z</dc:date>
    </item>
  </channel>
</rss>

