<?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: creating custom function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280825#M1183455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Module editor (CTRL+M), custom functions can be created. Below is the syntax, but the scripting should be in VB/J Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function &amp;lt;FunctionName&amp;gt; (&amp;lt;params&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2011 06:06:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-28T06:06:30Z</dc:date>
    <item>
      <title>creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280824#M1183454</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;How to create a custom function in qlikview wherin I want to pass two paramaters...both are dates...and the function should check these dates in another table and should return the count of dates falling between two dates passed through function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 04:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280824#M1183454</guid>
      <dc:creator />
      <dc:date>2011-10-28T04:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280825#M1183455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Module editor (CTRL+M), custom functions can be created. Below is the syntax, but the scripting should be in VB/J Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function &amp;lt;FunctionName&amp;gt; (&amp;lt;params&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 06:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280825#M1183455</guid>
      <dc:creator />
      <dc:date>2011-10-28T06:06:30Z</dc:date>
    </item>
    <item>
      <title>creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280826#M1183456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Kiran thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Actually i am aware about this...my main concern is how to develop such function...if you could help me out with coding it would be very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 06:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280826#M1183456</guid>
      <dc:creator />
      <dc:date>2011-10-28T06:47:55Z</dc:date>
    </item>
    <item>
      <title>creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280827#M1183457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally the macro functions are written for functionaliy external to qlikview. For example to encypty or forecasting with custom algorithm etc. Your requirment is internal to qlikview; I mean to make calculation using Qlikviews data model. This can be done with qlikview functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for reusablity of this there is a workaround. Create a variable and which can do the dynamic computation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 12:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280827#M1183457</guid>
      <dc:creator />
      <dc:date>2011-10-28T12:18:48Z</dc:date>
    </item>
    <item>
      <title>creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280828#M1183458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could use dollar sign expansion with parameter, check out the help for dollar sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;set MUL=’$1*$2’;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;let X=$(MUL(3,7)); // &lt;SPAN style="font-weight: normal;"&gt;returns 21 in X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;&lt;SPAN style="font-weight: normal;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: bold;"&gt;&lt;SPAN style="font-weight: normal;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 14:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280828#M1183458</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-28T14:13:05Z</dc:date>
    </item>
    <item>
      <title>creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280829#M1183459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i am looking for reusabilty of function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is in below format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Policy_NO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for each row I will pass date1 and date2 in a function which will check these dates in another loaded table and will return the count of date falling between these two dates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my main requirement is creation of such a function which will perform the above task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than creating a function if there is any other way then plz do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 06:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280829#M1183459</guid>
      <dc:creator />
      <dc:date>2011-10-29T06:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280830#M1183460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you don't even need a function to fulfill your requirement, an object expression might do just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you describe a bit more what the context is, where do you want to do the count (in script or in a chart object), and how those two tables are linked (by Policy_NO ?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you have linked the two tables by Policy_NO and use this field as dimension in a table chart, you could maybe use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= count( if( Date1 &amp;lt;= Date3 and Date3 &amp;lt;=Date2, Date3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Date3 is the date you want to check in the other table. You could probably replace above expression with a set expression also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, it would be easier to help you creating a function or expression or script snippet, if you could precise your setting and requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 11:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280830#M1183460</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-29T11:27:49Z</dc:date>
    </item>
    <item>
      <title>creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280831#M1183461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to do this calculation in script. I cant do it in front end. There is no link between the two tables. The other table is just an inline table wherin i will manually insert the dates provided. The inline table only contains 1 field i.e is list of dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 12:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280831#M1183461</guid>
      <dc:creator />
      <dc:date>2011-10-29T12:55:49Z</dc:date>
    </item>
    <item>
      <title>creating custom function</title>
      <link>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280832#M1183462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So maybe you could achieve this with interval match and something along this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DatesTable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Dates&lt;/P&gt;&lt;P&gt;2011-10-16&lt;/P&gt;&lt;P&gt;2011-10-25&lt;/P&gt;&lt;P&gt;2011-10-27&lt;/P&gt;&lt;P&gt;2011-10-26&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Policies:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Policy_NO&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2 ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-10-28&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpPolicies:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD * resident Policies;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join(tmpPolicies) Intervalmatch (Dates) LOAD Date1, Date2 resident tmpPolicies;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Policies) LOAD&lt;/P&gt;&lt;P&gt;count(Dates),Policy_NO resident tmpPolicies group by Policy_NO;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table tmpPolicies;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 14:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-custom-function/m-p/280832#M1183462</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-29T14:05:39Z</dc:date>
    </item>
  </channel>
</rss>

