<?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: Fun with pivot tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fun-with-pivot-tables/m-p/1179880#M382519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please hold off on&amp;nbsp; solutions here.&amp;nbsp; I realized I have too much details and too many questions.&amp;nbsp; I'll break it up into multiple small easy questions and post the final result here for anyone curious.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2016 14:17:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-26T14:17:19Z</dc:date>
    <item>
      <title>Fun with pivot tables</title>
      <link>https://community.qlik.com/t5/QlikView/Fun-with-pivot-tables/m-p/1179879#M382518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I've got a very specific formatting requirement for my chart.&amp;nbsp; I have chosen Pivot table as I believe it gets me closest.&amp;nbsp; Also this is for consumption in both qlikview and nprinting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full disclosure:&amp;nbsp; I do have 1 solution for this I'll describe below but it is a bit brute force and requires me to do do all of the work in the database and would double my data since I now have 2 charts that are slightly different in important ways (data wise.&amp;nbsp; formatting is identical)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Chart sample.PNG" class="jive-image image-1" height="260" src="/legacyfs/online/138455_Chart sample.PNG" style="height: 260px; width: 212.832px;" width="213" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let's discuss requirements.&amp;nbsp; &lt;/P&gt;&lt;P&gt;1. Header row with a color border below both dimensions and expressions - currently cheating on this one and I'm solving this in a report by adding the boarder there.&amp;nbsp; In qlik I don't think we have a boarder.&amp;nbsp; We can get away with a little more flexibility in qlik at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; I need a sub total row below and a group row above - current solution is I add an extra subgroup row called "Fake" in the database results.&amp;nbsp; and I have a super small dimension that is white on white to get the subtotal.&amp;nbsp; It works.&amp;nbsp; My only issue is in my new second chart group 2 has no data so I get the "Group 2" row but no subgroup rows and no subtotal row.&amp;nbsp; I want to Hide the "Group 2 row" in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Alternating colors but group rows, subtotal rows and total rows are all white.&amp;nbsp; I'm so close on this one.&amp;nbsp; Current solution is to return a color for the row from the database.&amp;nbsp; But in chart 2 subgroup 3 doesn't exist.&amp;nbsp; this means 2 yellow rows would be next to each other.&amp;nbsp; If I use rank on the dimension value to determine the even and odd rows almost everything works great.&amp;nbsp; Rank 1 and 0 are white.&amp;nbsp; Other rows are white for even and yellow for odd.&amp;nbsp;&amp;nbsp;&amp;nbsp; Rank only seems to look at the first character of the string for ranking purposes so I get some odd results.&amp;nbsp; Second I have had problems with thinks like rank in the dimension coloring.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what chart 2 would look like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" height="146" src="https://community.qlik.com/legacyfs/online/138456_2.PNG" style="height: 145.985px; width: 250px;" width="250" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colors, Names, and numbers are fake for dramatic effect.&amp;nbsp; Making Group 2 not show up looks like just a aggr so that should be relatively simple.&amp;nbsp; Getting the alternating color for only the subgroup rows is proving to be a giant pain.&amp;nbsp; I would rather not return another dataset from the db just to have the formatting for this chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; just noticed on my second chart I'm missing a bar above the total row.&amp;nbsp; That is a mistake not a requirement.&amp;nbsp; the first chart is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 11:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fun-with-pivot-tables/m-p/1179879#M382518</guid>
      <dc:creator />
      <dc:date>2016-09-23T11:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with pivot tables</title>
      <link>https://community.qlik.com/t5/QlikView/Fun-with-pivot-tables/m-p/1179880#M382519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please hold off on&amp;nbsp; solutions here.&amp;nbsp; I realized I have too much details and too many questions.&amp;nbsp; I'll break it up into multiple small easy questions and post the final result here for anyone curious.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 14:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fun-with-pivot-tables/m-p/1179880#M382519</guid>
      <dc:creator />
      <dc:date>2016-09-26T14:17:19Z</dc:date>
    </item>
  </channel>
</rss>

