<?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: Rotate table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683866#M52078</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That seems almost there. Can you just show how to put the results in one new table instead of having it in Autogenerate(1),&amp;nbsp;Autogenerate(1) - 1,&amp;nbsp;Autogenerate(1) - 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 16:03:03 GMT</pubDate>
    <dc:creator>vladimirkup</dc:creator>
    <dc:date>2020-03-11T16:03:03Z</dc:date>
    <item>
      <title>Rotate table</title>
      <link>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683696#M52065</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a following simple table:&lt;/P&gt;&lt;P&gt;Months|Sales|Profit&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 1M&amp;nbsp; &amp;nbsp; | 100K&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2M&amp;nbsp; &amp;nbsp; &amp;nbsp;| 200K&lt;/P&gt;&lt;P&gt;March&amp;nbsp; | 3M&amp;nbsp; &amp;nbsp; &amp;nbsp;| 300K&lt;/P&gt;&lt;P&gt;How can rotate it in QLIK Sense that at the end it will look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jan&amp;nbsp; | Feb |March&lt;/P&gt;&lt;P&gt;Sales&amp;nbsp; &amp;nbsp; 1M&amp;nbsp; |&amp;nbsp; 2M&amp;nbsp; &amp;nbsp;|&amp;nbsp; 3M&lt;/P&gt;&lt;P&gt;Profit&amp;nbsp; &amp;nbsp;100 | 200K |300K&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683696#M52065</guid>
      <dc:creator>vladimirkup</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate table</title>
      <link>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683712#M52066</link>
      <description>&lt;P&gt;attached&lt;/P&gt;&lt;LI-CODE lang="python"&gt;LOAD
    *
FROM [lib://Downloads/test1683696.xlsx]
(ooxml, embedded labels, table is Feuil2, filters(
Rotate(right)
));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29890iF3D8F6B948FE4D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 11:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683712#M52066</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-03-11T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate table</title>
      <link>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683769#M52069</link>
      <description>&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;i load from a resident table though and&amp;nbsp;it seems not working . Can i run this rotate(right) command with a load from a resident table ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 13:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683769#M52069</guid>
      <dc:creator>vladimirkup</dc:creator>
      <dc:date>2020-03-11T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate table</title>
      <link>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683828#M52071</link>
      <description>&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;attahced, a&amp;nbsp; new way :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:

LOAD * INLINE [
Months, Sales, Profit
Jan, 1M , 100K
Feb ,2M , 200K
March , 3M     , 300K
];


let NumRows=NoOfRows('Data');
Let vcount =NoOfFields('Data');
FOR i=0 to $(NumRows)-1
	For j=2 to $(vcount)

 		 LET Value=Peek(FieldName($(j),'Data'),$(i),'Data');
 		 let title=Peek(FieldName(1,'Data'),$(i),'Data');
 		  let title2=FieldName($(j),'Data');

 load 
'$(title2)' AS Title,
 '$(Value)' as '$(title)'
 autogenerate(1);

NEXT;
NEXT;

drop table Data;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29902i53A0B99141B88A85/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683828#M52071</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-03-11T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate table</title>
      <link>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683866#M52078</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That seems almost there. Can you just show how to put the results in one new table instead of having it in Autogenerate(1),&amp;nbsp;Autogenerate(1) - 1,&amp;nbsp;Autogenerate(1) - 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/1683866#M52078</guid>
      <dc:creator>vladimirkup</dc:creator>
      <dc:date>2020-03-11T16:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate table</title>
      <link>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/2108521#M90531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a similar set of query , could you please help me with the below scenario :-&lt;/P&gt;
&lt;TABLE width="558"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;UserID&lt;/TD&gt;
&lt;TD width="84"&gt;UserNumber&lt;/TD&gt;
&lt;TD width="93"&gt;Feedback YN&lt;/TD&gt;
&lt;TD width="317"&gt;Question&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;29&lt;/TD&gt;
&lt;TD&gt;11111111&lt;/TD&gt;
&lt;TD&gt;YES&lt;/TD&gt;
&lt;TD&gt;Q1) Did you completed the day one activities ?&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;30&lt;/TD&gt;
&lt;TD&gt;11111111&lt;/TD&gt;
&lt;TD&gt;YES&lt;/TD&gt;
&lt;TD&gt;Q2)Did you share the infomration with customer ?&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;31&lt;/TD&gt;
&lt;TD&gt;11111111&lt;/TD&gt;
&lt;TD&gt;N/A&lt;/TD&gt;
&lt;TD&gt;Q3) Did you escalate if required ?&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;32&lt;/TD&gt;
&lt;TD&gt;11111111&lt;/TD&gt;
&lt;TD&gt;YES&lt;/TD&gt;
&lt;TD&gt;Q4Did you follow the closure process ?&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I wish to achieve the below output :-&lt;/P&gt;
&lt;TABLE width="1024"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;UserID&lt;/TD&gt;
&lt;TD width="84"&gt;User Number&lt;/TD&gt;
&lt;TD width="93"&gt;Q1) Did you completed the day one activities ?&lt;/TD&gt;
&lt;TD width="317"&gt;Q2)Did you share the information with customer ?&lt;/TD&gt;
&lt;TD width="211"&gt;Q3) Did you escalate if required ?&lt;/TD&gt;
&lt;TD width="255"&gt;Q4) Did you follow the closure process ?&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;29&lt;/TD&gt;
&lt;TD width="84"&gt;11111111&lt;/TD&gt;
&lt;TD&gt;YES&lt;/TD&gt;
&lt;TD width="317"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;30&lt;/TD&gt;
&lt;TD&gt;11111111&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="317"&gt;YES&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;31&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="317"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;N/A&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;32&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="317"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;Yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried your solution but I could not able to do it correctly with my data as I need the other fields as well. Could you please help me with this ?&lt;/P&gt;
&lt;P&gt;I cannot use the generic load solution here as it results in creation of multiple tables and synthetic keys .&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rotate-table/m-p/2108521#M90531</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2023-08-22T14:23:04Z</dc:date>
    </item>
  </channel>
</rss>

