<?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: Calculation in load before resident load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066194#M940812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not proper set analysis either. The specification between braces is either a list of values (a set) or an (advanced) search expression producing a list of values. Sequences of multiple operators like &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;and &amp;gt;=&lt;/EM&gt;&lt;/SPAN&gt; aren't allowed in&lt;SPAN style="font-size: 13.3333px;"&gt; expressions nor in set analysis&lt;/SPAN&gt;. And again, parentheses in your set modifier are unbalanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check your syntax. The first chart looks good, but are you sure it's correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 17:36:37 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-01-25T17:36:37Z</dc:date>
    <item>
      <title>Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066185#M940803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to perform a insertion of data by the user and then do a calculation in script before showing results to user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nowadays&lt;SPAN style="font-size: 13.3333330154419px;"&gt; user alter data by using an inputfield and&lt;/SPAN&gt; calculation is done in the front end, in chart expression, which is taking 3 minutes to show results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing that? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 13:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066185#M940803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066186#M940804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the user uses the desktop client, you can use INPUT function to enter data within the script execution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor1331"&gt;&lt;/A&gt;&lt;A name="input("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;EM&gt;Input(&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;str cue [, str caption]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This function can be used in the script only and opens an input box that prompts the user for a value during the script execution. The parameters cue and caption are used as message and caption texts, respectively. The function returns the entered value. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The input box function returns NULL if the dialog is cancelled, closed or cannot be shown. &lt;/EM&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;EM&gt;Example:&lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;EM&gt;Load &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Input('Enter value', 'Input box') as v, &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Recno () as r &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;autogenerate 3; &lt;/EM&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Alternatively, the user could create an Excel file and then th Excel table could be integrated in the script load.&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;But if your main concern is the performance of your chart expression, I would rather have a look at the expression itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 13:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066186#M940804</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-25T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066187#M940805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! Why your charts are calculated so long? (3 minutes) Can you attach a sample? &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;There is no&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;two-way communication&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;between the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;script&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and front end. However, you can use input function in script, or &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps alt-edited"&gt;unusual method&lt;/SPAN&gt;&lt;/SPAN&gt; - macros for your &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps alt-edited"&gt;complex calculation.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 13:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066187#M940805</guid>
      <dc:creator>asgardd2</dc:creator>
      <dc:date>2016-01-25T13:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066188#M940806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think using input would not help users, as they have to see chart first and then select which data (in this case is a date) he wants to put further or back from the initial data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression, I am using double if to compare maintenance data&amp;gt;=Workdays&amp;nbsp; and Maintenance date + days of inspection &amp;lt;= Workdays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the real expression I am trying to optimize. &lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COUNT(distinct if([Date of Maintenance]&amp;lt;=[WORK_DAY],if(lastworkdate(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Date of Maintenance]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), Round(([Days of Maintenance]/vDays),1))&amp;gt;=[WORK_DAY],[S/N])))* (METER * vConvert)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use set analysis, but looking at the chart the result is like a constant. It does not show ups and downs from original expression &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 13:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066188#M940806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T13:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066189#M940807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anton,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, see function in my comment above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 14:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066189#M940807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066190#M940808</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;I think users will not go to Script and Enter the fields he requires,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want like that means ,You can add a field&amp;nbsp; Using INLINE One way like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14537296408585672 jive_text_macro" jivemacro_uid="_14537296408585672"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD Customer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales Order ID],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipDate as Date,&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Sales Orders.xls]&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, table is [Sales Orders$]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DataEntry:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;Customer, Sales Order ID,Date,&amp;nbsp; Product, Sales, Quantity&lt;/P&gt;
&lt;P&gt;Curtisu, Liu SO691145, 1/9/2016,All-Purpose Bike Stand1 ,1599.00, 5&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second way thorugh input box from front end:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14537314672281854 jive_text_macro" jivemacro_uid="_14537314672281854" modifiedtitle="true"&gt;
&lt;P&gt;INPUTFIELD InputVar;&lt;/P&gt;
&lt;P&gt;INPUTFIELD Call;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD Location,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as InputVar,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Call&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;Table]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embed&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ded labels, table is @1);&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help you to enter the data from front end using INPUT field,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 14:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066190#M940808</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-25T14:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066191#M940809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your expression. IMHO it doesn't work at all. There is one parenthesis too many, and at least one relational expression seems broken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory, you should be able to convert this expression into set analysis, which will eliminate the performance penalty of &lt;SPAN style="font-size: 13.3333px;"&gt;possibly &lt;/SPAN&gt;executing millions of double IFs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066191#M940809</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-25T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066192#M940810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree. set analysis improves performance in most of cases, but here I am experiencing a different result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If formula &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;COUNT(distinct if([Date of Maintenance]&amp;gt;=[WORK_DAY],if(lastworkdate([Date of Maintenance]), Round(([Days of Maintenance]/vDays),1))&amp;lt;=[WORK_DAY],[S/N])))* (METER * vConvert)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IF.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112487_IF.PNG" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;WORK_DAY={"&amp;lt;=[Date of Maintenance] and &amp;gt;=lastworkdate([Date of Maintenance]), Round(([Days of Maintenance]/vDays),1))"}&amp;gt;}[S/N]) * (METER * vConvert)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="set analysis.PNG" class="jive-image image-2" src="/legacyfs/online/112489_set analysis.PNG" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;So, my desired result is like the first chart, but if I use set analysis I get like second chart. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066192#M940810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T17:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066193#M940811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/208680"&gt;hirishv7&lt;/A&gt;‌! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I have a preliminary data loaded from script and calculated. After that the results are filtered as users' need and shown in a chart. User can interact with this chart modifying a desired date. This data (a date) needs to be calculated again and updated in chart, That's why I would like to add it in script and do a kind of reload. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066193#M940811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T17:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066194#M940812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not proper set analysis either. The specification between braces is either a list of values (a set) or an (advanced) search expression producing a list of values. Sequences of multiple operators like &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;and &amp;gt;=&lt;/EM&gt;&lt;/SPAN&gt; aren't allowed in&lt;SPAN style="font-size: 13.3333px;"&gt; expressions nor in set analysis&lt;/SPAN&gt;. And again, parentheses in your set modifier are unbalanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check your syntax. The first chart looks good, but are you sure it's correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066194#M940812</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-25T17:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation in load before resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066195#M940813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pardon Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the correct formulas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If formula&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;COUNT(distinct if([Date of Maintenance]&amp;gt;=[WORK_DAY],if(lastworkdate([Date of Maintenance], Round(([Days of Maintenance]/vDays),1))&amp;lt;=[WORK_DAY],[S/N])))* (METER * vConvert)&lt;BR /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Set Analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(distinct {$&amp;lt;WORK_DAY={"&amp;lt;=[Date of Maintenance] and &amp;gt;=lastworkdate([Date of Maintenance], Round(([Days of Maintenance]/vDays),1))"}&amp;gt;}[S/N]) * (METER * vConvert)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results in first formula is correct, but takes longer as my dataset is big.&lt;/P&gt;&lt;P&gt;In this formula I have only the initial date of maintenance and last date. In chart, client is supposed to see all days from initial to last. That's why i had put &amp;lt;= and &amp;gt;=.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The dataset does not have these dates preload, either because user can change the Date of Maintenance and divide Days of Maintenance per another value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea of how can I solve it through set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-in-load-before-resident-load/m-p/1066195#M940813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-25T17:58:54Z</dc:date>
    </item>
  </channel>
</rss>

