<?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 Converting rows to column using Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-rows-to-column-using-Pivot-table/m-p/231025#M82804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a table which has two columns like NAMES and DEPARTMENT. Now, I want to show a table in which rows of DEPARTMENT should come as columns.&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt; NAMES, DEPARTMENT&lt;BR /&gt; A, 101&lt;BR /&gt; A, 102&lt;BR /&gt; A, 103&lt;BR /&gt; A, 104&lt;BR /&gt; B, 101&lt;BR /&gt; B, 103&lt;BR /&gt; V, 104&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;So the output table would be:&lt;/P&gt;&lt;P&gt;&lt;B&gt;NAMES 101 102 103 104&lt;/B&gt;&lt;BR /&gt;A Y Y Y Y&lt;BR /&gt;B Y N Y N&lt;BR /&gt;V N N N Y&lt;/P&gt;&lt;P&gt;The values Y and N are not there in the loaded table. I want to introduce them. I think Pivot table should be use to represent data in this manner, but I am not getting the way to do this. Please give me steps to do this. Any help would be greatly appreciated. It will be helpful for me if you provide any link which has such information.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2011 08:15:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-27T08:15:01Z</dc:date>
    <item>
      <title>Converting rows to column using Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-rows-to-column-using-Pivot-table/m-p/231025#M82804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a table which has two columns like NAMES and DEPARTMENT. Now, I want to show a table in which rows of DEPARTMENT should come as columns.&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt; NAMES, DEPARTMENT&lt;BR /&gt; A, 101&lt;BR /&gt; A, 102&lt;BR /&gt; A, 103&lt;BR /&gt; A, 104&lt;BR /&gt; B, 101&lt;BR /&gt; B, 103&lt;BR /&gt; V, 104&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;So the output table would be:&lt;/P&gt;&lt;P&gt;&lt;B&gt;NAMES 101 102 103 104&lt;/B&gt;&lt;BR /&gt;A Y Y Y Y&lt;BR /&gt;B Y N Y N&lt;BR /&gt;V N N N Y&lt;/P&gt;&lt;P&gt;The values Y and N are not there in the loaded table. I want to introduce them. I think Pivot table should be use to represent data in this manner, but I am not getting the way to do this. Please give me steps to do this. Any help would be greatly appreciated. It will be helpful for me if you provide any link which has such information.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 08:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-rows-to-column-using-Pivot-table/m-p/231025#M82804</guid>
      <dc:creator />
      <dc:date>2011-04-27T08:15:01Z</dc:date>
    </item>
    <item>
      <title>Converting rows to column using Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-rows-to-column-using-Pivot-table/m-p/231026#M82805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi QlikNiks,&lt;/P&gt;&lt;P&gt;I would start by adding a field to your input just for ease of use. Calling the column Indic for example with a value of "1". Your inline load will then look like this:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt; NAMES, DEPARTMENT, Indic&lt;BR /&gt; A, 101, 1&lt;BR /&gt; A, 102, 1&lt;BR /&gt; A, 103, 1&lt;BR /&gt; A, 104, 1&lt;BR /&gt; B, 101, 1&lt;BR /&gt; B, 103, 1&lt;BR /&gt; V, 104, 1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;This create a "fact" for your dimensions Name and Department. It wont eat up lots of space but will make your life easier.&lt;/P&gt;&lt;P&gt;Now your pivot table can be created as a chart, option pivot table. name and department are dimensions and the expression is as follows:&lt;/P&gt;&lt;P&gt;if(Indic&amp;gt;0,'Y','N')&lt;/P&gt;&lt;P&gt;attached is a qvw with thechart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 08:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-rows-to-column-using-Pivot-table/m-p/231026#M82805</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-04-27T08:31:04Z</dc:date>
    </item>
    <item>
      <title>Converting rows to column using Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-rows-to-column-using-Pivot-table/m-p/231027#M82806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PatAgen,&lt;/P&gt;&lt;P&gt;As I am learning QV on personal edition, I was unable to open QVW file which you have attached. Although, the solution given worked perfectly fine for me.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 08:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-rows-to-column-using-Pivot-table/m-p/231027#M82806</guid>
      <dc:creator />
      <dc:date>2011-04-27T08:58:11Z</dc:date>
    </item>
  </channel>
</rss>

