<?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: Looping through multiple columns Tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2413115#M140072</link>
    <description>&lt;P&gt;I solved it by using a &lt;STRONG&gt;unpivot&lt;/STRONG&gt; in my input sql.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 14:37:29 GMT</pubDate>
    <dc:creator>RVeitch_84</dc:creator>
    <dc:date>2024-01-31T14:37:29Z</dc:date>
    <item>
      <title>Looping through multiple columns Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411192#M140043</link>
      <description>&lt;P&gt;I have a table with over 89 columns of "meter types", see example below.&amp;nbsp; I have to read each meter type and populate it in another table along with a meter type definition.&lt;/P&gt;
&lt;TABLE width="704px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="74.3438px"&gt;Record Type&lt;/TD&gt;
&lt;TD width="71.8281px"&gt;Location&lt;/TD&gt;
&lt;TD width="76.3438px"&gt;Seq Number&lt;/TD&gt;
&lt;TD width="84.5938px"&gt;Date/Time&lt;/TD&gt;
&lt;TD width="92.4219px"&gt;Serial #&lt;/TD&gt;
&lt;TD width="74.3438px"&gt;Station #&lt;/TD&gt;
&lt;TD width="67.3125px"&gt;&lt;STRONG&gt;meter1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="61.2812px"&gt;&lt;STRONG&gt;meter2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="100.531px"&gt;&lt;STRONG&gt;meter3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.3438px"&gt;4&lt;/TD&gt;
&lt;TD width="71.8281px"&gt;abc&lt;/TD&gt;
&lt;TD width="76.3438px"&gt;1&lt;/TD&gt;
&lt;TD width="84.5938px"&gt;1/24/2024&lt;/TD&gt;
&lt;TD width="92.4219px"&gt;1234&lt;/TD&gt;
&lt;TD width="74.3438px"&gt;11&lt;/TD&gt;
&lt;TD width="67.3125px"&gt;5&lt;/TD&gt;
&lt;TD width="61.2812px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="100.531px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.3438px"&gt;4&lt;/TD&gt;
&lt;TD width="71.8281px"&gt;abc&lt;/TD&gt;
&lt;TD width="76.3438px"&gt;2&lt;/TD&gt;
&lt;TD width="84.5938px"&gt;1/24/2024&lt;/TD&gt;
&lt;TD width="92.4219px"&gt;1234&lt;/TD&gt;
&lt;TD width="74.3438px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67.3125px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="61.2812px"&gt;10&lt;/TD&gt;
&lt;TD width="100.531px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="74.3438px"&gt;4&lt;/TD&gt;
&lt;TD width="71.8281px"&gt;abc&lt;/TD&gt;
&lt;TD width="76.3438px"&gt;3&lt;/TD&gt;
&lt;TD width="84.5938px"&gt;1/24/2024&lt;/TD&gt;
&lt;TD width="92.4219px"&gt;1234&lt;/TD&gt;
&lt;TD width="74.3438px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67.3125px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="61.2812px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="100.531px"&gt;25&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to query that table and populate the data in a different format where 'END_VALUE' is the value of the meter type.&lt;/P&gt;
&lt;TABLE width="603"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="99"&gt;SERIALNO&lt;/TD&gt;
&lt;TD width="68"&gt;SET_ID&lt;/TD&gt;
&lt;TD width="96"&gt;METER_TYPE&lt;/TD&gt;
&lt;TD width="127"&gt;EXTERNAL_ID&lt;/TD&gt;
&lt;TD width="108"&gt;END_VALUE&lt;/TD&gt;
&lt;TD width="105"&gt;LOCATION&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1234&lt;/TD&gt;
&lt;TD&gt;123_abc&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;meter1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;123_abc_meter1&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;abc&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1234&lt;/TD&gt;
&lt;TD&gt;123_abc&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;meter2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;123_abc_meter2&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;abc&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1234&lt;/TD&gt;
&lt;TD&gt;123_abc&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;meter3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;123_abc_meter3&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;25&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;abc&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can do this be creating 89 sub jobs and querying each meter type and then populating that column, but just looking for another option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help.&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Talend Data Integration" id="qlik_TalendDataIntegration"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411192#M140043</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2024-11-15T21:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through multiple columns Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411197#M140044</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/263731"&gt;@RVeitch_84&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;if I understand correctly, you want to rotate your table to have each column in a row. &lt;BR /&gt;I suggest you take a look at the function&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/November2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/crosstable.htm" target="_self"&gt;Crosstable&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 17:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411197#M140044</guid>
      <dc:creator>Pierrick</dc:creator>
      <dc:date>2024-01-25T17:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through multiple columns Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411251#M140045</link>
      <description>&lt;P&gt;Try something like this.Assuming you have 6 fields in the beginning of your table that you don't want to pivot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;new_table:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;CROSSTABLE(meter_type, end_value,6)&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Load * from [table];&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 21:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411251#M140045</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-01-25T21:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through multiple columns Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411671#M140054</link>
      <description>&lt;P&gt;I think this is a Talend question.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 17:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2411671#M140054</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-01-28T17:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through multiple columns Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2413115#M140072</link>
      <description>&lt;P&gt;I solved it by using a &lt;STRONG&gt;unpivot&lt;/STRONG&gt; in my input sql.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 14:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-through-multiple-columns-Tmap/m-p/2413115#M140072</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2024-01-31T14:37:29Z</dc:date>
    </item>
  </channel>
</rss>

