<?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: QlikView Performance issue with Aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309709#M1251096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny Talwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested with the new Expression, Still I am facing the issue. No change in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2017 08:49:50 GMT</pubDate>
    <dc:creator>sheker_amrutham</dc:creator>
    <dc:date>2017-03-31T08:49:50Z</dc:date>
    <item>
      <title>QlikView Performance issue with Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309707#M1251093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing performance issue in QlikView application. I have attached sample QlikView document with less number of records. In the application, I have added a Straight table with calculated condition. Calculated condition is max number of records should not be more than 200(Its 100000 in my original application). I have calculated max number of records using variable vMaxRecordsReachedCondition and assigned 1 or 0 to the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my original application I have a Contract which has 4000 Customers and 13000 Products, which is leading to 50 million rows in QlikView application (It's Cartesian product between Customer and Product. Each and every customer is eligible for each and every products). While evaluating variable vMaxRecordsReachedCondition, QlikView application is hanging and we did not get any response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxRecordsReachedCondition = "=If(Not vAreAttributesSelected,0, Sum(Aggr(1, $(=If(vAreAttributesSelected, vSelectedAttributeNames, 0)))) &amp;lt;=vMaxRowLimit)"&lt;/P&gt;&lt;P&gt;Please refer attached application for more clarity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any alternate to the formula "Sum(Aggr(1, $(=If(vAreAttributesSelected, vSelectedAttributeNames, 0))))", which gives same results.&lt;/P&gt;&lt;P&gt;We are using 32GB RAM and 8 Core Processor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309707#M1251093</guid>
      <dc:creator>sheker_amrutham</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Performance issue with Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309708#M1251095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Not vAreAttributesSelected,0, If(vAreAttributesSelected, &lt;SPAN style="color: #ff0000;"&gt;Count(DISTINCT $(=Replace(vSelectedAttributeNames, ',', '&amp;amp;'))))&lt;/SPAN&gt; &amp;lt;=vMaxRowLimit)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309708#M1251095</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-30T15:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Performance issue with Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309709#M1251096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny Talwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested with the new Expression, Still I am facing the issue. No change in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 08:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309709#M1251096</guid>
      <dc:creator>sheker_amrutham</dc:creator>
      <dc:date>2017-03-31T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Performance issue with Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309710#M1251097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ can give his expert advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 15:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309710#M1251097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-01T15:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Performance issue with Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309711#M1251098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To handle above scenario, I came up with a work around but I am facing issue with IF Condition when we have huge amount of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I would like to give the scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below are the variable used in application,&lt;/P&gt;&lt;P&gt;vSelectedAttributeNames = [ContractName],[ContractNumber],[CustomerName],[CustomerNumber],[ProductName],[ProductNumber]&lt;/P&gt;&lt;P&gt;vMaxRowLimit = 50000&lt;/P&gt;&lt;P&gt;vAreAttributesSelected = 1&lt;/P&gt;&lt;P&gt;vTotalRecordsUpperLimit = If(Count(Distinct ProductName) * Count(Distinct CustomerName)&amp;gt;400000, 0,-1)&lt;/P&gt;&lt;P&gt;vMaxRecordsReachedCondition = If(Not vAreAttributesSelected,0, Sum(Aggr(1, $(=If(vAreAttributesSelected, vSelectedAttributeNames, 0)))) &amp;lt;=vMaxRowLimit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a straight table with calcualted condition and Layout Show Conditon as&amp;nbsp; "If($(vTotalRecordsUpperLimit)=0,0,$(vMaxRecordsReachedCondition))".&lt;/P&gt;&lt;P&gt;I have added a Text object with Layout Show Conditon as&amp;nbsp; "Not If($(vTotalRecordsUpperLimit)=0,0,$(vMaxRecordsReachedCondition))".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached Zip file for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing issue with below expression,&lt;/P&gt;&lt;P&gt;If($(vTotalRecordsUpperLimit)=0,0,$(vMaxRecordsReachedCondition))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two contracts in the attached QlikView application. one contract has 6 records, In this case, variable vTotalRecordsUpperLimit is assigned with -1 and vMaxRecordsReachedCondition variable assigned with -1 and application is fetching 6 records and displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second contract has nearly 70 Million records, In this case vTotalRecordsUpperLimit variable is assigned with 0 and while evaluting&amp;nbsp; expression "If($(vTotalRecordsUpperLimit)=0,0,$(vMaxRecordsReachedCondition))" system is hanged. As vTotalRecordsUpperLimit is 0 it should return 0, but system hanged.&lt;/P&gt;&lt;P&gt;The same is highlighted in the application.I have tried with Pick function also but it resulted the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one share solution for the specified issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Performance-issue-with-Aggr-function/m-p/1309711#M1251098</guid>
      <dc:creator>sheker_amrutham</dc:creator>
      <dc:date>2017-04-11T11:03:53Z</dc:date>
    </item>
  </channel>
</rss>

