<?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: Assigning ID's to column name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269540#M47752</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Here is my proposal for your case:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153938i64E625EBE6FD35E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRD.png" alt="0683p000009LuRD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I replace CSV file by tFixedFlowInput for the test with fixed values.&lt;/P&gt; 
&lt;P&gt;Here is the configuration for this component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuBE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137617iFF31084C07E58742/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuBE.png" alt="0683p000009LuBE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;1st step, I used a tMap to&amp;nbsp;separate the values for fields Department, Vertical and Floor:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuQf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130433iA648664C4325FB92/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuQf.png" alt="0683p000009LuQf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;After the values has been separated, I get unique values using the tUniqRow and then and a sequence number for each values of each field and the result is stored into 3 separated tables (tHashOutput). Here is the first tMap, other components for this step are quite simples:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156576iAC576EB808206B2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRN.png" alt="0683p000009LuRN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Be careful for the 2 others tMap to change the sequence name (for example use "v" for Vertical and "f" for "Floor").&lt;/P&gt; 
&lt;P&gt;Now we got our 3 separated tables, so we can start with the 2nd subjob to replace names by id for the 3 fields.&lt;/P&gt; 
&lt;P&gt;For that I use again the same&amp;nbsp;&lt;SPAN&gt;tFixedFlowInput as for 1st subjob (change for a delimited file if you prefer).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The content goes to tMap as the main flow and the 3 tables (tHashInput) are used as lookups.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Here is the tMap with 3 inner join based on the names to get the ids:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157549iB097B4607B51B1B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRX.png" alt="0683p000009LuRX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;You just have the 1st inner join on the capture but the 2 others are the same (except they use Vertical and Floor field instead of Department).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Be careful to declare all ids as integer (as they come from the sequences).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Finally, the result goes to the console using tLogRow:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141109i4BC084BB182B6B40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRh.png" alt="0683p000009LuRh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 22:31:22 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-05-11T22:31:22Z</dc:date>
    <item>
      <title>Assigning ID's to column name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269538#M47750</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;We have a situation where we have multiple columns say Employee Id , Employee Name,Department,Vertical,Floor etc.&lt;/P&gt;&lt;P&gt;What we want that that instead of Department,Vertical,Floor etc. we have id's for the same and the details of these fields will in a different table.&lt;/P&gt;&lt;P&gt;Through which component we can assign id's to Department,Vertical,Floor etc.?&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;1 , Test1 , HR , BFS , 2nd Floor&lt;/P&gt;&lt;P&gt;2 , Test2 , Finance , Healthcare , 3rd Floor&lt;/P&gt;&lt;P&gt;We want like&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1 , Test1 , 1 , 1 , 2&lt;/P&gt;&lt;P&gt;2 , Test2 , 2 , 3 , 3&lt;/P&gt;&lt;P&gt;and different tables for the 3 fields .For reference as below :&lt;/P&gt;&lt;P&gt;Department Id Department Name&lt;/P&gt;&lt;P&gt;1 BFS&lt;BR /&gt;2 Finance&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Jha&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 08:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269538#M47750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T08:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning ID's to column name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269539#M47751</link>
      <description>&lt;P&gt;You can use tMap JOIN lookup&lt;BR /&gt;&lt;BR /&gt;You can use table for lookup, or fixed list if it stable (think not, so table better)&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269539#M47751</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-05-11T10:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning ID's to column name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269540#M47752</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Here is my proposal for your case:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153938i64E625EBE6FD35E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRD.png" alt="0683p000009LuRD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I replace CSV file by tFixedFlowInput for the test with fixed values.&lt;/P&gt; 
&lt;P&gt;Here is the configuration for this component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuBE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137617iFF31084C07E58742/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuBE.png" alt="0683p000009LuBE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;1st step, I used a tMap to&amp;nbsp;separate the values for fields Department, Vertical and Floor:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuQf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130433iA648664C4325FB92/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuQf.png" alt="0683p000009LuQf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;After the values has been separated, I get unique values using the tUniqRow and then and a sequence number for each values of each field and the result is stored into 3 separated tables (tHashOutput). Here is the first tMap, other components for this step are quite simples:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156576iAC576EB808206B2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRN.png" alt="0683p000009LuRN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Be careful for the 2 others tMap to change the sequence name (for example use "v" for Vertical and "f" for "Floor").&lt;/P&gt; 
&lt;P&gt;Now we got our 3 separated tables, so we can start with the 2nd subjob to replace names by id for the 3 fields.&lt;/P&gt; 
&lt;P&gt;For that I use again the same&amp;nbsp;&lt;SPAN&gt;tFixedFlowInput as for 1st subjob (change for a delimited file if you prefer).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The content goes to tMap as the main flow and the 3 tables (tHashInput) are used as lookups.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Here is the tMap with 3 inner join based on the names to get the ids:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157549iB097B4607B51B1B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRX.png" alt="0683p000009LuRX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;You just have the 1st inner join on the capture but the 2 others are the same (except they use Vertical and Floor field instead of Department).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Be careful to declare all ids as integer (as they come from the sequences).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Finally, the result goes to the console using tLogRow:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuRh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141109i4BC084BB182B6B40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuRh.png" alt="0683p000009LuRh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 22:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269540#M47752</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-11T22:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning ID's to column name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269541#M47753</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLxoAAG"&gt;@ArvindJha&lt;/A&gt;, does this helps?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 20:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Assigning-ID-s-to-column-name/m-p/2269541#M47753</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-12T20:36:44Z</dc:date>
    </item>
  </channel>
</rss>

