<?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 is it possible to use subroutine as like built-in function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921918#M981351</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;&lt;/P&gt;&lt;P&gt;could you please let me know is it possible to use user defied subroutine as like built-in function. For example built-in function sum we can use for summing of values. similarly can we define subroutines and can we use anywhere in the app?. I mean in Expressions. Thank you very much in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 08:52:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-13T08:52:39Z</dc:date>
    <item>
      <title>is it possible to use subroutine as like built-in function</title>
      <link>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921918#M981351</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;&lt;/P&gt;&lt;P&gt;could you please let me know is it possible to use user defied subroutine as like built-in function. For example built-in function sum we can use for summing of values. similarly can we define subroutines and can we use anywhere in the app?. I mean in Expressions. Thank you very much in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 08:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921918#M981351</guid>
      <dc:creator />
      <dc:date>2015-08-13T08:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use subroutine as like built-in function</title>
      <link>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921919#M981352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can store expressions in variables and pass parameters to them. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variable &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vSumOfField &lt;/SPAN&gt;with one parameter: sum($1)&lt;/P&gt;&lt;P&gt;An expression using the variable and passing as paramter value the field name Amount: =$(vSumOfField(&lt;EM&gt;Amount&lt;/EM&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can build you're own subroutines. You can't use UDF coded in for example C/C++ or java. There does exist a hidden easter egg setting &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AllowMacroFunctionsInExpressions &lt;/SPAN&gt;that allows you to use functions created in the macro editor in expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921919#M981352</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-13T09:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use subroutine as like built-in function</title>
      <link>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921920#M981354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-avatarid="6257" data-externalid="" data-online="false" data-presence="null" data-userid="96544" data-username="gwassenaar" href="https://community.qlik.com/people/gwassenaar"&gt;Gysbert Wassenaar&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for reply. here is simple example for my requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub mySum(a,b)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gksum=a+2+b-2&amp;nbsp; //gksum is defined variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now can I call mySum subroutine in expressions? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921920#M981354</guid>
      <dc:creator />
      <dc:date>2015-08-13T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use subroutine as like built-in function</title>
      <link>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921921#M981355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. You can't use subroutines in expressions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/is-it-possible-to-use-subroutine-as-like-built-in-function/m-p/921921#M981355</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-13T09:40:02Z</dc:date>
    </item>
  </channel>
</rss>

