<?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 Problem with aggr in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr/m-p/1782906#M60960</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate the slope &amp;amp; intersect with the linest_m function that works ok but I am always struggling with the aggr. Now, in the table I want the calculation to be done one each gradient COUNTRYCODE and FUELTYPE.&amp;nbsp; But now it does it over all. So, when I filter on a specific countrycode and fueltype, the calculation of linest_m is correct but how can I manage that the calculation takes place, without a filter placed, always between these dimensions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual calculation is&lt;/P&gt;&lt;P&gt;&amp;nbsp;linest_m(total aggr(avg(AVGPERF) ,STEP),log(STEP))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I assume that somehow I have to add the 2 dimensions in here. I tried all kind of possibilities but without luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49113i5C8D8FA7BB2F8542/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;when filtered on a fueltype &amp;amp; countrycode, the correct amount is calculated for that section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49114iC772C19D42508ADC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 07:05:42 GMT</pubDate>
    <dc:creator>Remco</dc:creator>
    <dc:date>2021-02-16T07:05:42Z</dc:date>
    <item>
      <title>Problem with aggr</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr/m-p/1782906#M60960</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate the slope &amp;amp; intersect with the linest_m function that works ok but I am always struggling with the aggr. Now, in the table I want the calculation to be done one each gradient COUNTRYCODE and FUELTYPE.&amp;nbsp; But now it does it over all. So, when I filter on a specific countrycode and fueltype, the calculation of linest_m is correct but how can I manage that the calculation takes place, without a filter placed, always between these dimensions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual calculation is&lt;/P&gt;&lt;P&gt;&amp;nbsp;linest_m(total aggr(avg(AVGPERF) ,STEP),log(STEP))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I assume that somehow I have to add the 2 dimensions in here. I tried all kind of possibilities but without luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49113i5C8D8FA7BB2F8542/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;when filtered on a fueltype &amp;amp; countrycode, the correct amount is calculated for that section:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49114iC772C19D42508ADC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 07:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-aggr/m-p/1782906#M60960</guid>
      <dc:creator>Remco</dc:creator>
      <dc:date>2021-02-16T07:05:42Z</dc:date>
    </item>
  </channel>
</rss>

