<?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 How create Pivot table for this sample file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189696#M588252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I basically added in this their are columns like this i want report like this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week ending repair case Week ending avg subs&lt;/P&gt;&lt;P&gt;Market 19-feb 26-feb 5-mar 12-mar 19-mar 19-feb 26-feb 5-mar 12-mar 19-mar&lt;/P&gt;&lt;P&gt;A 12 7 10 8 10 182 185 192 201 204&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 11:13:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-31T11:13:04Z</dc:date>
    <item>
      <title>How create Pivot table for this sample file</title>
      <link>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189695#M588251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create pivot table based on below sample file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please explain with example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 10:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189695#M588251</guid>
      <dc:creator />
      <dc:date>2011-03-30T10:43:43Z</dc:date>
    </item>
    <item>
      <title>How create Pivot table for this sample file</title>
      <link>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189696#M588252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I basically added in this their are columns like this i want report like this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week ending repair case Week ending avg subs&lt;/P&gt;&lt;P&gt;Market 19-feb 26-feb 5-mar 12-mar 19-mar 19-feb 26-feb 5-mar 12-mar 19-mar&lt;/P&gt;&lt;P&gt;A 12 7 10 8 10 182 185 192 201 204&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189696#M588252</guid>
      <dc:creator />
      <dc:date>2011-03-31T11:13:04Z</dc:date>
    </item>
    <item>
      <title>How create Pivot table for this sample file</title>
      <link>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189697#M588253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;BR /&gt;&lt;BR /&gt;Looks like you need to split your crosstable function, something along the lines of (also use the Header offset in the Data load UI to get rid of the first row)...&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD&lt;BR /&gt;B&lt;BR /&gt;From PivotTable.xls;&lt;BR /&gt;&lt;BR /&gt;RepairCase_Temp:&lt;BR /&gt;crosstable(WeekendRepairCase, Data, 1)&lt;BR /&gt;Load&lt;BR /&gt;Market,&lt;BR /&gt;@2 as 19-Feb,&lt;BR /&gt;@3 as 26-Feb,&lt;BR /&gt;@4 as 03-Mar,&lt;BR /&gt;@5 as 12-Mar,&lt;BR /&gt;@6 as 19-Mar&lt;BR /&gt;From PivotTable.xls;&lt;BR /&gt;&lt;BR /&gt;left join(Table1)&lt;BR /&gt;LOAD&lt;BR /&gt;Resident RepairCase_Temp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;AvgSubs_Temp:&lt;BR /&gt;crosstable(WeekendAvgSubs, Data, 1)&lt;BR /&gt;Load&lt;BR /&gt;Market,&lt;BR /&gt;@2 as 19-Feb,&lt;BR /&gt;@3 as 26-Feb,&lt;BR /&gt;@4 as 03-Mar,&lt;BR /&gt;@5 as 12-Mar,&lt;BR /&gt;@6 as 19-Mar&lt;BR /&gt;From PivotTable.xls;&lt;BR /&gt;&lt;BR /&gt;left join(Table1)&lt;BR /&gt;LOAD&lt;BR /&gt;Resident AvgSubs_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is your columns names are the same, that's why you need to use the @ to reference the column number. You can use the crosstable function multiple times, with a left join. All you need to do is load straight columns in one load statment, use crosstable function on one part of the source file, left join to the previous table, use crosstable on next part, left join, so on and so forth.&lt;/P&gt;&lt;P&gt;If you keep adding columns as the months go by, you will need a more "intelligent" (automated) piece of script. Can't help you on that, it would take more time than I want to spend answer this thread.&lt;/P&gt;&lt;P&gt;Parameters for crosstable function are as follows:&lt;/P&gt;&lt;P&gt;crosstable(X, Y, Z), where X is the fieldname you want to give to the column headers you are unpivoting, Y is the fieldname you want to give of the data part of the pivoted part of the table, and Z is the number of qualified fields (i.e. the number of columns you are loading in that statement which are already in column format, i.e. typically the row header already contains the fieldname, not a field value).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189697#M588253</guid>
      <dc:creator />
      <dc:date>2011-03-31T11:35:30Z</dc:date>
    </item>
    <item>
      <title>How create Pivot table for this sample file</title>
      <link>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189698#M588254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, slight typo, script must read:&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD&lt;BR /&gt;Market&lt;BR /&gt;From PivotTable.xls;&lt;BR /&gt;&lt;BR /&gt;RepairCase_Temp:&lt;BR /&gt;crosstable(WeekendRepairCase, Data, 1)&lt;BR /&gt;Load&lt;BR /&gt;Market,&lt;BR /&gt;@2 as 19-Feb,&lt;BR /&gt;@3 as 26-Feb,&lt;BR /&gt;@4 as 03-Mar,&lt;BR /&gt;@5 as 12-Mar,&lt;BR /&gt;@6 as 19-Mar&lt;BR /&gt;From PivotTable.xls;&lt;BR /&gt;&lt;BR /&gt;left join(Table1)&lt;BR /&gt;LOAD&lt;BR /&gt;Resident RepairCase_Temp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;AvgSubs_Temp:&lt;BR /&gt;crosstable(WeekendAvgSubs, Data, 1)&lt;BR /&gt;Load&lt;BR /&gt;Market,&lt;BR /&gt;@2 as 19-Feb,&lt;BR /&gt;@3 as 26-Feb,&lt;BR /&gt;@4 as 03-Mar,&lt;BR /&gt;@5 as 12-Mar,&lt;BR /&gt;@6 as 19-Mar&lt;BR /&gt;From PivotTable.xls;&lt;BR /&gt;&lt;BR /&gt;left join(Table1)&lt;BR /&gt;LOAD&lt;BR /&gt;Resident AvgSubs_Temp;&lt;/P&gt;&lt;P&gt;If you load the pivot table from a data source, you can use the UI (with associated colour coding for building the crosstable function) via the CrossTable... button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189698#M588254</guid>
      <dc:creator />
      <dc:date>2011-03-31T11:38:36Z</dc:date>
    </item>
    <item>
      <title>How create Pivot table for this sample file</title>
      <link>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189699#M588255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week ending repair case Week ending avg subs&lt;/P&gt;&lt;P&gt;Market 19-feb 26-feb 5-mar 12-mar 19-mar 19-feb 26-feb 5-mar 12-mar 19-mar&lt;/P&gt;&lt;P&gt;A 12 7 10 8 10 182 185 192 201 204&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Good explain but data is come from this columns like:-&lt;/P&gt;&lt;P&gt;Market, Created date, Case Number, Customer No&lt;/P&gt;&lt;P&gt;A 1/2/2011 6:22 00228402 6000036134&lt;/P&gt;&lt;P&gt;B 1/2/2011 6:48 00228407 6000037219&lt;/P&gt;&lt;P&gt;C 1/2/2011 7:36 00228413 6000032951&lt;/P&gt;&lt;P&gt;D 1/2/2011 7:43 00228416 6000030740&lt;/P&gt;&lt;P&gt;E 1/2/2011 7:54 00228422 6000037378&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show "Week ending repair case" repair cases "Week ending avg subs"&lt;/P&gt;&lt;P&gt;Please explain this example in *.QVW file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-create-Pivot-table-for-this-sample-file/m-p/189699#M588255</guid>
      <dc:creator />
      <dc:date>2011-03-31T12:39:51Z</dc:date>
    </item>
  </channel>
</rss>

