<?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 Using user defined function in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870973#M997523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I use user defined function in expression?&lt;/P&gt;&lt;P&gt;I have an expression that is quite long and need to be reused in different expressions. It also gives different results based on the input (parameter) &lt;/P&gt;&lt;P&gt;Can I put it in an user defined function so that I can call it in different expressions of a chart?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 09:38:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-22T09:38:37Z</dc:date>
    <item>
      <title>Using user defined function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870973#M997523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I use user defined function in expression?&lt;/P&gt;&lt;P&gt;I have an expression that is quite long and need to be reused in different expressions. It also gives different results based on the input (parameter) &lt;/P&gt;&lt;P&gt;Can I put it in an user defined function so that I can call it in different expressions of a chart?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870973#M997523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-22T09:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using user defined function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870974#M997524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use variables instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870974#M997524</guid>
      <dc:creator />
      <dc:date>2015-06-22T09:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using user defined function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870975#M997525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look into dollar-sign-expansion with parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Dollar-Sign Expansion with Parameters&lt;/H2&gt;&lt;P&gt;Parameters can be used in variable expansions. The variable must then contain formal parameters, such as $1, $2, $3 etc. When expanding the variable, the parameters should be stated in a comma separated list. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;set MUL=’$1*$2’;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;set X=$(MUL(3,7)); //&lt;/SPAN&gt; returns '3*7' in X&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;let X=$(MUL(3,7)); //&lt;/SPAN&gt; returns 21 in X&lt;/P&gt;&lt;P&gt;If the number of formal parameters exceeds the number of actual parameters only the formal parameters corresponding to actual parameters will be expanded. If the number of actual parameters exceeds the number of formal parameters the superfluous actual parameters will be ignored. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;set MUL=’$1*$2’;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;set X=$(MUL); //&lt;/SPAN&gt; returns '$1*$2' in X&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;set X=$(MUL(10)); //&lt;/SPAN&gt; returns '10*$2' in X&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;let X=$(MUL(5,7,8)); //&lt;/SPAN&gt; returns 35 in X &lt;/P&gt;&lt;P&gt;The parameter $0 returns the number of parameters actually passed by a call. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code"&gt;set MUL='$1*$2 $0 par'; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;set X=$(MUL(3,7)); //&lt;/SPAN&gt; returns '3*7 2 par' in X &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870975#M997525</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-22T09:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using user defined function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870976#M997526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this suggestion and I am not aware of this useful feature in Qlikview!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 01:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-user-defined-function-in-expression/m-p/870976#M997526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-23T01:53:28Z</dc:date>
    </item>
  </channel>
</rss>

