<?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 to create a pivot-like table with ability to sort on final dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-pivot-like-table-with-ability-to-sort-on-final/m-p/158397#M33483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(I'm new to QlikView, and I apologize if there is already a solution to this posted somewhere, but I couldn't figure out how to ask the question.)&lt;/P&gt;&lt;P&gt;I have data that I would like to display in a pivot chart format, but I would like the user to be able to sort by the last dimension that is arrayed along the top row of the chart. For example, given this sales data:&lt;/P&gt;&lt;P&gt;Sales:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ID, Year, Total&lt;BR /&gt; 1, 2010, 12000&lt;BR /&gt; 1, 2009, 23500&lt;BR /&gt; 1, 2008, 17600&lt;BR /&gt; 2, 2010, 23200&lt;BR /&gt; 2, 2009, 12090&lt;BR /&gt; 2, 2008, 22300&lt;BR /&gt; 3, 2010, 33430&lt;BR /&gt; 3, 2009, 26000&lt;BR /&gt; 3, 2008, 19090&lt;BR /&gt; 4, 2010, 21000&lt;BR /&gt; 4, 2009, 15000&lt;BR /&gt; 4, 2008, 10000&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I would like to create a table like this, but with the ability to click on the year to sort by that year. Suggestions anyone?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="432"&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;COL style="width: 30pt;" width="40" /&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="height: 12.75pt; width: 74pt;" width="98"&gt;ID&lt;/TD&gt;&lt;TD class="xl64" style="width: 30pt;" width="40"&gt;Year&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; width: 74pt;" width="98"&gt;2010&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; width: 74pt;" width="98"&gt;2009&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; width: 74pt;" width="98"&gt;2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$12,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$23,500&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$17,600&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$23,200&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$12,090&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$22,300&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$33,430&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$26,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$19,090&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$21,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$15,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$10,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: I did find some forum posts about making an actual pivot chart "sortable", but adding something like a multi-box to control sorting isn't what I need. I would rather this be something like a straight table where the user can actually click on the column headers to sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jan 2011 00:23:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-07T00:23:14Z</dc:date>
    <item>
      <title>How to create a pivot-like table with ability to sort on final dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-pivot-like-table-with-ability-to-sort-on-final/m-p/158397#M33483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(I'm new to QlikView, and I apologize if there is already a solution to this posted somewhere, but I couldn't figure out how to ask the question.)&lt;/P&gt;&lt;P&gt;I have data that I would like to display in a pivot chart format, but I would like the user to be able to sort by the last dimension that is arrayed along the top row of the chart. For example, given this sales data:&lt;/P&gt;&lt;P&gt;Sales:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ID, Year, Total&lt;BR /&gt; 1, 2010, 12000&lt;BR /&gt; 1, 2009, 23500&lt;BR /&gt; 1, 2008, 17600&lt;BR /&gt; 2, 2010, 23200&lt;BR /&gt; 2, 2009, 12090&lt;BR /&gt; 2, 2008, 22300&lt;BR /&gt; 3, 2010, 33430&lt;BR /&gt; 3, 2009, 26000&lt;BR /&gt; 3, 2008, 19090&lt;BR /&gt; 4, 2010, 21000&lt;BR /&gt; 4, 2009, 15000&lt;BR /&gt; 4, 2008, 10000&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I would like to create a table like this, but with the ability to click on the year to sort by that year. Suggestions anyone?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="432"&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;COL style="width: 30pt;" width="40" /&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;COL style="width: 74pt;" width="98" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="height: 12.75pt; width: 74pt;" width="98"&gt;ID&lt;/TD&gt;&lt;TD class="xl64" style="width: 30pt;" width="40"&gt;Year&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; width: 74pt;" width="98"&gt;2010&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; width: 74pt;" width="98"&gt;2009&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; width: 74pt;" width="98"&gt;2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$12,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$23,500&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$17,600&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$23,200&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$12,090&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$22,300&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$33,430&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$26,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$19,090&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$21,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$15,000&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none; border-left: medium none;"&gt;$10,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: I did find some forum posts about making an actual pivot chart "sortable", but adding something like a multi-box to control sorting isn't what I need. I would rather this be something like a straight table where the user can actually click on the column headers to sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 00:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-pivot-like-table-with-ability-to-sort-on-final/m-p/158397#M33483</guid>
      <dc:creator />
      <dc:date>2011-01-07T00:23:14Z</dc:date>
    </item>
    <item>
      <title>How to create a pivot-like table with ability to sort on final dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-pivot-like-table-with-ability-to-sort-on-final/m-p/158398#M33484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;possibly not what you are looking for, but see attached QVW.&lt;/P&gt;&lt;P&gt;It is using a straight table as well. - was there another reason why you wanted to use a pivot?&lt;/P&gt;&lt;P&gt;This was done by creating an expression for each year - which isn't ideal if the data coming down can contain many years&lt;/P&gt;&lt;P&gt;You can see that it sorts though..&lt;/P&gt;&lt;BR class="Apple-interchange-newline" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 01:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-pivot-like-table-with-ability-to-sort-on-final/m-p/158398#M33484</guid>
      <dc:creator />
      <dc:date>2011-01-07T01:10:51Z</dc:date>
    </item>
    <item>
      <title>How to create a pivot-like table with ability to sort on final dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-pivot-like-table-with-ability-to-sort-on-final/m-p/158399#M33485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, no particular need to use an actual pivot. This solution is perfect. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 16:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-pivot-like-table-with-ability-to-sort-on-final/m-p/158399#M33485</guid>
      <dc:creator />
      <dc:date>2011-01-07T16:33:10Z</dc:date>
    </item>
  </channel>
</rss>

