<?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 data with more than one header in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841210#M1008611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;way i do it is pick(monthNo,'Jan','Feb',etc)&amp;nbsp; so if monthno is say 6 it will return Jun. There might be a slicker way using an inline table with 2 columns monthno and month for a lookup or mapping load or playing with month(makedate(2000,monthno,1)). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 12:34:54 GMT</pubDate>
    <dc:creator>john_s_w_wood</dc:creator>
    <dc:date>2015-05-12T12:34:54Z</dc:date>
    <item>
      <title>CrossTable data with more than one header</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841206#M1008607</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;I have data in my below Exel file which I would like to cross table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1, V1 resents data for January [Quantity] and [Value] &lt;/P&gt;&lt;P&gt;Q2, V2 represents data for February [&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Quantity] and [Value]&lt;/SPAN&gt; ...etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I structure this data to be in a logical table: &lt;/P&gt;&lt;P&gt;SBUDA, SBUDD, Month, Quantity, Value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841206#M1008607</guid>
      <dc:creator />
      <dc:date>2015-05-12T10:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable data with more than one header</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841207#M1008608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;might have a solution for you Tumelo. Here's the script, attached sample qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempData:&lt;/P&gt;&lt;P&gt;CrossTable(Field, Value, 2) // first 2 fields are in rows, label rest of data as field and value&lt;/P&gt;&lt;P&gt;LOAD *&amp;nbsp; // wildcard used to replace fields to save space but also accomodates new fields&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;TBUDEXPY.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is TBUDEXPY);&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempData2: // only pull data where field starts with a Q, take right characters after Q as Month&lt;/P&gt;&lt;P&gt;load SBUDA,SBUDD, Right(Field,len(Field)-1) as Month, Value as Quantity resident tempData where left(Field,1) = 'Q';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//concatenate, only pull data where field starts with a V, take right characters after V as Month&lt;/P&gt;&lt;P&gt;load SBUDA,SBUDD,Right(Field,len(Field)-1) as Month, Value resident tempData where left(Field,1) = 'V';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table tempData;// no longer required&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: // consolidate into single row combinations&lt;/P&gt;&lt;P&gt;Load SBUDA,SBUDD,Month, sum(Quantity) as Quantity, sum(Value) as Value resident tempData2&lt;/P&gt;&lt;P&gt;group by SBUDA,SBUDD, Month;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table tempData2;// no longer required&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841207#M1008608</guid>
      <dc:creator>john_s_w_wood</dc:creator>
      <dc:date>2015-05-12T11:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable data with more than one header</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841208#M1008609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CrossTable(Quantity|Value, Data, 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD SBUDA, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SBUDD, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q1&amp;amp;'|'&amp;amp;V1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q2&amp;amp;'|'&amp;amp;V2, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q3&amp;amp;'|'&amp;amp;V3, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q4&amp;amp;'|'&amp;amp;V4, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q5&amp;amp;'|'&amp;amp;V5, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q6&amp;amp;'|'&amp;amp;V6, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q7&amp;amp;'|'&amp;amp;V7, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q8&amp;amp;'|'&amp;amp;V8, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q9&amp;amp;'|'&amp;amp;V9, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q10&amp;amp;'|'&amp;amp;V10, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q11&amp;amp;'|'&amp;amp;V11, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q12&amp;amp;'|'&amp;amp;V12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Community_163620.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is TBUDEXPY);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD SBUDA,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SBUDD,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; PurgeChar(PurgeChar(Quantity|Value, '&amp;amp;|'), Chr(39)) as DataType,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Data, '|', 1) as Quantity,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Data, '|', 2) as Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841208#M1008609</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-12T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable data with more than one header</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841209#M1008610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! Thanks a lot guys, both your solutions are awesome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John: Is there a way I can convert Month from 1-12 to Jan-Dec in your solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841209#M1008610</guid>
      <dc:creator />
      <dc:date>2015-05-12T12:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable data with more than one header</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841210#M1008611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;way i do it is pick(monthNo,'Jan','Feb',etc)&amp;nbsp; so if monthno is say 6 it will return Jun. There might be a slicker way using an inline table with 2 columns monthno and month for a lookup or mapping load or playing with month(makedate(2000,monthno,1)). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841210#M1008611</guid>
      <dc:creator>john_s_w_wood</dc:creator>
      <dc:date>2015-05-12T12:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable data with more than one header</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841211#M1008612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this to convert numbers to Month Names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(Pick(Month,&amp;nbsp; 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), Month) as Month&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841211#M1008612</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-12T12:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: CrossTable data with more than one header</title>
      <link>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841212#M1008613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 06:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CrossTable-data-with-more-than-one-header/m-p/841212#M1008613</guid>
      <dc:creator />
      <dc:date>2015-05-13T06:42:14Z</dc:date>
    </item>
  </channel>
</rss>

