<?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: an exp with many variables can be put in load script???? need help please??? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648783#M1087158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok understood, thanks for the response,&lt;/P&gt;&lt;P&gt;but it should not just take 1 single line of value,there are several rows that will be have to taken and calculated .like the column called &lt;STRONG style="text-decoration: underline;"&gt;option_chk&lt;/STRONG&gt; in my table is the same as this exp in script below the function.Here each row has its own values getting calculated.Hence in such a scenerio how can we do this??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 07:52:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-10T07:52:50Z</dc:date>
    <item>
      <title>an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648778#M1087151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Please can someone help me to solve the below issue?????????????please????&lt;/P&gt;&lt;P&gt;I have attached a file in which I have a table with the last column called as 'net',this expression consists of many variables in it.&lt;/P&gt;&lt;P&gt;I want to put this expression in the main script/load script and rename it as a field A''so that my future calculations involving this field A would be much easier.Can we do this???????&lt;/P&gt;&lt;P&gt;please can someone help??&lt;/P&gt;&lt;P&gt;the variables are updated in a macro .if you check in the edit module the function is 'Black 76'&lt;/P&gt;&lt;P&gt;I think we need to call macro and then put this exp below renaming it as required.Is this the process??else please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 06:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648778#M1087151</guid>
      <dc:creator />
      <dc:date>2014-06-10T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648779#M1087152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;after searching in the community,I got a solution of how we pass the macro function in load script ,I did the same in my script,the function has no error but the exp which I try to rename after that shows invalid expression message while running.&lt;/P&gt;&lt;P&gt;my function in macro that is used in script is &lt;STRONG&gt;Black 76&lt;/STRONG&gt;:its&amp;nbsp; used in last tab,at the end in script.&lt;/P&gt;&lt;P&gt;Please can anyone help me out??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648779#M1087152</guid>
      <dc:creator />
      <dc:date>2014-06-10T07:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648780#M1087153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is expecting the parameters that have been declared in the function definition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648780#M1087153</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-10T07:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648781#M1087154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi tresesco&lt;/P&gt;&lt;P&gt;.. I have actually commented the msg box in edit module so that it doesnt ask for the parameters.but still I get below error as '&lt;SPAN style="text-decoration: underline;"&gt;invalid expression&lt;/SPAN&gt;.' for the exp that I have given below the macro function in script.&lt;/P&gt;&lt;P&gt;Don understand where its going wrong .What ever I am doing is it the right way ?? or another way is present???&lt;/P&gt;&lt;P&gt;Please can you guide me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648781#M1087154</guid>
      <dc:creator />
      <dc:date>2014-06-10T07:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648782#M1087156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See, when you write macro like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function Black76(CallPutFlag,F,X,T,r,v) &lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;That means the function calculates on six input values(for CallPutFlag,F,X,T,r,v) and returns one. When you want to get some output from the function, it should actually been called in the script like:&lt;/P&gt;&lt;P&gt;LET Black76 = Black76(&lt;STRONG&gt;Value1, Value2,.....Value6&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are missing those. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648782#M1087156</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-10T07:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648783#M1087158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok understood, thanks for the response,&lt;/P&gt;&lt;P&gt;but it should not just take 1 single line of value,there are several rows that will be have to taken and calculated .like the column called &lt;STRONG style="text-decoration: underline;"&gt;option_chk&lt;/STRONG&gt; in my table is the same as this exp in script below the function.Here each row has its own values getting calculated.Hence in such a scenerio how can we do this??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 07:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648783#M1087158</guid>
      <dc:creator />
      <dc:date>2014-06-10T07:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648784#M1087162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do that by using the function in the Load script like I have shown here :&lt;A href="https://community.qlik.com/docs/DOC-4651"&gt;StrCmp Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648784#M1087162</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-10T08:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648785#M1087165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I couldn't end up with the result as I wanted ,but thanks a lot for your help and time.&lt;/P&gt;&lt;P&gt;Will see how it works out,will do some more trials&amp;nbsp; .&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 09:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648785#M1087165</guid>
      <dc:creator />
      <dc:date>2014-06-10T09:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648786#M1087167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;I tried the &lt;STRONG&gt;strcmp()&lt;/STRONG&gt; function you had attached but I am getting one error as shown in the file attached.&lt;/P&gt;&lt;P&gt;Can you please check my script ones if possible and let me know if I am following the correct steps ,please????&lt;/P&gt;&lt;P&gt;I have attached my qvw as well,and my function script is in the tab called &lt;STRONG&gt;funct&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 04:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648786#M1087167</guid>
      <dc:creator />
      <dc:date>2014-06-11T04:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648787#M1087169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are passing a parameter called &lt;STRONG&gt;call_put &lt;/STRONG&gt;which is not there the source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 04:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648787#M1087169</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T04:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648788#M1087170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the response,&lt;/P&gt;&lt;P&gt;Yes,but&amp;nbsp; &lt;STRONG&gt;call_put =if(xoptiontype_='PUT','p','c') &lt;/STRONG&gt;because the first parameter to be passed to the function is a string which should be either '&lt;STRONG&gt;c&lt;/STRONG&gt; ' or '&lt;STRONG&gt;p&lt;/STRONG&gt;' according to&lt;STRONG&gt; PUT/CALL&lt;/STRONG&gt; value in &lt;STRONG&gt;xoptiontype_&lt;/STRONG&gt; so I gave that condition and renamed this as a new field called call_put and trying to pass the same.&lt;/P&gt;&lt;P&gt;Is this wrong else any other way to do this??? can you please guide me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 04:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648788#M1087170</guid>
      <dc:creator />
      <dc:date>2014-06-11T04:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648789#M1087171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The calculated field can't be refered in the same load statement like that. Rather try preceding load like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;black_76:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Black76(&lt;STRONG&gt;call_put&lt;/STRONG&gt;,strike_price1,strike_price,time_to_expiry,'0.105',Volatility_Amended) as new_option_fuction&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Expiry_-Today())/365 as time_to_expiry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if(xoptiontype_='PUT','p','c')) as &lt;STRONG&gt;call_put&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident data_;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 05:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648789#M1087171</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T05:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648790#M1087172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;Thanks for reminding ,had forgotten that part of script ,but I have corrected the same.Now the reload took place successfully but the field renamed which is the outcome of the function Black76 ie new_option_function doesn't show any result.You can have a look at the table box in sheet 6 of the file attached.&lt;/P&gt;&lt;P&gt;Am I still going wrong somewhere?? please request help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648790#M1087172</guid>
      <dc:creator />
      <dc:date>2014-06-11T06:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648791#M1087173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your function definition one msgbox is there, just comment it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function Black76(CallPutFlag,F,X,T,r,v) &lt;/P&gt;&lt;P&gt; Dim d1,d2,op&lt;/P&gt;&lt;P&gt;&amp;nbsp; d1 = (Log(F / X) + (v ^ 2 / 2) * T) / (v * Sqr(T))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;'msgbox d1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2 = d1 - v * Sqr(T) &lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648791#M1087173</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T06:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648792#M1087174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;Thanks a lot,the values are coming now for &lt;STRONG&gt;new_option_function&lt;/STRONG&gt;. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ,I am getting to know little more about macros now, but had a doubt,cant we use this field obtained from the function black76 for other calculations in the script??&lt;/P&gt;&lt;P&gt;something like :&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;if(buy_sell='BUY',&lt;STRONG&gt;new_option_function&lt;/STRONG&gt;-premium1,premium1-&lt;STRONG&gt;new_option_function&lt;/STRONG&gt;)&lt;/TD&gt;&lt;TD&gt;as &lt;STRONG&gt;asoff_payoff&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then I try to pull this &lt;STRONG&gt;asoff_payoff&lt;/STRONG&gt; next to the &lt;STRONG&gt;new_option_function&lt;/STRONG&gt; in the table???? I am presently not getting values for this&lt;/P&gt;&lt;P&gt;.Is this not possible???&lt;/P&gt;&lt;P&gt;You can refer the file attached if required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648792#M1087174</guid>
      <dc:creator />
      <dc:date>2014-06-11T06:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648793#M1087175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sahana,&lt;/P&gt;&lt;P&gt;You can, and it is being calculated as well. Take the field asoff_payoff in a list box, you would find the values. In your straight table use expression:= Sum(asoff_payoff), values would get populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;, hope this helps you close the issue. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 07:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648793#M1087175</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T07:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648794#M1087176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hi &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt; I myself want to close this very fast Tresesco,and I am able to proceed almost till the end with your generous help which you have provided all the way.&lt;/P&gt;&lt;P&gt;The asoff_payoff value actually doesn't match.I calculated it in script as well as in table also.The one calculated in table comes up but&amp;nbsp; that calculated in script doesn't. If I put sum&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum(asoff_payoff)&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; in the table very huge value comes which is wrong .&lt;/P&gt;&lt;P&gt;As soon as this is resolved will close this asap &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/mischief.png" /&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 07:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648794#M1087176</guid>
      <dc:creator />
      <dc:date>2014-06-11T07:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648795#M1087177</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;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Your asoff_payoff field is not associated to any other tables. Rewrite the last part of your code as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;black_76:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(buy_sell='BUY',new_option_fuction-premium1,premium1-new_option_fuction) as asoff_payoff&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt; [Trade ID] as trade,&lt;/P&gt;&lt;P&gt; Position_ID as pos,&lt;/P&gt;&lt;P&gt; strike_price as markt,&lt;/P&gt;&lt;P&gt; strike_price1 as strik,&lt;/P&gt;&lt;P&gt; Volatility_Amended as vol_amd,&lt;/P&gt;&lt;P&gt; xoptiontype_ as cp,&lt;/P&gt;&lt;P&gt; call_put as call_put1,&lt;/P&gt;&lt;P&gt; premium as premium1,&lt;/P&gt;&lt;P&gt; Expiry_ as exp,&lt;/P&gt;&lt;P&gt; time_to_expiry as time_to_expiry1,&lt;/P&gt;&lt;P&gt; Black76(call_put,strike_price1,strike_price,time_to_expiry,0.105,Volatility_Amended) as new_option_fuction&lt;/P&gt;&lt;P&gt; Resident data_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// **********Following section should be commented out like&lt;/P&gt;&lt;P&gt;//as_off:&lt;/P&gt;&lt;P&gt;//load&lt;/P&gt;&lt;P&gt;//if(buy_sell='BUY',new_option_fuction-premium1,premium1-new_option_fuction) as asoff_payoff&lt;/P&gt;&lt;P&gt;//Resident black_76;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 07:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648795#M1087177</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T07:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648796#M1087178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks a lot Tresesco.&lt;/P&gt;&lt;P&gt;finally I reached the end&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;as your wish will close it off.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648796#M1087178</guid>
      <dc:creator />
      <dc:date>2014-06-11T08:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: an exp with many variables can be put in load script???? need help please???</title>
      <link>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648797#M1087179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome ! And happy that I could help you reach the end. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/an-exp-with-many-variables-can-be-put-in-load-script-need-help/m-p/648797#M1087179</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T08:19:16Z</dc:date>
    </item>
  </channel>
</rss>

