<?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 Use more than 9 parameters in User Defined Functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-more-than-9-parameters-in-User-Defined-Functions/m-p/1451077#M434320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to generate a user defined function with more than 9 parameters, but when qlikview reaches $10, it substitutes $1 for the first parameter, and leaves the 0 behind it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UDF is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET UDF =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($2&amp;nbsp; &amp;gt; 0, $1&amp;nbsp; / $2&amp;nbsp; * $3&amp;nbsp; / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0) +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($5&amp;nbsp; &amp;gt; 0, $4&amp;nbsp; / $5&amp;nbsp; * $6&amp;nbsp; / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0) +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($8&amp;nbsp; &amp;gt; 0, $7&amp;nbsp; / $8&amp;nbsp; * $9&amp;nbsp; / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0) +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($11 &amp;gt; 0, $10 / $11 * $12 / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;¿Can somebody point me in the right direction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2017 09:38:41 GMT</pubDate>
    <dc:creator>guillermo_welch</dc:creator>
    <dc:date>2017-11-24T09:38:41Z</dc:date>
    <item>
      <title>Use more than 9 parameters in User Defined Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Use-more-than-9-parameters-in-User-Defined-Functions/m-p/1451077#M434320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to generate a user defined function with more than 9 parameters, but when qlikview reaches $10, it substitutes $1 for the first parameter, and leaves the 0 behind it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UDF is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET UDF =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($2&amp;nbsp; &amp;gt; 0, $1&amp;nbsp; / $2&amp;nbsp; * $3&amp;nbsp; / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0) +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($5&amp;nbsp; &amp;gt; 0, $4&amp;nbsp; / $5&amp;nbsp; * $6&amp;nbsp; / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0) +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($8&amp;nbsp; &amp;gt; 0, $7&amp;nbsp; / $8&amp;nbsp; * $9&amp;nbsp; / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0) +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($11 &amp;gt; 0, $10 / $11 * $12 / ($(_AUXUDF($2, $3,&amp;nbsp;&amp;nbsp;&amp;nbsp; $5, $6,&amp;nbsp;&amp;nbsp;&amp;nbsp; $8, $9,&amp;nbsp;&amp;nbsp;&amp;nbsp; $11, $12))), 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;¿Can somebody point me in the right direction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 09:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-more-than-9-parameters-in-User-Defined-Functions/m-p/1451077#M434320</guid>
      <dc:creator>guillermo_welch</dc:creator>
      <dc:date>2017-11-24T09:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use more than 9 parameters in User Defined Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Use-more-than-9-parameters-in-User-Defined-Functions/m-p/1451078#M434321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The documentation doesn't mention whether it supports more than $1 to $9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$0 actually gives you the last parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By testing I have discovered that it will not work with anything except 0..9 as the character after $.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 11:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-more-than-9-parameters-in-User-Defined-Functions/m-p/1451078#M434321</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-11-24T11:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use more than 9 parameters in User Defined Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Use-more-than-9-parameters-in-User-Defined-Functions/m-p/1451079#M434322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have arrived to the same conclusion. I managed to join several parameters into a string to save parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 14:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-more-than-9-parameters-in-User-Defined-Functions/m-p/1451079#M434322</guid>
      <dc:creator>guillermo_welch</dc:creator>
      <dc:date>2017-11-24T14:57:24Z</dc:date>
    </item>
  </channel>
</rss>

