<?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 Dynamic column name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-name/m-p/2196067#M389</link>
    <description>&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with a timestamp field. Processing the data, I am recovering the HOUR value from this field.&lt;/P&gt;&lt;P&gt;I have also another table with fields like: hour_0, hour_1... hour_23.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: is there any way of converting the calculated hour from timestamp into the target column in order to insert a value? For instance, if the hour is 13 then I want to insert the new value in hour_13 from the final table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty new using TOD and this is driving me crazy. Could you please help me?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Feb 2020 18:02:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-09T18:02:29Z</dc:date>
    <item>
      <title>Dynamic column name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-name/m-p/2196067#M389</link>
      <description>&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with a timestamp field. Processing the data, I am recovering the HOUR value from this field.&lt;/P&gt;&lt;P&gt;I have also another table with fields like: hour_0, hour_1... hour_23.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: is there any way of converting the calculated hour from timestamp into the target column in order to insert a value? For instance, if the hour is 13 then I want to insert the new value in hour_13 from the final table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty new using TOD and this is driving me crazy. Could you please help me?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2020 18:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-name/m-p/2196067#M389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-09T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-name/m-p/2196068#M390</link>
      <description>Many ways to achive this.
&lt;BR /&gt;
&lt;BR /&gt;1)Put the calculated hour in globalvar e.g calculatedHour
&lt;BR /&gt;2)tfixedflowinput , put schema same as table i.e. all hour column
&lt;BR /&gt;3) in expression ,
&lt;BR /&gt;Hour-0
&lt;BR /&gt;If ( (global get function for calculatedHour )=0) then inputtimestamp else “”
&lt;BR /&gt;
&lt;BR /&gt;Hour1
&lt;BR /&gt;
&lt;BR /&gt;If ( (global get function for calculatedHour )=1) then inputtimestamp else “”
&lt;BR /&gt;and so on.
&lt;BR /&gt;above Syntax is not correct , but i hope you got the idea.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Feb 2020 19:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-name/m-p/2196068#M390</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-02-09T19:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-name/m-p/2196069#M391</link>
      <description>&lt;P&gt;Thanks for your response, but I think I did not explain the problem properly, sorry, I will try it again:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a table with several rows. In every row there is a timestamp refering to an hour of a day and a value:&lt;/P&gt; 
&lt;P&gt;ID:01 - 2020/01/01 00:00 - VAL000&lt;/P&gt; 
&lt;P&gt;ID:02 - 2020/01/01 01:00 - VAL001&lt;/P&gt; 
&lt;P&gt;ID:03 - 2020/01/01 02:00 - VAL002&lt;/P&gt; 
&lt;P&gt;... (and so on)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I also have another table in which I have to insert the value from each hour in a column for this hour. The table is like:&lt;/P&gt; 
&lt;P&gt;ID - YEAR - MONTH- DAY - HOUR_0 - HOUR_1 - HOUR_2 ... HOUR_23&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to manage data in order to insert:&lt;/P&gt; 
&lt;P&gt;1 - 2020 - 01 - 01 - VAL000 - VAL001 - VAL002 - VAL003...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I mean, I try to "convert" several rows in columns, more or less.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I hope now it is better explained.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2020 22:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-name/m-p/2196069#M391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-09T22:15:31Z</dc:date>
    </item>
  </channel>
</rss>

