<?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 the macro calculated value and table value not matching ... need help please????? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/the-macro-calculated-value-and-table-value-not-matching-need/m-p/641833#M1086896</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 anyone help on below issue?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;hi ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;one complicated task,I tried but not able to fix it,need ur help please.&lt;/P&gt;&lt;DIV&gt;see if u open the application attached i have obtained an expression in my table present in sheet 10 as &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;option.&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recreated all the variables newly ,&lt;/P&gt;&lt;P&gt;all my new variables are &lt;/P&gt;&lt;P&gt;VD1_NM&lt;/P&gt;&lt;P&gt;VD2_NM&lt;/P&gt;&lt;P&gt;VCND_NM&lt;/P&gt;&lt;P&gt;VCND1_NM&lt;/P&gt;&lt;P&gt;PUTVD1_NM&lt;/P&gt;&lt;P&gt;PUTVD2_NM&lt;/P&gt;&lt;P&gt;PUTVCND_NM&lt;/P&gt;&lt;P&gt;PUTVCND1_NM. with the changes mentioned above.&lt;/P&gt;&lt;P&gt;please can u help ???&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Now my doubt is in my table we have last column as option price:I am checking the value if it is right or wrong by checking it in macro and table value.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;for PUT its working fine but for CALL it doesnt match the value in the macro.please can u help?????????????????? may be something wrong in the 1st part of my if statement which would give CALL output...i am not sure...&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;my exp is:its also in the column called option in my table.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;if(xoptiontype_='CALL',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ff0000;"&gt;&lt;STRONG style="color: #ffff00;"&gt;(Exp(-.0105 * $(T3)) * ((Avg(strike_price1)) * (if( $(VD1_NM)&amp;lt;0, 1+(($(VCND_NM)) * -1),$(VCND_NM))) - strike_price * (if( $(VD2_NM)&amp;lt;0, 1+(($(VCND1_NM)) * -1),$(VCND1_NM))) ))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ffff00;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;EXP(-0.0105 * ($(T3))) * ((strike_price * if($(PUTVD2_NM)&amp;lt;0,1+(($(PUTVCND1_NM)) * -1),($(PUTVCND1_NM)))) - ((Avg(strike_price1)) * if( $(PUTVD1_NM)&amp;lt;0,1+(($(PUTVCND_NM)) * -1),($(PUTVCND_NM))))))&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;you can check these below statements in edit module&amp;nbsp; and clik on &lt;STRONG&gt;pasinputest&lt;/STRONG&gt;:what ever value it shows should match the corresponding value in my table "option " column.If we substitute in msg box the value obtained here should match the table value. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;SPAN style="background-color: #ffff00;"&gt;&lt;STRONG&gt;'black76("c" or "p",market price, strike price, time to expiry,interest rate, volatility)//interest rate is fixed//&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffff00;"&gt;&lt;STRONG&gt;msgbox black76("p",65,75,0.008,0.0105,.135)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;c or p is put or call&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 01:36:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-06T01:36:10Z</dc:date>
    <item>
      <title>the macro calculated value and table value not matching ... need help please?????</title>
      <link>https://community.qlik.com/t5/QlikView/the-macro-calculated-value-and-table-value-not-matching-need/m-p/641833#M1086896</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 anyone help on below issue?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;hi ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;one complicated task,I tried but not able to fix it,need ur help please.&lt;/P&gt;&lt;DIV&gt;see if u open the application attached i have obtained an expression in my table present in sheet 10 as &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;option.&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recreated all the variables newly ,&lt;/P&gt;&lt;P&gt;all my new variables are &lt;/P&gt;&lt;P&gt;VD1_NM&lt;/P&gt;&lt;P&gt;VD2_NM&lt;/P&gt;&lt;P&gt;VCND_NM&lt;/P&gt;&lt;P&gt;VCND1_NM&lt;/P&gt;&lt;P&gt;PUTVD1_NM&lt;/P&gt;&lt;P&gt;PUTVD2_NM&lt;/P&gt;&lt;P&gt;PUTVCND_NM&lt;/P&gt;&lt;P&gt;PUTVCND1_NM. with the changes mentioned above.&lt;/P&gt;&lt;P&gt;please can u help ???&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;Now my doubt is in my table we have last column as option price:I am checking the value if it is right or wrong by checking it in macro and table value.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;for PUT its working fine but for CALL it doesnt match the value in the macro.please can u help?????????????????? may be something wrong in the 1st part of my if statement which would give CALL output...i am not sure...&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;my exp is:its also in the column called option in my table.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;if(xoptiontype_='CALL',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ff0000;"&gt;&lt;STRONG style="color: #ffff00;"&gt;(Exp(-.0105 * $(T3)) * ((Avg(strike_price1)) * (if( $(VD1_NM)&amp;lt;0, 1+(($(VCND_NM)) * -1),$(VCND_NM))) - strike_price * (if( $(VD2_NM)&amp;lt;0, 1+(($(VCND1_NM)) * -1),$(VCND1_NM))) ))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ffff00;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;EXP(-0.0105 * ($(T3))) * ((strike_price * if($(PUTVD2_NM)&amp;lt;0,1+(($(PUTVCND1_NM)) * -1),($(PUTVCND1_NM)))) - ((Avg(strike_price1)) * if( $(PUTVD1_NM)&amp;lt;0,1+(($(PUTVCND_NM)) * -1),($(PUTVCND_NM))))))&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;you can check these below statements in edit module&amp;nbsp; and clik on &lt;STRONG&gt;pasinputest&lt;/STRONG&gt;:what ever value it shows should match the corresponding value in my table "option " column.If we substitute in msg box the value obtained here should match the table value. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;SPAN style="background-color: #ffff00;"&gt;&lt;STRONG&gt;'black76("c" or "p",market price, strike price, time to expiry,interest rate, volatility)//interest rate is fixed//&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffff00;"&gt;&lt;STRONG&gt;msgbox black76("p",65,75,0.008,0.0105,.135)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;STRONG&gt;c or p is put or call&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 01:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/the-macro-calculated-value-and-table-value-not-matching-need/m-p/641833#M1086896</guid>
      <dc:creator />
      <dc:date>2014-06-06T01:36:10Z</dc:date>
    </item>
  </channel>
</rss>

