<?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: Execution is taking long time for where condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613665#M734816</link>
    <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are already a number of resident loads.&amp;nbsp; From the script below is the sample code for this.&lt;/P&gt;&lt;P&gt;Could you please advise how to write the resident load on the top of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONCATENATE ([Order Delivery Days])&lt;BR /&gt;LOAD *,&lt;BR /&gt;Dual (If ([Delivery Difference Days] &amp;gt; 0,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 5, 'Week or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 10, 'Two Weeks or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 20, 'Month or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 40, 'Two Months or Less', 'Over Two Months'))))),&lt;BR /&gt;If ([Delivery Difference Days] &amp;gt; 0,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 5, 1,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 10, 2,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 20, 3,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 40, 4, 5)))))) as [Late Status];&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;Sum ([Date Type]) as [Delivery Difference Days]&lt;BR /&gt;GROUP BY [Sales Document Item Key];&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;ApplyMap ('FactoryCalendar_map', [Original Factory Calendar] &amp;amp; '-' &amp;amp; Num ([Original Planned Delivery Date] + Iterno ()), 0) as [Date Type]&lt;BR /&gt;WHILE Num ([Original Planned Delivery Date] + Iterno ()) &amp;lt;= Num (Today ());&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;[Original Factory Calendar],&lt;BR /&gt;[Original Planned Delivery Date]&lt;BR /&gt;RESIDENT [Order Delivery]&lt;BR /&gt;&lt;STRONG&gt;WHERE Num ([Original Planned Delivery Date]) &amp;lt; Num (Today ()) AND (Isnull ([Comparison Date]) OR ([Delivered Quantity Punctuality] - [Original Confirmed Quantity]) &amp;lt; 0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 07:13:00 GMT</pubDate>
    <dc:creator>kishorj1982</dc:creator>
    <dc:date>2019-08-19T07:13:00Z</dc:date>
    <item>
      <title>Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613197#M734812</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the screenshot of the log file.&lt;/P&gt;&lt;P&gt;In the script file we have a condition as per below,&lt;/P&gt;&lt;P&gt;==&amp;gt;&lt;BR /&gt;WHERE Num ([Original Planned Delivery Date]) &amp;lt; Num (Today ()) AND (Isnull ([Comparison Date]) OR ([Delivered Quantity Punctuality] - [Original Confirmed Quantity]) &amp;lt; 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a huge volume of data and it seems that because of the above condition takes too much long time to reload.&lt;/P&gt;&lt;P&gt;Could you please advise how do I reduce the calculation time for where condition.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613197#M734812</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2024-11-16T02:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613217#M734813</link>
      <description>&lt;P&gt;It's not necessarily the where clause that's the problem. Unless you specifically tested with and without and seen that it's indeed the where clause that's causing the long processing time of the complete load statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 11:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613217#M734813</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-08-16T11:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613239#M734814</link>
      <description>&lt;P&gt;Incremental load could be an answer.&lt;/P&gt;&lt;P&gt;Please find the reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/QVD_Incremental.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/QVD_Incremental.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 11:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613239#M734814</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-08-16T11:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613287#M734815</link>
      <description>&lt;P&gt;I could imagine that rather too less RAM or a heavy workload on your machine are causing this long load-time. Beside this it might be an option to transfer the condition into a flag-field in the resident-table, maybe with:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;if(([Original Planned Delivery Date] &amp;lt; Today ()) AND (Isnull ([Comparison Date]) OR ([Delivered Quantity Punctuality] - [Original Confirmed Quantity]) &amp;lt; 0), 1, null()) as Flag&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;and then your where-clause could look like:&lt;/P&gt;&lt;P&gt;where exists(Flag);&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 13:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613287#M734815</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-08-16T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613665#M734816</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are already a number of resident loads.&amp;nbsp; From the script below is the sample code for this.&lt;/P&gt;&lt;P&gt;Could you please advise how to write the resident load on the top of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONCATENATE ([Order Delivery Days])&lt;BR /&gt;LOAD *,&lt;BR /&gt;Dual (If ([Delivery Difference Days] &amp;gt; 0,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 5, 'Week or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 10, 'Two Weeks or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 20, 'Month or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 40, 'Two Months or Less', 'Over Two Months'))))),&lt;BR /&gt;If ([Delivery Difference Days] &amp;gt; 0,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 5, 1,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 10, 2,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 20, 3,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 40, 4, 5)))))) as [Late Status];&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;Sum ([Date Type]) as [Delivery Difference Days]&lt;BR /&gt;GROUP BY [Sales Document Item Key];&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;ApplyMap ('FactoryCalendar_map', [Original Factory Calendar] &amp;amp; '-' &amp;amp; Num ([Original Planned Delivery Date] + Iterno ()), 0) as [Date Type]&lt;BR /&gt;WHILE Num ([Original Planned Delivery Date] + Iterno ()) &amp;lt;= Num (Today ());&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;[Original Factory Calendar],&lt;BR /&gt;[Original Planned Delivery Date]&lt;BR /&gt;RESIDENT [Order Delivery]&lt;BR /&gt;&lt;STRONG&gt;WHERE Num ([Original Planned Delivery Date]) &amp;lt; Num (Today ()) AND (Isnull ([Comparison Date]) OR ([Delivered Quantity Punctuality] - [Original Confirmed Quantity]) &amp;lt; 0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 07:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613665#M734816</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-08-19T07:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613700#M734817</link>
      <description>&lt;P&gt;Beside a possible overload on your machine there are multiple things which might increase the performance. One was already mentioned by transferring the check of the where-clause into a flag-field of the source-table. The next is the aggregation with group by within the preceeding-chain. I assume it will be rather a disadvantage from a performance point of view and I suggest to test if a split of the chain into 3 loadings would be faster.&lt;/P&gt;&lt;P&gt;Another point is your if-loop which could be optimized if the result of each check would be a dual value, like:&lt;/P&gt;&lt;P&gt;if(condition, dual(string, number), else ...&lt;/P&gt;&lt;P&gt;A small benefit might come by replacing the if-loop with a pick(match()) approach. More should be possible if you could use class() with continuing bucket.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1613700#M734817</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-08-19T08:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1614760#M734818</link>
      <description>Hi Markus, As suggested by you I have splitted my transformed load to number of separate calculations using resident load. It has been observed that below code is the main culprit behind the large reload time. Order_Delivery_Temp2: LOAD [Sales Document Item Key], ApplyMap ('FactoryCalendar_map', [Original Factory Calendar] &amp;amp; '-' &amp;amp; Num ([Original Planned Delivery Date] + Iterno ()), 0) as [Date Type] resident Order_Delivery_Temp1 WHILE Num ([Original Planned Delivery Date] + Iterno ()) &amp;lt;= Num (Today ()); As I am unable to get how to get rid of this. Could you please share your thoughts on this. Thanks.</description>
      <pubDate>Wed, 21 Aug 2019 11:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1614760#M734818</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-08-21T11:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1614785#M734819</link>
      <description>&lt;P&gt;While-loops are usually quite fast whereby if the number of iterations is rather big it will increase the number of records appropriate. I don't know neither your data nor your requirements but I could imagine that there are also other ways to generate the [Late Status] which might be more efficient.&lt;/P&gt;&lt;P&gt;Beside this the following should be (a bit) faster:&lt;/P&gt;&lt;P&gt;LOAD [Sales Document Item Key], ApplyMap ('FactoryCalendar_map', [Original Factory Calendar] &amp;amp; '-' &amp;amp; N, 0) as [Date Type];&lt;BR /&gt;LOAD [Sales Document Item Key], [Original Factory Calendar], [Original Planned Delivery Date] + Iterno()&lt;STRONG&gt; -1&lt;/STRONG&gt; as N&lt;BR /&gt;WHILE [Original Planned Delivery Date] + Iterno()&lt;STRONG&gt; -1&lt;/STRONG&gt; &amp;lt;= Today();&lt;/P&gt;&lt;P&gt;Further I'm not sure that you need the mapping and/or it maybe significantely simplyfied so that no loop is needed. Maybe something like this is also enough: Today() - [Original Factory Calendar]&lt;/P&gt;&lt;P&gt;Furthermore you may consider to apply an incremental approach.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 12:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1614785#M734819</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-08-21T12:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1615849#M734820</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;The purpose of the script is to calculate the working days' difference between the planned delivery date and the current date based on the factory calendar. Simple subtraction will not work in this case as it will include all days including holidays. Using networkdays() function does not work this case either because while we can exclude Mon-Friday holidays using it, it will also always exclude Saturdays and Sundays from the calculation, which is not what we want as some Saturdays or Sundays might be working days for particular factory calendar. The mapping is needed for different KC factory calendars, which might have different holidays and scheduled working weekends. Basically, we need to have a solution that will consider different factory calendars for each row and will calculate the date difference based on that factory calendar. I would welcome a better solution as the while + mapping loop is quite heavy, but it should be able to do the same functionality as the existing logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 09:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1615849#M734820</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-08-23T09:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1615943#M734821</link>
      <description>&lt;P&gt;I think I would try a different approach and do all this work within the calendars and then just picking the wanted value.&lt;/P&gt;&lt;P&gt;This means to create a continuous workday-counter within the calendar. Each workday - defined by the weekdays and which aren't defined holidays - get a 1 and the others 0 (beside applying them within a listbox or as a set analysis condition is such flag-field quite useful to sum the values over periods).&lt;BR /&gt;&lt;BR /&gt;The next step would be to cummulate them with interrecord-functions like peek or previous. With it you could pick there the cummulated value from today and then subtracting from it the cummulated value from your delivery date.&lt;/P&gt;&lt;P&gt;But I think you could go even a step further and adding in the calendar another field which calculates already there the differenz between each date and today - and to this result could be already the [Late Status] bucket mapped.&lt;/P&gt;&lt;P&gt;After all you don't need the whole approach of the while-looping, aggregating and clustering else just picking the right value with a mapping.&lt;BR /&gt;If there are multiple different factories and appropriate calendars you may need to repeat it a few times and adding them together but it shouldn't be too difficult and mean not more efforts as you already have with your calendar-creation.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 12:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1615943#M734821</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-08-23T12:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1616025#M734822</link>
      <description>&lt;P&gt;Thanks, Markus,&lt;/P&gt;&lt;P&gt;Could you please share a sample example for this because I am unable to get how to proceed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 14:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1616025#M734822</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-08-23T14:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1616044#M734823</link>
      <description>&lt;P&gt;Some parts of it (creating a 0/1 workday flag based on weekdays and a separate holiday-list which is considered with a mapping) are included here: &lt;A href="https://community.qlik.com/t5/QlikView-Documents/Master-Calendar-with-movable-holidays/ta-p/1485255" target="_self"&gt;Master-Calendar-with-movable-holidays&lt;/A&gt;. Not included is the cumulating per&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Peek-or-Previous/ta-p/1484418" target="_self"&gt;Peek-or-Previous&lt;/A&gt; but it shouldn't be too complicated to apply especially if the calendars are created separately it would be quite simple, like:&lt;/P&gt;&lt;P&gt;load *, rangesum(peek('WorkdayFlagCum'), WorkdayFlag) as WorkdayFlagCum;&lt;BR /&gt;load ... normal calendar ...;&lt;/P&gt;&lt;P&gt;The mentioned assigning of the today() value might be possible with a lookup() in another preceeding load. If not it would be of course possible to fetch it with a resident-load on this calendar table and then mapping/joining it back and applying on it the bucket-mapping.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 14:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1616044#M734823</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-08-23T14:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1617004#M734824</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying for this but unable to achieve the results. Also, my results are affecting.&lt;/P&gt;&lt;P&gt;My aim is to reduce the overall reload time for while condition without affecting the results..&lt;/P&gt;&lt;P&gt;Below is the sample code is this.&lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt;Dual (If ([Delivery Difference Days] &amp;gt; 0,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 5, 'Week or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 10, 'Two Weeks or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 20, 'Month or Less',&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 40, 'Two Months or Less', 'Over Two Months'))))),&lt;BR /&gt;If ([Delivery Difference Days] &amp;gt; 0,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 5, 1,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 10, 2,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 20, 3,&lt;BR /&gt;If ([Delivery Difference Days] &amp;lt;= 40, 4, 5)))))) as [To Be Delivered Status];&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;Sum ([Date Type]) as [Delivery Difference Days]&lt;BR /&gt;GROUP BY [Sales Document Item Key];&lt;BR /&gt;LOAD [Sales Document Item Key],&lt;BR /&gt;ApplyMap ('FactoryCalendar_map', [Original Factory Calendar] &amp;amp; '-' &amp;amp; Num ([Original Planned Delivery Date] - Iterno () + 1), 0) as [Date Type]&lt;BR /&gt;WHILE Num ([Original Planned Delivery Date] - Iterno () + 1) &amp;gt;= Num (Today ());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please suggest what kind of modifications do we need to do for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 11:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1617004#M734824</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2019-08-27T11:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execution is taking long time for where condition</title>
      <link>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1617031#M734825</link>
      <description>&lt;P&gt;My last suggestion was not to make some modifications else to change the whole datamodel. If my first suggestions with splitting the preceeding load-chain into several parts and the various mentioned approaches of optimization didn't speed enough the load-times - then you need to do it in a different way.&lt;/P&gt;&lt;P&gt;One would be to implement an incremental logic for it and another my last suggestion to transfer the date-calculations and their bucket-matching into the calendar-level and then just picking the values from there. I don't think that this approach is very difficult to develop else I assume that's easier than your existing one. But you shouldn't do it in your existing application else create a new one and build one or two of these calendars and a reduced dataset of your fact-table and devloping it step by step.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 11:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execution-is-taking-long-time-for-where-condition/m-p/1617031#M734825</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-08-27T11:59:51Z</dc:date>
    </item>
  </channel>
</rss>

