<?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 Excel Sheet with Cross Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-Sheet-with-Cross-Table/m-p/228070#M80131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You might have a look into the CROSSTABLE-function, script might look:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;XTable:&lt;BR /&gt; LOAD&lt;BR /&gt; IF(LEN(TRIM(F1)) = 0, PEEK(F1), F1) AS F1, // ensure that each row has a country-info&lt;BR /&gt; F2,&lt;BR /&gt; Jan,&lt;BR /&gt; Feb,&lt;BR /&gt; Mar,&lt;BR /&gt; Apr,&lt;BR /&gt; May,&lt;BR /&gt; Jun,&lt;BR /&gt; Jul,&lt;BR /&gt; Aug,&lt;BR /&gt; Sep,&lt;BR /&gt; Oct,&lt;BR /&gt; Nov,&lt;BR /&gt; Dec&lt;BR /&gt; FROM&lt;BR /&gt; &lt;C&gt;&lt;BR /&gt; (ooxml, embedded labels, table is Feuil1);&lt;BR /&gt;&lt;BR /&gt;Data:&lt;BR /&gt; CROSSTABLE(Month, Value, 2) LOAD * RESIDENT XTable;&lt;BR /&gt; DROP TABLE XTable;&lt;BR /&gt; RENAME FIELD F1 TO Country;&lt;BR /&gt; RENAME FIELD F2 TO Item;&lt;/C&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 18:11:23 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2010-10-05T18:11:23Z</dc:date>
    <item>
      <title>Excel Sheet with Cross Table</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheet-with-Cross-Table/m-p/228069#M80130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load in QVD the datas of a Excel file.&lt;/P&gt;&lt;P&gt;My problem is that in this excel with have 2 Dimensions :&lt;/P&gt;&lt;P&gt;- the dimension Month&lt;/P&gt;&lt;P&gt;-The dimension Countries&lt;/P&gt;&lt;P&gt;and 3 Indicators BUDGET, GGR, NC&lt;/P&gt;&lt;P&gt;I want in the QVD for each month, for Each country these 3 indicators in the same line.&lt;/P&gt;&lt;P&gt;Can you help me please to do this?&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheet-with-Cross-Table/m-p/228069#M80130</guid>
      <dc:creator />
      <dc:date>2010-10-05T13:07:07Z</dc:date>
    </item>
    <item>
      <title>Excel Sheet with Cross Table</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheet-with-Cross-Table/m-p/228070#M80131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You might have a look into the CROSSTABLE-function, script might look:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;XTable:&lt;BR /&gt; LOAD&lt;BR /&gt; IF(LEN(TRIM(F1)) = 0, PEEK(F1), F1) AS F1, // ensure that each row has a country-info&lt;BR /&gt; F2,&lt;BR /&gt; Jan,&lt;BR /&gt; Feb,&lt;BR /&gt; Mar,&lt;BR /&gt; Apr,&lt;BR /&gt; May,&lt;BR /&gt; Jun,&lt;BR /&gt; Jul,&lt;BR /&gt; Aug,&lt;BR /&gt; Sep,&lt;BR /&gt; Oct,&lt;BR /&gt; Nov,&lt;BR /&gt; Dec&lt;BR /&gt; FROM&lt;BR /&gt; &lt;C&gt;&lt;BR /&gt; (ooxml, embedded labels, table is Feuil1);&lt;BR /&gt;&lt;BR /&gt;Data:&lt;BR /&gt; CROSSTABLE(Month, Value, 2) LOAD * RESIDENT XTable;&lt;BR /&gt; DROP TABLE XTable;&lt;BR /&gt; RENAME FIELD F1 TO Country;&lt;BR /&gt; RENAME FIELD F2 TO Item;&lt;/C&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 18:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheet-with-Cross-Table/m-p/228070#M80131</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2010-10-05T18:11:23Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Excel Sheet with Cross Table</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Sheet-with-Cross-Table/m-p/228071#M80132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank your for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have do an other method with many time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;CrossTable(B, Month, 2)&lt;BR /&gt; LOAD&lt;BR /&gt; A as Country,&lt;BR /&gt; B as KPI,&lt;BR /&gt; C as Jan,&lt;BR /&gt; D as Feb,&lt;BR /&gt; E as Mar,&lt;BR /&gt; F as Apr,&lt;BR /&gt; G as May,&lt;BR /&gt; H as Jun,&lt;BR /&gt; I as Jul,&lt;BR /&gt; J as Aug,&lt;BR /&gt; K as Sep,&lt;BR /&gt; L as Oct,&lt;BR /&gt; M as Nov,&lt;BR /&gt; N as Dec&lt;BR /&gt; FROM&lt;BR /&gt; &lt;I&gt;&lt;BR /&gt; (ooxml, no labels, header is 1 lines, table is Sheet1);&lt;BR /&gt;&lt;BR /&gt; TEMP1:&lt;BR /&gt; LOAD&lt;BR /&gt; '$(Year)' as Year,&lt;BR /&gt; Country,&lt;BR /&gt; B as Month,&lt;BR /&gt; Month as Budget&lt;BR /&gt; RESIDENT TEMP&lt;BR /&gt; WHERE KPI = 'Budget';&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN(TEMP1)&lt;BR /&gt; LOAD&lt;BR /&gt; '$(Year)' as Year,&lt;BR /&gt; Country,&lt;BR /&gt; B as Month,&lt;BR /&gt; Month as NewCustomers&lt;BR /&gt; RESIDENT TEMP&lt;BR /&gt; WHERE KPI = 'New cust. (NC)';&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN(TEMP1)&lt;BR /&gt; LOAD&lt;BR /&gt; '$(Year)' as Year,&lt;BR /&gt; Country,&lt;BR /&gt; B as Month,&lt;BR /&gt; Month as GGR&lt;BR /&gt; RESIDENT TEMP&lt;BR /&gt; WHERE KPI = 'GGR';&lt;BR /&gt;&lt;BR /&gt; DROP TABLE TEMP;&lt;BR /&gt;&lt;BR /&gt; TEMP2:&lt;BR /&gt; NOCONCATENATE&lt;BR /&gt; LOAD&lt;BR /&gt; Year,&lt;BR /&gt; Month,&lt;BR /&gt; DATE(Makedate(Year,&lt;BR /&gt; if(Month = 'Jan',01,&lt;BR /&gt; if(Month = 'Feb',02,&lt;BR /&gt; if(Month = 'Mar',03,&lt;BR /&gt; if(Month = 'Apr',04,&lt;BR /&gt; if(Month = 'May',05,&lt;BR /&gt; if(Month = 'Jun',06,&lt;BR /&gt; if(Month = 'Jul',07,&lt;BR /&gt; if(Month = 'Aug',08,&lt;BR /&gt; if(Month = 'Sep',09,&lt;BR /&gt; if(Month = 'Oct',10,&lt;BR /&gt; if(Month = 'Nov',11,&lt;BR /&gt; if(Month = 'Dec',12))))))))))))),'YYYY-MM-DD') as Date,&lt;BR /&gt; if(Country = 'Belgium Fr' OR Country = 'Belgium Nl','Belgium',&lt;BR /&gt; if(Country = 'Czech Rep', 'Czech Rep.',&lt;BR /&gt; if(Country = 'Netherlands', 'Netherland',&lt;BR /&gt; if(Country = 'UK &amp;amp; Others', 'United Kingdom',&lt;BR /&gt; Country )))) as Country,&lt;BR /&gt; Budget as Budget,&lt;BR /&gt; NewCustomers as NewCustomers,&lt;BR /&gt; GGR as GGR&lt;BR /&gt; RESIDENT TEMP1&lt;BR /&gt; WHERE Country &amp;lt;&amp;gt; 'TOTAL'&lt;BR /&gt; ;&lt;BR /&gt; DROP TABLE TEMP1;&lt;BR /&gt;&lt;BR /&gt; TEMP3:&lt;BR /&gt; NOCONCATENATE&lt;BR /&gt; LOAD&lt;BR /&gt; Year,&lt;BR /&gt; Month,&lt;BR /&gt; Date,&lt;BR /&gt; Country,&lt;BR /&gt; SUM(Budget) as Budget,&lt;BR /&gt; SUM(NewCustomers) as NewCustomers,&lt;BR /&gt; SUM(GGR) as GGR&lt;BR /&gt; RESIDENT TEMP2&lt;BR /&gt; GROUP BY Year,&lt;BR /&gt; Month,&lt;BR /&gt; Date,&lt;BR /&gt; Country&lt;BR /&gt; ;&lt;BR /&gt; DROP TABLE TEMP2;&lt;BR /&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I think, we can compare our methods &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 09:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Sheet-with-Cross-Table/m-p/228071#M80132</guid>
      <dc:creator />
      <dc:date>2010-10-06T09:02:44Z</dc:date>
    </item>
  </channel>
</rss>

