<?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: Change Rows into Column in QliKView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60930#M10165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might interest you as a much more optimized solution which is also totally flexible on how many columns the source QVD contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15285196514709093 jive_text_macro" jivemacro_uid="_15285196514709093" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TEMP:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;SPAN style="color: #339966;"&gt;// Get the ID from previous row if on an even numbered row.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; If( Mod(RowNo(),2) = 0 , Peek('ID'), @1 ) AS ID,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; @1 AS Status&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; tab2.qvd (qvd,filters(Transpose());&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DATA:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NOCONCATENATE LOAD&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; ID,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Status&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; TEMP&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;SPAN style="color: #339966;"&gt;// remove every odd numbered row since they are not necessary anymore&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Mod(RecNo(),2) = 0 AND Len(ID)&amp;gt;0;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP TABLE TEMP;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Jun 2018 04:48:31 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-06-09T04:48:31Z</dc:date>
    <item>
      <title>Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60919#M10154</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;Could you please help how to resolve below issue in QlikView Script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204403_Sample.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lawrance A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 17:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60919#M10154</guid>
      <dc:creator>lawrance</dc:creator>
      <dc:date>2018-06-05T17:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60920#M10155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Pick(IterNo(),ID,ID1,ID2) AS ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Pick(IterNo(),Name,Name1,Name2) AS Name &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; [SourceData.xlsx]&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;WHILE&lt;/P&gt;&lt;P&gt;&amp;nbsp; IterNo()&amp;lt;=3;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60920#M10155</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-06-05T22:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60921#M10156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we have n number of users then how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Lawrance A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 07:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60921#M10156</guid>
      <dc:creator>lawrance</dc:creator>
      <dc:date>2018-06-06T07:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60922#M10157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several possibilities. One could be to extend the logic from Petter in that you used variables for the ID- and Name-Lists which are created within a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is using the Qlik file-wizard which has a feature to merge multiple columns into target-columns - after choosing a file with the wizard you need to click on next to get to further windows with various options to transform the data. Unfortunately they aren't (well) documented from Qlik but it's covered within one or two books, for example in: &lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;QlikView 11 for Developers&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I never use them because I find usually other solutions more quickly, for example something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 8pt; font-family: 'Courier New';"&gt;t1: &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;crosstable&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;Categeory&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;Value&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, 1)&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;load&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;() &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;inline&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; ID, Name, ID1, Name1, ID2, Name2&lt;BR /&gt; 1, A, 2, B, 3, C&lt;BR /&gt; 4, D, 5, E, 6, F&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; t2: &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; *, -(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;even&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;recno&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;())) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(-(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;even&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;recno&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;())) = 1, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;peek&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;('RecID'), &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;peek&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;('RecID'), 1)) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecID&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; t1;&lt;BR /&gt; &lt;BR /&gt; t3: &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;noconcatenate&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;load&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;Value&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;Name&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; t2 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;where&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;left&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;join&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;(t3)&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;load&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; + 1 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecID&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;Value&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; t2 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;where&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon;"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; = 0;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;drop&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;tables&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt; t1, t2; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204482_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;and quite probably there are some more ways to solve such case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60922#M10157</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-06T12:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60923#M10158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. I tried above scenario but facing discrepancies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try once again and update the status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lawrance A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 15:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60923#M10158</guid>
      <dc:creator>lawrance</dc:creator>
      <dc:date>2018-06-06T15:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60924#M10159</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;Still I am facing issue to get the required output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have coulmns like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column Name-&amp;gt; Name 1, Name2.........Name50, ID1,ID2,......ID50,Entry1,.....Entry50, Exit1,.....Exit50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried above scenario again I couldn't achieve this. Is there any other way to achieve this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lawrance A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 18:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60924#M10159</guid>
      <dc:creator>lawrance</dc:creator>
      <dc:date>2018-06-07T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60925#M10160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;SPAN style="padding-right: 3px; color: #000000; font-size: 1.1em; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Lawrance Amburose&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this variation of &lt;SPAN style="padding-right: 3px; color: #000000; font-size: 1.1em; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Petter Skjolden's&lt;/SPAN&gt;answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15284008691363599" jivemacro_uid="_15284008691363599" modifiedtitle="true"&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[IDxName.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Plan1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vFieldNo = NoOfFields('Table');&lt;/P&gt;
