<?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 Aggr Function Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-Function-Issue/m-p/1691817#M52859</link>
    <description>&lt;P&gt;IN Qlik Sense I am using the below expression&lt;/P&gt;&lt;P&gt;Sum(Aggr(FABS((&lt;BR /&gt;Sum({&amp;lt;Date={"$(=Date(Max([Date)))"}&amp;gt;} Amount)&lt;BR /&gt;-&lt;BR /&gt;Sum({&amp;lt;Date={"$(=Date(Max([Date)-1))"}&amp;gt;} Amount)))),Dim A, DimB))&lt;/P&gt;&lt;P&gt;This gives me a correct result but once I start selecting different dates it spins for a long time cuz of this Aggr and Fabs&lt;/P&gt;&lt;P&gt;I tried doing the aggregate table in script but it doesnt work,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can accomplish this in Script or another way for better performance.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 00:29:42 GMT</pubDate>
    <dc:creator>Rehan</dc:creator>
    <dc:date>2020-04-08T00:29:42Z</dc:date>
    <item>
      <title>Aggr Function Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-Issue/m-p/1691817#M52859</link>
      <description>&lt;P&gt;IN Qlik Sense I am using the below expression&lt;/P&gt;&lt;P&gt;Sum(Aggr(FABS((&lt;BR /&gt;Sum({&amp;lt;Date={"$(=Date(Max([Date)))"}&amp;gt;} Amount)&lt;BR /&gt;-&lt;BR /&gt;Sum({&amp;lt;Date={"$(=Date(Max([Date)-1))"}&amp;gt;} Amount)))),Dim A, DimB))&lt;/P&gt;&lt;P&gt;This gives me a correct result but once I start selecting different dates it spins for a long time cuz of this Aggr and Fabs&lt;/P&gt;&lt;P&gt;I tried doing the aggregate table in script but it doesnt work,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can accomplish this in Script or another way for better performance.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 00:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-Issue/m-p/1691817#M52859</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-04-08T00:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-Function-Issue/m-p/1691960#M52863</link>
      <description>&lt;P&gt;If you have ensured that you really need this aggr-expression (not for each summing is an aggr() needed - either directly or indirectly by using a different chart respectively chart-design) there won't be much potential for optimizing the expression itself.&lt;/P&gt;&lt;P&gt;Another point is your used datamodel - it should go in the direction of a star-scheme and if calculations are too slow it's often helpful to ensure that all included fields come from a single table.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-Function-Issue/m-p/1691960#M52863</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-04-08T11:20:31Z</dc:date>
    </item>
  </channel>
</rss>

