<?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 How to define a new function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-define-a-new-function/m-p/149776#M27902</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;since I have a complex calculation that I reuse in charts, I would like to put into a variable the results of the calculation, but I would like to define dinamically the set of values of the fields on which to perform the calculation.&lt;/P&gt;&lt;P&gt;It looks like defining a new function: is it possible (perhaps using set Analysis in variable definition)?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;DIV class="ForumPostTitle ForumPostTitleInner"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2009 19:36:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-20T19:36:43Z</dc:date>
    <item>
      <title>How to define a new function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-a-new-function/m-p/149776#M27902</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;since I have a complex calculation that I reuse in charts, I would like to put into a variable the results of the calculation, but I would like to define dinamically the set of values of the fields on which to perform the calculation.&lt;/P&gt;&lt;P&gt;It looks like defining a new function: is it possible (perhaps using set Analysis in variable definition)?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;DIV class="ForumPostTitle ForumPostTitleInner"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 19:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-a-new-function/m-p/149776#M27902</guid>
      <dc:creator />
      <dc:date>2009-07-20T19:36:43Z</dc:date>
    </item>
    <item>
      <title>How to define a new function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-a-new-function/m-p/149777#M27903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define a variable as an expression that uses parameter placeholders. See the section "Dollar-Sign Expansion with Parameters" in the Ref Guide.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;SET myfunc= $1 + $2;&lt;/P&gt;&lt;P&gt;$(myfunc(3,4)) = 7&lt;/P&gt;&lt;P&gt;See also the attached example from the QV Cookbook.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 01:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-a-new-function/m-p/149777#M27903</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-21T01:22:29Z</dc:date>
    </item>
    <item>
      <title>How to define a new function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-a-new-function/m-p/149778#M27904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Rob!&lt;/P&gt;&lt;P&gt;It's very useful and very clear!&lt;/P&gt;&lt;P&gt;Roberta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 16:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-a-new-function/m-p/149778#M27904</guid>
      <dc:creator />
      <dc:date>2009-07-21T16:54:07Z</dc:date>
    </item>
  </channel>
</rss>

