<?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>idea Re: UDF (user-defined function) for qlik sense - Status changed to: Open - Collecting Feedback in Suggest an Idea</title>
    <link>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/1784819#M5217</link>
    <description>&lt;P&gt;Thank you for your feedback on ways to improve our product. While this is something we understand would be useful, it's not on the short-term roadmap. Please continue to show your support for this idea.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 15:36:10 GMT</pubDate>
    <dc:creator>Patric_Nordstrom</dc:creator>
    <dc:date>2021-02-22T15:36:10Z</dc:date>
    <item>
      <title>UDF (user-defined function) for qlik sense</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idi-p/1768999</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here the wikipedia explanation : &lt;A href="https://en.wikipedia.org/wiki/User-defined_function" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/User-defined_function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In &lt;A title="Relational database management system" href="https://en.wikipedia.org/wiki/Relational_database_management_system" target="_blank" rel="noopener"&gt;relational database management systems&lt;/A&gt;, a user-defined function provides a mechanism for extending the functionality of the &lt;A title="Database server" href="https://en.wikipedia.org/wiki/Database_server" target="_blank" rel="noopener"&gt;database server&lt;/A&gt; by adding a function, that can be evaluated in standard query language (usually &lt;A title="SQL" href="https://en.wikipedia.org/wiki/SQL" target="_blank" rel="noopener"&gt;SQL&lt;/A&gt;) statements. The &lt;A title="SQL:2003" href="https://en.wikipedia.org/wiki/SQL:2003" target="_blank" rel="noopener"&gt;SQL&lt;/A&gt; standard distinguishes between &lt;A title="Scalar (computing)" href="https://en.wikipedia.org/wiki/Scalar_(computing)" target="_blank" rel="noopener"&gt;scalar&lt;/A&gt; and table functions. A scalar function returns only a single value (or &lt;A title="Null (SQL)" href="https://en.wikipedia.org/wiki/Null_(SQL)" target="_blank" rel="noopener"&gt;NULL&lt;/A&gt;), whereas a table function returns a (relational) table comprising zero or more rows, each row with one or more columns.&lt;/P&gt;&lt;P&gt;User-defined functions in SQL are declared using the CREATE FUNCTION statement. For example, a function that converts Celsius to Fahrenheit might be declared like this:&lt;/P&gt;&lt;DIV class="mw-highlight mw-highlight-lang-sql mw-content-ltr"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="k"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN class="n"&gt;dbo&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;CtoF&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Celsius&lt;/SPAN&gt; &lt;SPAN class="nb"&gt;FLOAT&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
  &lt;SPAN class="k"&gt;RETURNS&lt;/SPAN&gt; &lt;SPAN class="nb"&gt;FLOAT&lt;/SPAN&gt;
  &lt;SPAN class="k"&gt;RETURN&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Celsius&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;8&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;+&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;32&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Once created, a user-defined function may be used in &lt;A title="Expression (programming)" href="https://en.wikipedia.org/wiki/Expression_(programming)" target="_blank" rel="noopener"&gt;expressions&lt;/A&gt; in SQL statements. For example, it can be invoked where most other intrinsic functions are allowed. This also includes &lt;A title="Select (SQL)" href="https://en.wikipedia.org/wiki/Select_(SQL)" target="_blank" rel="noopener"&gt;SELECT statements&lt;/A&gt;, where the function can be used against data stored in tables in the database. Conceptually, the function is evaluated once per row in such usage. For example, assume a table named ELEMENTS, with a row for each known chemical element. The table has a column named BoilingPoint for the boiling point of that element, in Celsius.&lt;/P&gt;&lt;P&gt;The query&lt;/P&gt;&lt;DIV class="mw-highlight mw-highlight-lang-sql mw-content-ltr"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Name&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;CtoF&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;BoilingPoint&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
  &lt;SPAN class="k"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Elements&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;would retrieve the name and the boiling point from each row. It invokes the CtoF user-defined function as declared above in order to convert the value in the column to a value in Fahrenheit.&lt;/P&gt;&lt;P&gt;Each user-defined function carries certain properties or characteristics. The SQL standard defines the following properties:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Language - defines the programming language in which the user-defined function is implemented; examples include SQL, C, C# and Java.&lt;/LI&gt;&lt;LI&gt;Parameter style - defines the conventions that are used to pass the function parameters and results between the implementation of the function and the database system (only applicable if language is not SQL).&lt;/LI&gt;&lt;LI&gt;Specific name - a name for the function that is unique within the database. Note that the function name does not have to be unique, considering &lt;A title="Overloaded function" href="https://en.wikipedia.org/wiki/Overloaded_function" target="_blank" rel="noopener"&gt;overloaded functions&lt;/A&gt;. Some SQL implementations require that function names are unique within a database, and overloaded functions are not allowed.&lt;/LI&gt;&lt;LI&gt;Determinism - specifies whether the function is deterministic or not. The determinism characteristic has an influence on the &lt;A title="Query optimizer" href="https://en.wikipedia.org/wiki/Query_optimizer" target="_blank" rel="noopener"&gt;query optimizer&lt;/A&gt; when compiling a SQL statement.&lt;/LI&gt;&lt;LI&gt;SQL-data access - tells the database management system whether the function contains no SQL statements (NO SQL), contains SQL statements but does not access any tables or &lt;A title="View (SQL)" href="https://en.wikipedia.org/wiki/View_(SQL)" target="_blank" rel="noopener"&gt;views&lt;/A&gt; (CONTAINS SQL), reads data from tables or views (READS SQL DATA), or actually modifies data in the database (MODIFIES SQL DATA).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;User-defined functions should not be confused with &lt;A title="Stored procedure" href="https://en.wikipedia.org/wiki/Stored_procedure" target="_blank" rel="noopener"&gt;stored procedures&lt;/A&gt;. Stored procedures allow the user to group a set of SQL commands. A procedure can accept parameters and execute its SQL statements depending on those parameters. A procedure is not an expression and, thus, cannot be used like user-defined functions.&lt;/P&gt;&lt;P&gt;Some database management systems allow the creation of user defined functions in languages other than SQL. &lt;A title="Microsoft SQL Server" href="https://en.wikipedia.org/wiki/Microsoft_SQL_Server" target="_blank" rel="noopener"&gt;Microsoft SQL Server&lt;/A&gt;, for example, allows the user to use &lt;A title="List of CLI languages" href="https://en.wikipedia.org/wiki/List_of_CLI_languages" target="_blank" rel="noopener"&gt;.NET languages&lt;/A&gt; including C# for this purpose. DB2 and Oracle support user-defined functions written in C or Java programming languages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, while Sub /Call logic is similar to stored procedure, it appears we don't have this UDF functionality in Qlik Sense,which would very useful to simply some script or expression in front.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 14:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idi-p/1768999</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2020-12-16T14:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: UDF (user-defined function) for qlik sense - Status changed to: Open - Collecting Feedback</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/1784819#M5217</link>
      <description>&lt;P&gt;Thank you for your feedback on ways to improve our product. While this is something we understand would be useful, it's not on the short-term roadmap. Please continue to show your support for this idea.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/1784819#M5217</guid>
      <dc:creator>Patric_Nordstrom</dc:creator>
      <dc:date>2021-02-22T15:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: UDF (user-defined function) for qlik sense</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/2025617#M11648</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/54230"&gt;@simonaubert&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24514"&gt;@Patric_Nordstrom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that Simon's requirement for User Defined Functions (UDFs) can be met &lt;STRONG&gt;today&amp;nbsp;&lt;/STRONG&gt;in both Qlik View and QlikSense with parameterized variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While over 10 years old, the following article about UDFs by the QlikView Maven is still relevant and useful today:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="http://qlikviewmaven.blogspot.com/2011/04/variable-that-acts-like-user-defined.html" target="_blank"&gt;QlikView Maven: Variable That Acts Like a User-Defined Function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Jeff R.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/2025617#M11648</guid>
      <dc:creator>DataWrangler</dc:creator>
      <dc:date>2023-01-13T15:47:43Z</dc:date>
    </item>
    <item>
      <title>From now on, please track this idea from the Ideation por...</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/2101668#M14906</link>
      <description>&lt;P&gt;From now on, please track this idea from the Ideation portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Link to new idea" href="https://ideation.qlik.com/app/#/case/301190" target="_blank" rel="noopener"&gt;Link to new idea&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Meghann&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you &lt;STRONG&gt;only&lt;/STRONG&gt; see 1 tab with the login page, please try clicking this link first: &lt;STRONG&gt;&lt;A title="Authenticate me!" href="#" target="_blank" rel="noopener"&gt;Authenticate me!&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;t&lt;/EM&gt;&lt;EM&gt;hen try the link above again. Ensure pop-up blocker is off.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 16:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/2101668#M14906</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2023-08-02T16:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: UDF (user-defined function) for qlik sense - Status changed to: Closed - Archived</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/2101669#M14907</link>
      <description />
      <pubDate>Wed, 02 Aug 2023 16:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/UDF-user-defined-function-for-qlik-sense/idc-p/2101669#M14907</guid>
      <dc:creator>Ideation</dc:creator>
      <dc:date>2023-08-02T16:41:16Z</dc:date>
    </item>
  </channel>
</rss>

