<?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: Qlikview - transform columns in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654738#M239209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_130834_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/65292_QlikCommunity_Thread_130834_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14090900029311067" jivemacro_uid="_14090900029311067"&gt;
&lt;P&gt;Generic LOAD Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Label '&amp;amp;AutoNumber(RecNo(), Key),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="130834" data-objecttype="1" href="http://community.qlik.com/thread/130834"&gt;http://community.qlik.com/thread/130834&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As already mentioned in the other solutions, your description lacks the specification of how the labels shall be assigned to the different label columns. Here I used the order of your source table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 21:46:08 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2014-08-26T21:46:08Z</dc:date>
    <item>
      <title>Qlikview - transform columns in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654734#M239205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table loaded in this format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Label&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Level of Study (PGT)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;JACS code (B2)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Level of Study (PGT)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;JACS code (B3)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would like to transfer my table to be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Label 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Label 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Level of Study (PGT)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JACS code (B2)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Level of Study (PGT)&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;JACS code (B3)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 15:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654734#M239205</guid>
      <dc:creator>terezagr</dc:creator>
      <dc:date>2014-08-26T15:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview - transform columns in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654735#M239206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TerezaGr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load the table twice;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Tablename&amp;gt;:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Label AS Label1&lt;/P&gt;&lt;P&gt;FROM &amp;lt;Table&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;Filter conditions for first label&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Label AS Label2&lt;/P&gt;&lt;P&gt;FROM &amp;lt;Table&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;Filter conditions for second label&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 15:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654735#M239206</guid>
      <dc:creator />
      <dc:date>2014-08-26T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview - transform columns in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654736#M239207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work if your labe1 values are always 'Level of Study (PGT)' .&amp;nbsp; Is that true ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RawData:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Label,Key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level of Study (PGT), 23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JACS code (B2), 23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level of Study (PGT), 24&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JACS code (B3), 24&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Label,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Key&lt;/P&gt;&lt;P&gt;Resident RawData&lt;/P&gt;&lt;P&gt;where Label='Level of Study (PGT)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Data)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Label as Label2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Key&lt;/P&gt;&lt;P&gt;Resident RawData&lt;/P&gt;&lt;P&gt;where Label&amp;lt;&amp;gt;'Level of Study (PGT)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table RawData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 15:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654736#M239207</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-08-26T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview - transform columns in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654737#M239208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.... or to convert rows to columns in a more general way then you could use a &lt;EM&gt;Generic Load.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 15:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654737#M239208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-26T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview - transform columns in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654738#M239209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_130834_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/65292_QlikCommunity_Thread_130834_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14090900029311067" jivemacro_uid="_14090900029311067"&gt;
&lt;P&gt;Generic LOAD Key,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Label '&amp;amp;AutoNumber(RecNo(), Key),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="130834" data-objecttype="1" href="http://community.qlik.com/thread/130834"&gt;http://community.qlik.com/thread/130834&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As already mentioned in the other solutions, your description lacks the specification of how the labels shall be assigned to the different label columns. Here I used the order of your source table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 21:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-transform-columns-in-a-table/m-p/654738#M239209</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-26T21:46:08Z</dc:date>
    </item>
  </channel>
</rss>

