<?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 Flattening The String in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2447945#M10880</link>
    <description>&lt;P&gt;When we load data through Qlik replicate, In Source we have a fields containing multiple values, Seperated by ;&lt;/P&gt;
&lt;P&gt;For Example,&lt;/P&gt;
&lt;P&gt;Field Name in source:&amp;nbsp; Tax&lt;/P&gt;
&lt;P&gt;Value : 10;12;4&lt;/P&gt;
&lt;P&gt;in target we want it to be flattened,&lt;/P&gt;
&lt;P&gt;Tax1 field should have the value 10&lt;/P&gt;
&lt;P&gt;Tax2 field should have the value 12&lt;/P&gt;
&lt;P&gt;Tax3 field should have the value 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have written a expression and its working, is there any other simple maner if we can solve this issue, giving the logic we are using currently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tax1 :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;substr($TAX,1,instr($TAX, ";")-1)&lt;/P&gt;
&lt;P&gt;Tax 2:&lt;BR /&gt;substr(substr($TAX,instr($TAX, ";")+1,length($TAX)),1,&lt;BR /&gt;instr(substr($TAX,instr($TAX, ";")+1,length($TAX)), ";")-1)&lt;/P&gt;
&lt;P&gt;Tax 3:&lt;BR /&gt;substr(substr($TAX,instr($TAX, ";")+1,length($TAX)),&lt;BR /&gt;instr(substr($TAX,instr($TAX, ";")+1,length($TAX)), ";")+1,length($TAX))&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 13:21:35 GMT</pubDate>
    <dc:creator>AXK0121B</dc:creator>
    <dc:date>2024-05-02T13:21:35Z</dc:date>
    <item>
      <title>Flattening The String</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2447945#M10880</link>
      <description>&lt;P&gt;When we load data through Qlik replicate, In Source we have a fields containing multiple values, Seperated by ;&lt;/P&gt;
&lt;P&gt;For Example,&lt;/P&gt;
&lt;P&gt;Field Name in source:&amp;nbsp; Tax&lt;/P&gt;
&lt;P&gt;Value : 10;12;4&lt;/P&gt;
&lt;P&gt;in target we want it to be flattened,&lt;/P&gt;
&lt;P&gt;Tax1 field should have the value 10&lt;/P&gt;
&lt;P&gt;Tax2 field should have the value 12&lt;/P&gt;
&lt;P&gt;Tax3 field should have the value 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have written a expression and its working, is there any other simple maner if we can solve this issue, giving the logic we are using currently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tax1 :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;substr($TAX,1,instr($TAX, ";")-1)&lt;/P&gt;
&lt;P&gt;Tax 2:&lt;BR /&gt;substr(substr($TAX,instr($TAX, ";")+1,length($TAX)),1,&lt;BR /&gt;instr(substr($TAX,instr($TAX, ";")+1,length($TAX)), ";")-1)&lt;/P&gt;
&lt;P&gt;Tax 3:&lt;BR /&gt;substr(substr($TAX,instr($TAX, ";")+1,length($TAX)),&lt;BR /&gt;instr(substr($TAX,instr($TAX, ";")+1,length($TAX)), ";")+1,length($TAX))&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 13:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2447945#M10880</guid>
      <dc:creator>AXK0121B</dc:creator>
      <dc:date>2024-05-02T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Flattening The String</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2447950#M10881</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/295208"&gt;@AXK0121B&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Not sure what's the target DB types. if it's possible we might define a VIEW in target side to separate the single column to multiple columns to simplify the task design and improve the replication performance.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 13:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2447950#M10881</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-05-02T13:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flattening The String</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2448037#M10888</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/295208"&gt;@AXK0121B&lt;/a&gt;&amp;nbsp;I think that is the best, and most readable you can do.&lt;/P&gt;
&lt;P&gt;One minor tweak: The length argument (Z) in SUBSTR is optional, returning as much as there is if omitted.&lt;/P&gt;
&lt;P&gt;Therefor you can slightly simplify using&lt;/P&gt;
&lt;P&gt;substr(substr($TAX,instr($TAX, ";")+1),&lt;BR /&gt;instr(substr($TAX,instr($TAX, ";")+1), ";")+1)&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;substr(substr($TAX,instr($TAX, ";")+1,length($TAX)),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instr(substr($TAX,instr($TAX, ";")+1,length($TAX)), ";")+1,length($TAX))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Yes I tested - in the designer.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 15:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2448037#M10888</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-05-02T15:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Flattening The String</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2448052#M10890</link>
      <description>&lt;P&gt;Thanks, Its working and Code looks good as well now.&lt;/P&gt;
&lt;P&gt;Issue is that we have string with 5 values so when we are trying to flatten them in this manner the code is getting bigger and complex, i was checking if there is any other options as well, However the suggestion you provided helped in reducing the complexity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/110970"&gt;@Heinvandenheuvel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 16:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2448052#M10890</guid>
      <dc:creator>AXK0121B</dc:creator>
      <dc:date>2024-05-02T16:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flattening The String</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2448056#M10891</link>
      <description>&lt;P&gt;Indeed "&lt;SPAN&gt;the code is getting bigger and complex" when going beyond 3 or so segments.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Just now there was an other topic seemingly in this - if the OP was indeed talking about Replicate.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/How-to-handle-arrays-for-a-column-in-qlik-replicate/td-p/2447559" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Replicate/How-to-handle-arrays-for-a-column-in-qlik-replicate/td-p/2447559&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There I suggest a User Defined Transformation (UDT, C# code! )&amp;nbsp; might be in order.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 16:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Flattening-The-String/m-p/2448056#M10891</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2024-05-02T16:45:17Z</dc:date>
    </item>
  </channel>
</rss>

