<?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 Multiparameter functions and Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiparameter-functions-and-Variables/m-p/216980#M70244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer. I do have a solution that works in the script. The problem is I want to be able to able to use the expression in a graph and therefore I like to use a variable instead of a funcion.&lt;/P&gt;&lt;P&gt;It seems to me as the current behavior is inconsistent or bugged. Any second opinions on it?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;//Nils&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2010 17:03:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-08T17:03:14Z</dc:date>
    <item>
      <title>Multiparameter functions and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiparameter-functions-and-Variables/m-p/216978#M70242</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 have an issues with multiparameter functions in the input parameters of a variable. I dont manage to get a variable call like $(variable ( function(a,b) , c ) ) to work, but a call like $(variable ( function(a) , c ) ) works fine.&lt;/P&gt;&lt;P&gt;I have attached an exampel with the code and resulting error below. Seems to me as the function is not evaluated as a whole but the comma is interpreted a parameter seperator of the variable. Any suggestions?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;//Nils&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;set pmf_poisson = pow($1,$2) / fact($2) * exp(-1*$1);&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt;&lt;BR /&gt;$(pmf_poisson(floor(2.5),2)) as test //working&lt;BR /&gt;&lt;BR /&gt;,$(pmf_poisson(floor(2.5,0.25),2)) as test_2 //not working&lt;BR /&gt;&lt;BR /&gt;autogenerate(1);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Results in the following script error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Error in expression:&lt;BR /&gt;pow takes 2 parameters&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt;&lt;BR /&gt;pow(floor(2.5),2)/fact(2)*exp(-1*floor(2.5)) as test&lt;BR /&gt;&lt;BR /&gt;,pow(floor(2.5,0.25))/fact(0.25))*exp(-1*floor(2.5) as test_2&lt;BR /&gt;&lt;BR /&gt;autogenerate(1)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiparameter-functions-and-Variables/m-p/216978#M70242</guid>
      <dc:creator />
      <dc:date>2010-12-08T09:44:54Z</dc:date>
    </item>
    <item>
      <title>Multiparameter functions and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiparameter-functions-and-Variables/m-p/216979#M70243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to make a function in VBscript / JScript module . (Press CONTROL-M to see it.) For example:&lt;/P&gt;&lt;P&gt;function my_f(x, y)&lt;/P&gt;&lt;P&gt;my_f = x * y;&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call my_f(..) from script&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 11:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiparameter-functions-and-Variables/m-p/216979#M70243</guid>
      <dc:creator />
      <dc:date>2010-12-08T11:15:51Z</dc:date>
    </item>
    <item>
      <title>Multiparameter functions and Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Multiparameter-functions-and-Variables/m-p/216980#M70244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer. I do have a solution that works in the script. The problem is I want to be able to able to use the expression in a graph and therefore I like to use a variable instead of a funcion.&lt;/P&gt;&lt;P&gt;It seems to me as the current behavior is inconsistent or bugged. Any second opinions on it?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;//Nils&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 17:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiparameter-functions-and-Variables/m-p/216980#M70244</guid>
      <dc:creator />
      <dc:date>2010-12-08T17:03:14Z</dc:date>
    </item>
  </channel>
</rss>

