<?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: Nested functions with parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-functions-with-parameters/m-p/990308#M951147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me. But I don't know what data your fields my_value1 and my_value2 contain. Or if they are fields at all. Perhaps you can post a small qlikview document that illustrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Dec 2015 16:45:46 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-12-12T16:45:46Z</dc:date>
    <item>
      <title>Nested functions with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-functions-with-parameters/m-p/990307#M951146</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;/P&gt;&lt;P&gt;I would like to create a nested function that takes some parameters. In my variable overview I created these three functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;percValue = count( $1)/count($2)&lt;/P&gt;&lt;P&gt;minValue =&amp;nbsp; min($1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;checkFunc = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( $(percValue($1,$2)) &amp;lt; 0.4 or $(minValue($1)) = 0, 0.4,&lt;/P&gt;&lt;P&gt;if(($(percValue($1,$2))) &amp;lt; 0.8, 0.8, 2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then be able to call it from a text object, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(checkFunc(my_value1,my_value2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for some reasons, this do no work. Any suggestions? What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-functions-with-parameters/m-p/990307#M951146</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested functions with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-functions-with-parameters/m-p/990308#M951147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me. But I don't know what data your fields my_value1 and my_value2 contain. Or if they are fields at all. Perhaps you can post a small qlikview document that illustrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Dec 2015 16:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-functions-with-parameters/m-p/990308#M951147</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-12T16:45:46Z</dc:date>
    </item>
  </channel>
</rss>