&lt;P&gt;Set IDlist = 'ID';&lt;/P&gt;
&lt;P&gt;Set Namelist = 'Name';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For i = 1 To ($(vFieldNo) / 2) - 1&lt;/P&gt;
&lt;P&gt;Let IDlist = IDlist &amp;amp; ',ID' &amp;amp; $(i);&lt;/P&gt;
&lt;P&gt;Let Namelist = Namelist &amp;amp; ',Name' &amp;amp; $(i);&lt;/P&gt;
&lt;P&gt;Next i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FinalTable:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Pick(IterNo(),$(IDlist)) AS ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Pick(IterNo(),$(Namelist)) AS Name&lt;/P&gt;
&lt;P&gt;Resident Table&lt;/P&gt;
&lt;P&gt;WHILE IterNo()&amp;lt;=($(vFieldNo) / 2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Table;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 19:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60925#M10160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-07T19:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60926#M10161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have posted this question twice. I have answered it there.&lt;A href="https://community.qlik.com/thread/303887"&gt;Change Rows into Column in QliKView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try it as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;PS - if you find this solution as correct and helpful, mark it as correct/helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//*************************************************************************************************************&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ODBC CONNECT32 TO [Excel;DBQ=C:\Users\Akshaya\Documents\Test\Test.xlsx];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Cols_Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQLCOLUMNS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ColumnNo:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load max(ORDINAL) as MaxOrdinal Resident Cols_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vLoop = Peek('MaxOrdinal',0,ColumnNo)/2-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table Cols_Temp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table ColumnNo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Test:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL Select ID,Name from `C:\Users\Akshaya\Documents\Test\Test.xlsx`.`Sheet1$`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For i = 1 to $(vLoop)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL select ID$(i) as ID, Name$(i) as Name from `C:\Users\Akshaya\Documents\Test\Test.xlsx`.`Sheet1$`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Next i;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 21:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60926#M10161</guid>
      <dc:creator>adityaakshaya</dc:creator>
      <dc:date>2018-06-07T21:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60927#M10162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A lot of people are trying to help you. Be polite enough to put a minimum time to explain what you are looking for so we don't have to waste our time hunting for answers that doesn't solve what you didn't bother to explain...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 21:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60927#M10162</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-06-07T21:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60928#M10163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. I should not do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I will correct myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 03:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60928#M10163</guid>
      <dc:creator>lawrance</dc:creator>
      <dc:date>2018-06-08T03:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60929#M10164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got expected result by using my below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD Distinct ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[tab2.qvd]&lt;/P&gt;&lt;P&gt;(qvd) where len(ID)&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i=1 to 188&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concatenate(Temp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD Distinct ID$(i) as ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status$(i)&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd) where len(ID)&amp;gt;0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lawrance A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2018 02:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60929#M10164</guid>
      <dc:creator>lawrance</dc:creator>
      <dc:date>2018-06-09T02:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60930#M10165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might interest you as a much more optimized solution which is also totally flexible on how many columns the source QVD contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15285196514709093 jive_text_macro" jivemacro_uid="_15285196514709093" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TEMP:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;SPAN style="color: #339966;"&gt;// Get the ID from previous row if on an even numbered row.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; If( Mod(RowNo(),2) = 0 , Peek('ID'), @1 ) AS ID,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; @1 AS Status&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; tab2.qvd (qvd,filters(Transpose());&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DATA:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NOCONCATENATE LOAD&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; ID,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Status&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; TEMP&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;SPAN style="color: #339966;"&gt;// remove every odd numbered row since they are not necessary anymore&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; Mod(RecNo(),2) = 0 AND Len(ID)&amp;gt;0;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP TABLE TEMP;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2018 04:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60930#M10165</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-06-09T04:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change Rows into Column in QliKView</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60931#M10166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the question has been answered please mark the right response as &lt;STRONG&gt;CORRECT&lt;/STRONG&gt; and if you feel like it give all the persons that were helpful a &lt;STRONG&gt;HELPFUL&lt;/STRONG&gt; tag on their responses too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Rows-into-Column-in-QliKView/m-p/60931#M10166</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-06-29T14:26:30Z</dc:date>
    </item>
  </channel>
</rss>

