<?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 How to dynamically map input columns to output columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-map-input-columns-to-output-columns/m-p/2248822#M33555</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;As shown in image below, here is my input excel.&lt;/FONT&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dynamic_map_columns.png" style="width: 910px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Kb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134355i5DA4CB0848DC1265/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Kb.png" alt="0683p000009M9Kb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I want output as below:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output_columns.png" style="width: 292px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Kg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135365iADF6C9E32145B1C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Kg.png" alt="0683p000009M9Kg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Here is my tMap:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Kl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153904iDDD1203B7D497873/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Kl.png" alt="0683p000009M9Kl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;From the input excel, depending on the current quarter, I want to choose 3 columns. In the example given, I have shown I want to choose Apr, Mar, Jun i.e. Q2. However, in case of Q3, I need to choose Jul, Aug, Sep. Let's assume, I have 3 context variables that hold the month name depending on quarter.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;context.month1="Apr-2019"&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;context.month2="May-2019"&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;context.month3="Jun-2019"&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;So, for this example, I want below mapping in tMap, as the three context variables contains those months:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;C4 --&amp;gt; M1&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;C5 --&amp;gt; M2&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;C6 --&amp;gt; M3&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;However, this has to be dynamic; In the next quarter, it will be other set of 3 columns i.e. C7, C8, C9&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Essentially, I want to remove those columns that are not required for current quarter.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I am using Talend Open Studio 7.2.1. Cannot use licensed version.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Any ideas appreciated. Thanks.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:36:47 GMT</pubDate>
    <dc:creator>sam2000</dc:creator>
    <dc:date>2024-11-16T03:36:47Z</dc:date>
    <item>
      <title>How to dynamically map input columns to output columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-map-input-columns-to-output-columns/m-p/2248822#M33555</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;As shown in image below, here is my input excel.&lt;/FONT&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dynamic_map_columns.png" style="width: 910px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Kb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134355i5DA4CB0848DC1265/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Kb.png" alt="0683p000009M9Kb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I want output as below:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output_columns.png" style="width: 292px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Kg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135365iADF6C9E32145B1C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Kg.png" alt="0683p000009M9Kg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Here is my tMap:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Kl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153904iDDD1203B7D497873/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Kl.png" alt="0683p000009M9Kl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;From the input excel, depending on the current quarter, I want to choose 3 columns. In the example given, I have shown I want to choose Apr, Mar, Jun i.e. Q2. However, in case of Q3, I need to choose Jul, Aug, Sep. Let's assume, I have 3 context variables that hold the month name depending on quarter.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;context.month1="Apr-2019"&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;context.month2="May-2019"&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;context.month3="Jun-2019"&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;So, for this example, I want below mapping in tMap, as the three context variables contains those months:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;C4 --&amp;gt; M1&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;C5 --&amp;gt; M2&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;C6 --&amp;gt; M3&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;However, this has to be dynamic; In the next quarter, it will be other set of 3 columns i.e. C7, C8, C9&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Essentially, I want to remove those columns that are not required for current quarter.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I am using Talend Open Studio 7.2.1. Cannot use licensed version.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Any ideas appreciated. Thanks.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-map-input-columns-to-output-columns/m-p/2248822#M33555</guid>
      <dc:creator>sam2000</dc:creator>
      <dc:date>2024-11-16T03:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically map input columns to output columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-map-input-columns-to-output-columns/m-p/2248823#M33556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Below blog describes about dynamic processing of data. It is not exactly same use case but it can give you an overall idea.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.talend.com/blog/2019/10/31/magically-shuffle-columns-talend-dynamic-schema/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/blog/2019/10/31/magically-shuffle-columns-talend-dynamic-schema/&lt;/A&gt;&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;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-dynamically-map-input-columns-to-output-columns/m-p/2248823#M33556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-13T16:15:21Z</dc:date>
    </item>
  </channel>
</rss>

