<?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 User defined function in the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320316#M1197026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pscorca69 - Please read the below post. I got it working with Variables and it is fantastic solution by Tim.&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/43601.aspx&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2011 16:16:23 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2011-04-11T16:16:23Z</dc:date>
    <item>
      <title>User defined function in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320315#M1197025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to define a function into the QV script? If yes, a simple sample, please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 16:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320315#M1197025</guid>
      <dc:creator />
      <dc:date>2011-04-11T16:10:53Z</dc:date>
    </item>
    <item>
      <title>User defined function in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320316#M1197026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pscorca69 - Please read the below post. I got it working with Variables and it is fantastic solution by Tim.&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/43601.aspx&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 16:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320316#M1197026</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-11T16:16:23Z</dc:date>
    </item>
    <item>
      <title>User defined function in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320317#M1197027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the above post helpful? Please share if you find more information...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 21:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320317#M1197027</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-11T21:49:53Z</dc:date>
    </item>
    <item>
      <title>User defined function in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320318#M1197028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example of creating a couple functions in the script using variables. It's also an example of building functions from an inline table, which isn't something you need, but hopefully you can recognize what's what and get the idea.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Holidays]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Holiday&lt;BR /&gt;3/15/2010&lt;BR /&gt;3/10/2010&lt;BR /&gt;2/15/2010&lt;BR /&gt;1/1/2010&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;AllHolidays:&lt;BR /&gt;LOAD concat(num(Holiday),',') as AllHolidays RESIDENT Holidays;&lt;BR /&gt;LET customfirstworkdate = 'firstworkdate($1,$2,' &amp;amp; peek('AllHolidays') &amp;amp; ')';&lt;BR /&gt;LET customnetworkdays = 'networkdays($1,$2,' &amp;amp; peek('AllHolidays') &amp;amp; ')';&lt;BR /&gt;DROP TABLE AllHolidays;&lt;/P&gt;&lt;P&gt;Edit: A couple simpler examples from a sample currency conversion script:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LET money = 'money($1,only(CurrencyFormat),only(Decimal),only(Thousand))';&lt;BR /&gt;LET date = 'date($1,only(DateFormat))';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 00:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-function-in-the-script/m-p/320318#M1197028</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-04-12T00:51:51Z</dc:date>
    </item>
  </channel>
</rss>

