<?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: CrossTable/Transpose/Rotate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CrossTable-Transpose-Rotate/m-p/1696740#M597731</link>
    <description>&lt;P&gt;Are you looking something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mapQty:
Mapping
LOAD Qty, Year&amp;amp;'@@'&amp;amp;Month INLINE [
    Qty, Year, Month
    Qty, 2014, Aug
    Qty1, 2014, Dec
    Qty2, 2014, Jul
    Qty3, 2014, Jun
    Qty4, 2014, Nov
    Qty5, 2014, Oct
    Qty6, 2014, Sep
];

mapTO:
Mapping
LOAD TO, Year&amp;amp;'@@'&amp;amp;Month INLINE [
    TO, Year, Month
    Turnover, 2014, Aug
    Turnover1, 2014, Dec
    Turnover2, 2014, Jul
    Turnover3, 2014, Jun
    Turnover4, 2014, Nov
    Turnover5, 2014, Oct
    Turnover6, 2014, Sep
];

tab1:
CrossTable (Key, Value, 3)
LOAD Customer, 
     [Market Sub Segment], 
     [Estimate Version], 
     Qty, 
     Turnover, 
     Qty1, 
     Turnover1, 
     Qty2, 
     Turnover2, 
     Qty3, 
     Turnover3, 
     Qty4, 
     Turnover4, 
     Qty5, 
     Turnover5, 
     Qty6, 
     Turnover6
FROM
[C:\Users\sarav\Downloads\Estimates.xls]
(biff, embedded labels, header is 2 lines, table is Sheet1$);

tab2:
LOAD *, SubField(If(Key Like 'Qty*', ApplyMap('mapQty',Key),ApplyMap('mapTO',Key)),'@@',1) As Year
	  , SubField(If(Key Like 'Qty*', ApplyMap('mapQty',Key),ApplyMap('mapTO',Key)),'@@',2) As Month
Resident tab1;

Drop Table tab1;
Drop Field Key, Value;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV16.PNG" style="width: 410px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32481iCE558A51465C2B92/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV16.PNG" alt="commQV16.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Apr 2020 22:57:22 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2020-04-25T22:57:22Z</dc:date>
    <item>
      <title>CrossTable/Transpose/Rotate</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-Transpose-Rotate/m-p/1555627#M597730</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always struggle with crosstables etc.&amp;nbsp; PLease help me with this tricky transpose of data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7826i3390F531A93B1431/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need it to have the following columns :&lt;/P&gt;&lt;P&gt;Customer, Market Segment, Estimate Version, YEar, Month, Qty, TurnOver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(File is attached)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-Transpose-Rotate/m-p/1555627#M597730</guid>
      <dc:creator>BradleyIsaacs</dc:creator>
      <dc:date>2024-11-16T21:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable/Transpose/Rotate</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-Transpose-Rotate/m-p/1696740#M597731</link>
      <description>&lt;P&gt;Are you looking something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mapQty:
Mapping
LOAD Qty, Year&amp;amp;'@@'&amp;amp;Month INLINE [
    Qty, Year, Month
    Qty, 2014, Aug
    Qty1, 2014, Dec
    Qty2, 2014, Jul
    Qty3, 2014, Jun
    Qty4, 2014, Nov
    Qty5, 2014, Oct
    Qty6, 2014, Sep
];

mapTO:
Mapping
LOAD TO, Year&amp;amp;'@@'&amp;amp;Month INLINE [
    TO, Year, Month
    Turnover, 2014, Aug
    Turnover1, 2014, Dec
    Turnover2, 2014, Jul
    Turnover3, 2014, Jun
    Turnover4, 2014, Nov
    Turnover5, 2014, Oct
    Turnover6, 2014, Sep
];

tab1:
CrossTable (Key, Value, 3)
LOAD Customer, 
     [Market Sub Segment], 
     [Estimate Version], 
     Qty, 
     Turnover, 
     Qty1, 
     Turnover1, 
     Qty2, 
     Turnover2, 
     Qty3, 
     Turnover3, 
     Qty4, 
     Turnover4, 
     Qty5, 
     Turnover5, 
     Qty6, 
     Turnover6
FROM
[C:\Users\sarav\Downloads\Estimates.xls]
(biff, embedded labels, header is 2 lines, table is Sheet1$);

tab2:
LOAD *, SubField(If(Key Like 'Qty*', ApplyMap('mapQty',Key),ApplyMap('mapTO',Key)),'@@',1) As Year
	  , SubField(If(Key Like 'Qty*', ApplyMap('mapQty',Key),ApplyMap('mapTO',Key)),'@@',2) As Month
Resident tab1;

Drop Table tab1;
Drop Field Key, Value;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV16.PNG" style="width: 410px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32481iCE558A51465C2B92/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV16.PNG" alt="commQV16.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 22:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-Transpose-Rotate/m-p/1696740#M597731</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-04-25T22:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable/Transpose/Rotate</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-Transpose-Rotate/m-p/1696743#M597732</link>
      <description>&lt;P&gt;Please check this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mapQty:
Mapping
LOAD Qty, Year&amp;amp;'@@'&amp;amp;Month INLINE [
    Qty, Year, Month
    Qty, 2014, Aug
    Qty1, 2014, Dec
    Qty2, 2014, Jul
    Qty3, 2014, Jun
    Qty4, 2014, Nov
    Qty5, 2014, Oct
    Qty6, 2014, Sep
];

mapTO:
Mapping
LOAD TO, Year&amp;amp;'@@'&amp;amp;Month INLINE [
    TO, Year, Month
    Turnover, 2014, Aug
    Turnover1, 2014, Dec
    Turnover2, 2014, Jul
    Turnover3, 2014, Jun
    Turnover4, 2014, Nov
    Turnover5, 2014, Oct
    Turnover6, 2014, Sep
];

tab1:
CrossTable (Key, Value, 3)
LOAD Customer, 
     [Market Sub Segment], 
     [Estimate Version], 
     Qty, 
     Turnover, 
     Qty1, 
     Turnover1, 
     Qty2, 
     Turnover2, 
     Qty3, 
     Turnover3, 
     Qty4, 
     Turnover4, 
     Qty5, 
     Turnover5, 
     Qty6, 
     Turnover6
FROM
[C:\Users\sarav\Downloads\Estimates.xls]
(biff, embedded labels, header is 2 lines, table is Sheet1$);

Left Join (tab1)
LOAD Customer
     ,[Market Sub Segment]
     ,[Estimate Version]
	 ,SubField(If(Key Like 'Qty*', ApplyMap('mapQty',Key)),'@@',1) As Year
	 ,SubField(If(Key Like 'Qty*', ApplyMap('mapQty',Key)),'@@',2) As Month
	 ,If(Key Like 'Qty*', Value) As Qty
Resident tab1;

Left Join (tab1)
LOAD Customer
     ,[Market Sub Segment]
     ,[Estimate Version]
	 ,SubField(If(Key Like 'Turnover*', ApplyMap('mapTO',Key)),'@@',1) As Year
	 ,SubField(If(Key Like 'Turnover*', ApplyMap('mapTO',Key)),'@@',2) As Month
	 ,If(Key Like 'Turnover*', Value) As Turnover
Resident tab1;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV16.PNG" style="width: 523px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32482iB54FA2EC2D029368/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV16.PNG" alt="commQV16.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 23:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-Transpose-Rotate/m-p/1696743#M597732</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-04-25T23:25:21Z</dc:date>
    </item>
  </channel>
</rss>

