<?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: Slow Calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343892#M413735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, to summarize my understanding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- you have multiple fact tables (some of them aggregated) and to avoid synthetic keys, you renamed identical fields like Profit Center, FY, FQ, FP in one (some) of the tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- now, you are trying to restore the same associations in a chart expression using multiple IF Conditions and tying these multiple renamed fields, and it is obviously very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I may suggest... You are always better off to leverage Qlik associative logic and resolve these issues in your data model, rather than in a chart expression. Working with Qlik data associations is a lot faster than trying to tie the same fields using IF conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, one option is to build a Link Table that would connect the multiple fact tables with their identical Key fields (Profit Center, TY, FQ, FP, ...). Refer to Barry Harmsen's "Data Modeling" session from the &lt;A href="http://masterssummit.com/"&gt;Masters Summit&lt;/A&gt; for a practical example of how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For truly large data sets, however, we know that Link Tables don't perform very well (remember my Performance Tuning session at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit&lt;/A&gt;?). Therefore, we typically recommend concatenating multiple facts into a single Fact Table. Sometimes it requires restoring some missing associations, but it's worth the trouble because of the better performance. Barry's session covers these topics, too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have one of the two "valid" data models for multiple fact tables (either a Link Table, or a Concatenated Fact), then you won't need to tie multiple renamed fields together, and your remaining conditions will be simple enough for a simple Set Analysis (covered in my session at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have all the tools in your hands, now it's just about applying them to your pretty complex business scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2017 20:46:57 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2017-04-20T20:46:57Z</dc:date>
    <item>
      <title>Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343868#M413711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning everyone,&lt;/P&gt;&lt;P&gt;I am having an issue with the amount of time it's taking to do a calculation.&amp;nbsp; When I select a singles sales office response is fine, however when I select a company code the CPU pegs.....Here is my count statement.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FISPD&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;FISPD_CNT&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;InActive&lt;/SPAN&gt; = '1' &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FISYR&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;FISYR_CNT&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[Employee Number]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343868#M413711</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-19T12:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343869#M413712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a flag in the script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(FISPD = FISPD_CNT and InActive = '1' and FISYR =FISYR_CNT, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Flag = {1}&amp;gt;}&lt;/SPAN&gt; [Employee Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343869#M413712</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-19T12:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343870#M413713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort of hard to create a flag when the values are in two different tables....The FISYR_CNT and FISPD are in the EMP_CNTS table, FISYR and FISPD are in FiscalCalendar and InAvtive is in PA0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="160497" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160497_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343870#M413713</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-19T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343871#M413714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you can either create a new table in the script where you can bring the necessary fields into single table to perform your test or I guess you will have to live with the slowness....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try the below which may or may not help&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[Employee Number] = {"=FISPD = FISPD_CNT and FISYR =FISYR_CNT"}, &lt;STRONG style="font-size: 13.3333px;"&gt; InActive = {1}&lt;/STRONG&gt;&amp;gt;} [Employee Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343871#M413714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-19T12:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343872#M413715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[Employee Number] = {"=FISPD = FISPD_CNT and FISYR =FISYR_CNT"}, &lt;STRONG style="font-size: 13.33px;"&gt; InActive = {1}&lt;/STRONG&gt;&amp;gt;} [Employee Number])&lt;/STRONG&gt;&amp;nbsp; brought back zeros.....&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343872#M413715</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-19T12:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343873#M413716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya I feared that... don't think there is another way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343873#M413716</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-19T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343874#M413717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;[Employee Number] = {"=FISPD = FISPD_CNT and FISYR =FISYR_CNT"}...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ist the same as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;[Employee Number] = {"=only(FISPD) = only(FISPD_CNT) and only(FISYR) =only(FISYR_CNT)"}...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the context of each dimension [Employee Number]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this won't work.&lt;/P&gt;&lt;P&gt;Or am I wrong Sunny?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343874#M413717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343875#M413718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you explain what is stored exactly in the fields:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FISPD, FISPD_CNT, FISYR, FISYR_CNT ???&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343875#M413718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T13:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343876#M413719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FISPD is (001 - 012) months from table (FiscalCalendar)&lt;/P&gt;&lt;P&gt;FISPD_CNT is (001 - 012) months from summary table (EMP_CNTS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FISYR is (2013 - 2017) years from table (FiscalCalendar)&lt;/P&gt;&lt;P&gt;FISYR_CNT is (2013 - 2017) years from table (EMP_CNTS)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343876#M413719</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-19T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343877#M413720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(FISPD&amp;amp;'|'&amp;amp;FISPD_CNT) as KEY1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(FISYR&amp;amp;'|'&amp;amp;FISYR_CNT) as KEY2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and change you expression the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;({&amp;lt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.33px;"&gt;InActive = {1}&amp;gt;}&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(KEY1= KEY2,&lt;SPAN style="color: #800000;"&gt;[Employee Number]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343877#M413720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T13:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343878#M413721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your fields "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FISYR&lt;/SPAN&gt;" and "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FISYR_CNT&lt;/SPAN&gt;" from the Fiscalcalendar are based on the "StartDate" from PA0000,&lt;/P&gt;&lt;P&gt;You can &lt;SPAN style="text-decoration: underline;"&gt;easily&lt;/SPAN&gt; recreate them in PA0000 for creating the FLAG field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343878#M413721</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-04-19T13:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343879#M413722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FISYR and FISYR_CNT are in 2 separate tables....how can I used autonumber, same with&lt;/P&gt;&lt;P&gt;FISPD and FISPD_CNT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343879#M413722</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-19T13:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343880#M413723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're right, you cant't &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343880#M413723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T15:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343881#M413724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; --&amp;gt; i just mixed it up... perhaps it is a bit faster...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(FISYR_CNT&amp;amp;'|'&amp;amp;FISPD_CNT) as KEY1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(FISYR&amp;amp;'|'&amp;amp;FISPD) as KEY2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and change you expression the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;({&amp;lt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.33px;"&gt;InActive = {1}&amp;gt;}&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(KEY1= KEY2,&lt;SPAN style="color: #800000;"&gt;[Employee Number]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343881#M413724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T15:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343882#M413725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still very slow and pegging CPU at 100%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 18:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343882#M413725</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-19T18:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343883#M413726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please describe in plain English what business question are you trying to answer, and what is your data structure that you use to answer this question? I'm pretty sure there must be a better way...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Oleg Troyansky &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 20:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343883#M413726</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-04-19T20:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343884#M413727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a business requirement to track total employee counts and turnover percentages for the past 5 years (Year, Quarter, Month, Week)&amp;nbsp; by action (termination, layoff, leave of absence,Etc.) and reason for termination (lack of work, attend school, illness / injury, Etc.).&amp;nbsp; I have created a summary file EMP_CNTS which contains the total number of employees by year, quarter, month and week.&amp;nbsp; I need to get the actions and reasons from PA0000 which carries the date of termination.&amp;nbsp; Hope this helps.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 10:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343884#M413727</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-20T10:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343885#M413728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modified my script to include FISYR, QTR, FISPD, WEDAT and WKNO in PA0000.&amp;nbsp; I added KEY1 and KEY2, but still very slow.&lt;/P&gt;&lt;P&gt;thanks&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160639_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 12:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343885#M413728</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-20T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343886#M413729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) So did you try the approach of Sunny with the flag?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a flag in the script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(FISPD = FISPD_CNT and InActive = '1' and FISYR =FISYR_CNT, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Flag = {1}&amp;gt;}&lt;/SPAN&gt; [Employee Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) How many rows are in PA0000?&lt;/P&gt;&lt;P&gt;c) Which kind of chart do you use?&lt;/P&gt;&lt;P&gt;d) you can remove KEY1 and KEY2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide as much information as possible &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343886#M413729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-20T15:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343887#M413730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FISPD and FISPD_CNT are in 2 separate tables.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Calculations/m-p/1343887#M413730</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2017-04-20T15:19:39Z</dc:date>
    </item>
  </channel>
</rss>

