<?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: Adding space to string in Tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308576#M79888</link>
    <description>&lt;P&gt;Hi Nikhil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&amp;nbsp; I actually simplied it a bit.&amp;nbsp; In actually, there is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Street number&lt;/P&gt;
&lt;P&gt;Street Name&lt;/P&gt;
&lt;P&gt;Street Type&lt;/P&gt;
&lt;P&gt;Street Direction&lt;/P&gt;
&lt;P&gt;Unit Number&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add space in the second tmap using conditional statements, there would be a lot of permutations and very complex.&amp;nbsp; I was hoping to be able to add a space to the front of street name, type, direction and number in the first tmap so it would only have the space when unit number, direction are not null.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 18:13:02 GMT</pubDate>
    <dc:creator>JSey</dc:creator>
    <dc:date>2019-06-27T18:13:02Z</dc:date>
    <item>
      <title>Adding space to string in Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308574#M79886</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to integrate data from a csv file to Salesforce.&amp;nbsp; The columns are street number, street name and unit number, and let's say I would like to keep them in that order.&amp;nbsp; Not all address will have a unit number.&amp;nbsp; Currently I have 2 tmaps&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Tmap1: row1.B1_Borrower_Unit_Number==null?"": " "+row1.B1_Borrower_Unit_Number&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;It does the same for street name (add space before the street name)&lt;/P&gt; 
&lt;P&gt;Tmap2: concatenates using street number + street name + unit number&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The issue is the " " before the string is getting removed&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Current output:&lt;/P&gt; 
&lt;P&gt;23Sheppard Avenue55&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Desired output:&lt;/P&gt; 
&lt;P&gt;23 Sheppard Avenue 55&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help?&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308574#M79886</guid>
      <dc:creator>JSey</dc:creator>
      <dc:date>2024-11-16T05:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding space to string in Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308575#M79887</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;I got the address correctly as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 873px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5lP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151017iB21915BC8A6EC632/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5lP.png" alt="0683p000009M5lP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5hx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134286i6CB3BE5BEC7E86A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5hx.png" alt="0683p000009M5hx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The function in simple form is as shown below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Relational.ISNULL(row1.borrower_unit_number)?
         row1.street_number+" "+ row1.street_name 
       : row1.street_number+" "+ row1.street_name+" " + row1.borrower_unit_number &lt;/PRE&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 17:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308575#M79887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding space to string in Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308576#M79888</link>
      <description>&lt;P&gt;Hi Nikhil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&amp;nbsp; I actually simplied it a bit.&amp;nbsp; In actually, there is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Street number&lt;/P&gt;
&lt;P&gt;Street Name&lt;/P&gt;
&lt;P&gt;Street Type&lt;/P&gt;
&lt;P&gt;Street Direction&lt;/P&gt;
&lt;P&gt;Unit Number&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add space in the second tmap using conditional statements, there would be a lot of permutations and very complex.&amp;nbsp; I was hoping to be able to add a space to the front of street name, type, direction and number in the first tmap so it would only have the space when unit number, direction are not null.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 18:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308576#M79888</guid>
      <dc:creator>JSey</dc:creator>
      <dc:date>2019-06-27T18:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding space to string in Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308577#M79889</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Ideally I would never recommend to do address validation manually. Talend has got Address standardization components where you can call the corresponding APIs to make the address value in right format. Please see the screen shot below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 337px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5le.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153918iED17936917F8587B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5le.png" alt="0683p000009M5le.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My recommendation will be to utilize these components along with subscription to corresponding services to standardize the data especially we are in the era of Privacy laws like GDPR, California Privacy law etc.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; If you will have to do it manually, you will have to handle all the permutations and combinations also in manual fashion.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 18:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308577#M79889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T18:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding space to string in Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308578#M79890</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Have you tried to put it like this:&lt;/P&gt;
&lt;PRE&gt;row1.B1_Borrower_Unit_Number == null ? "" : (" " + row1.B1_Borrower_Unit_Number)&lt;/PRE&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 20:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Adding-space-to-string-in-Tmap/m-p/2308578#M79890</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-08T20:10:45Z</dc:date>
    </item>
  </channel>
</rss>

