<?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: How to create a function similar to WildMatch() or SubField() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487424#M101528</link>
    <description>&lt;P&gt;Let's say I get a list events in a table from several CQRS microservices where each event has it's own naming (and unit system) of things. This gets me to a very heterogeneous table (with a lot of null fields for properties that does not exist depending on events) and is my input.&lt;/P&gt;
&lt;P&gt;But for each event I can normalize its data from all the input that I have on the row.&lt;/P&gt;
&lt;P&gt;Let's say I want to have a field in my final table for creation_time:&lt;/P&gt;
&lt;P&gt;For an event I would get it in epoch, for another one in ISO 8601, for another one that would be the minimum value of 2 field, for another one it would be the number of seconds starting from last sunday at midnight, the year and the week number, or from a date and internet time (BMT)....&lt;/P&gt;
&lt;P&gt;It could be color where sometimes it's sourced as RGB value, or CMYK, or HSL color space.&lt;/P&gt;
&lt;P&gt;It's a general question.&lt;/P&gt;
&lt;P&gt;So being able to create my own functions to use in the Load statement, as when calling WildMatch() or SubField() is what I want to achieve.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-read"&gt;it also seems that the technique of a "for loop" concatenating each row one by one, to build a table is crappy performance wise, so that's why I would like to build my table's row "inline" calling functions from the load statement directly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 15:05:13 GMT</pubDate>
    <dc:creator>rdugg</dc:creator>
    <dc:date>2024-10-16T15:05:13Z</dc:date>
    <item>
      <title>How to create a function similar to WildMatch() or SubField()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487314#M101508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm looking for a way to write a function that can be used as WildMatch or Subfield(), that can be called in a Load statement.&lt;/P&gt;
&lt;P&gt;I understood that Subroutines cannot do that. How to do it then ?&lt;/P&gt;
&lt;P&gt;I have a table with a large diversity of columns and depending on several of these fields value I have to go and grab a date on a specific other field out of a set of other fields, to consolidate my heterogeneous table.&lt;/P&gt;
&lt;P&gt;So basically all my inputs required are row per row and the job could be done in a very complex Load If() as myDate&lt;/P&gt;
&lt;P&gt;declarative statement but the complexity of the conditions chain and cases in that if() would make the code completely unmaintainable (i guess around different 16 cases) , and I don't want to go there.&lt;/P&gt;
&lt;P&gt;I also don't want to build my table with a for loop and concatenate row by row.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 10:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487314#M101508</guid>
      <dc:creator>rdugg</dc:creator>
      <dc:date>2024-10-16T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function similar to WildMatch() or SubField()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487375#M101520</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/315107"&gt;@rdugg&lt;/a&gt;&amp;nbsp; what are you trying to achieve exactly? Could share a example with sample data?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487375#M101520</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-16T13:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function similar to WildMatch() or SubField()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487377#M101521</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the input data, business rules and output desired?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487377#M101521</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2024-10-16T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function similar to WildMatch() or SubField()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487424#M101528</link>
      <description>&lt;P&gt;Let's say I get a list events in a table from several CQRS microservices where each event has it's own naming (and unit system) of things. This gets me to a very heterogeneous table (with a lot of null fields for properties that does not exist depending on events) and is my input.&lt;/P&gt;
&lt;P&gt;But for each event I can normalize its data from all the input that I have on the row.&lt;/P&gt;
&lt;P&gt;Let's say I want to have a field in my final table for creation_time:&lt;/P&gt;
&lt;P&gt;For an event I would get it in epoch, for another one in ISO 8601, for another one that would be the minimum value of 2 field, for another one it would be the number of seconds starting from last sunday at midnight, the year and the week number, or from a date and internet time (BMT)....&lt;/P&gt;
&lt;P&gt;It could be color where sometimes it's sourced as RGB value, or CMYK, or HSL color space.&lt;/P&gt;
&lt;P&gt;It's a general question.&lt;/P&gt;
&lt;P&gt;So being able to create my own functions to use in the Load statement, as when calling WildMatch() or SubField() is what I want to achieve.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-read"&gt;it also seems that the technique of a "for loop" concatenating each row one by one, to build a table is crappy performance wise, so that's why I would like to build my table's row "inline" calling functions from the load statement directly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 15:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487424#M101528</guid>
      <dc:creator>rdugg</dc:creator>
      <dc:date>2024-10-16T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a function similar to WildMatch() or SubField()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487442#M101530</link>
      <description>&lt;P&gt;You could create custom functions by the use of parametrized variables but by the intended scenario it's probably just an outsourcing of the statement from the load to a previously placed variable without saving any efforts or improving the performance. Because if the required calculation is depending from record-context it remained mainly by an if-loop logic - you may get a more readable version by applying a pick(match()) for it.&lt;/P&gt;
&lt;P&gt;Before going in this direction I suggest to consider a concatenating again - but not on a record-level else on a context-level.&lt;/P&gt;
&lt;P&gt;Beside this hints your statement of a lot of null-fields that the source-data is (partly) a crosstable. In nearly all cases is beneficial to transform a crosstable to a regular data-structure - and applying the needed transformation on top of it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 15:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-function-similar-to-WildMatch-or-SubField/m-p/2487442#M101530</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-10-16T15:55:35Z</dc:date>
    </item>
  </channel>
</rss>

