<?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: Transpose the data in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468480#M99478</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/160617"&gt;@kartik&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope there is a better way, but this is how I did it:&lt;/P&gt;
&lt;PRE&gt;// Start the final table&lt;BR /&gt;[Final]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Key&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;For Each vType In 'Code','Colour','Country'&lt;BR /&gt;&lt;BR /&gt;[Temp$(vType)]:&lt;BR /&gt;Crosstable ([T$(vType)], [$(vType)])&lt;BR /&gt;LOAD&lt;BR /&gt; [C],&lt;BR /&gt; [D],&lt;BR /&gt; [E],&lt;BR /&gt; [F],&lt;BR /&gt; [G]&lt;BR /&gt;FROM&lt;BR /&gt; [lib://DataFiles/Cross_Table.xlsx]&lt;BR /&gt; (ooxml, no labels, table is Tabelle1)&lt;BR /&gt;WHERE&lt;BR /&gt;   Match([C],'$(vType)')&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN([Final]) LOAD RecNo() AS [Key], [$(vType)] RESIDENT [Temp$(vType)];&lt;BR /&gt;&lt;BR /&gt;DROP TABLE [Temp$(vType)];&lt;BR /&gt;&lt;BR /&gt;Next vType&lt;BR /&gt;&lt;BR /&gt;DROP FIELD [Key];&lt;/PRE&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="marksouzacosta_0-1720285386974.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168987i1574B76188B80F55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1720285386974.png" alt="marksouzacosta_0-1720285386974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jul 2024 17:04:37 GMT</pubDate>
    <dc:creator>marksouzacosta</dc:creator>
    <dc:date>2024-07-06T17:04:37Z</dc:date>
    <item>
      <title>Transpose the data in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468452#M99476</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;I have a good question to ask.&lt;/P&gt;
&lt;P&gt;We have data given below in Excel in the particular format. What I need to do is, need to make the rows as a column in the data load editor.&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 300pt;" border="0" width="400" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" span="5" width="80" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl65" style="height: 15.0pt; width: 60pt;"&gt;Code&lt;/TD&gt;
&lt;TD width="80" class="xl66" style="border-left: none; width: 60pt;"&gt;1&lt;/TD&gt;
&lt;TD width="80" class="xl66" style="border-left: none; width: 60pt;"&gt;2&lt;/TD&gt;
&lt;TD width="80" class="xl66" style="border-left: none; width: 60pt;"&gt;3&lt;/TD&gt;
&lt;TD width="80" class="xl66" style="border-left: none; width: 60pt;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;Colour&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Red&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Green&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Yellow&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Blue&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;Country&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;DE&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;UK&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;DK&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the above data I need to transform the data the same as the output table.&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" span="3" width="80" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl65" style="height: 15.0pt; width: 60pt;"&gt;Code&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;Colour&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;Country&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Red&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;DE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Green&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;UK&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Yellow&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Blue&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;DK&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468452#M99476</guid>
      <dc:creator>kartik</dc:creator>
      <dc:date>2024-11-15T20:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose the data in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468480#M99478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/160617"&gt;@kartik&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope there is a better way, but this is how I did it:&lt;/P&gt;
&lt;PRE&gt;// Start the final table&lt;BR /&gt;[Final]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Key&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;For Each vType In 'Code','Colour','Country'&lt;BR /&gt;&lt;BR /&gt;[Temp$(vType)]:&lt;BR /&gt;Crosstable ([T$(vType)], [$(vType)])&lt;BR /&gt;LOAD&lt;BR /&gt; [C],&lt;BR /&gt; [D],&lt;BR /&gt; [E],&lt;BR /&gt; [F],&lt;BR /&gt; [G]&lt;BR /&gt;FROM&lt;BR /&gt; [lib://DataFiles/Cross_Table.xlsx]&lt;BR /&gt; (ooxml, no labels, table is Tabelle1)&lt;BR /&gt;WHERE&lt;BR /&gt;   Match([C],'$(vType)')&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN([Final]) LOAD RecNo() AS [Key], [$(vType)] RESIDENT [Temp$(vType)];&lt;BR /&gt;&lt;BR /&gt;DROP TABLE [Temp$(vType)];&lt;BR /&gt;&lt;BR /&gt;Next vType&lt;BR /&gt;&lt;BR /&gt;DROP FIELD [Key];&lt;/PRE&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="marksouzacosta_0-1720285386974.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168987i1574B76188B80F55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1720285386974.png" alt="marksouzacosta_0-1720285386974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 17:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468480#M99478</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-07-06T17:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose the data in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468495#M99479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, this worked but I think there should be some easy way too for this....&lt;/P&gt;
&lt;P&gt;Can't we do this with Crosstable or generic load ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 05:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468495#M99479</guid>
      <dc:creator>kartik</dc:creator>
      <dc:date>2024-07-07T05:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose the data in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468496#M99480</link>
      <description>&lt;P&gt;Crosstable and Generic Loads were my first attempts but I had no success with them. I don't discard the possibilities of better and more straightforward solutions. I'm just not seeing it yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mark Costa&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 05:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468496#M99480</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-07-07T05:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose the data in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468508#M99482</link>
      <description>&lt;P&gt;Hi, if excel is the source you can add tranformations while loading the data, like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD Code, 
     Colour, 
     Country
FROM
[lib://DataFiles/Cross_Table.xlsx]
(ooxml, embedded labels, table is Tabelle1, filters(
	Remove(Row, RowCnd(CellValue, 1, StrCnd(shorter, 0))),
	Remove(Col, Pos(Top, 1)),
	Transpose()
));&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 07 Jul 2024 10:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468508#M99482</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-07-07T10:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose the data in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468692#M99489</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/160617"&gt;@kartik&lt;/a&gt;.,&lt;BR /&gt;&lt;BR /&gt;Check this one:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;[Your_CrosstableTable]:&lt;BR /&gt;Crosstable (Code, Value, 1)&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Attribute, 1, 2, 3, 4&lt;BR /&gt;Colour, Red, Green, Yellow, Blue&lt;BR /&gt;Country, DE, UK, FR, DK&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;FinalTable:&lt;BR /&gt;LOAD&lt;BR /&gt;Code as Code,&lt;BR /&gt;If(Attribute = 'Colour', Value) as Colour&lt;BR /&gt;Resident [Your_CrosstableTable]&lt;BR /&gt;Where Attribute = 'Colour' ;&lt;/P&gt;
&lt;P&gt;Left JOIN (FinalTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Code as Code,&lt;BR /&gt;If(Attribute = 'Country', Value) as Country&lt;BR /&gt;Resident [Your_CrosstableTable]&lt;BR /&gt;Where Attribute = 'Country';&lt;/P&gt;
&lt;P&gt;DROP TABLE [Your_CrosstableTable];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TauseefKhan_1-1720440463050.png" style="width: 439px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169012iA66BC94146B40EF4/image-dimensions/439x191?v=v2" width="439" height="191" role="button" title="TauseefKhan_1-1720440463050.png" alt="TauseefKhan_1-1720440463050.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;***Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.***&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 12:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Transpose-the-data-in-Qlik-Sense/m-p/2468692#M99489</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-07-08T12:08:39Z</dc:date>
    </item>
  </channel>
</rss>

