<?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 Pivot Table Issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752460#M535545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue displaying pivot table dimensions / expressions in the format I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 dimensions, Sector (always shown), Product (always shown), WeekCommencing (conditional show), Month (conditional show).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have 2 expressions - Vol and AOV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The top table is exactly how I'd like the data to be shown. Sector and Product on the left as my row labels. The date dimension (in this case WeekCommencing) at the top as my column labels. Then the 2 expressions Vol and AOV importantly displayed as rows rather than columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I switch my date dimension to Month instead of WeekCommencing, the expressions Vol and AOV move to be displayed as columns instead of rows (bottom table). I can drag the expressions to rows again but when I switch back to the WeekCommencing dimension it will have moved my WeekCommencing dimension to the row labels and the expressions as columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like is for the expressisons Vol and AOV to always be displayed as rows, and the date dimension (Month or WeekCommencing) always displayed as column labels. it sound simple but I can't get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 10:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-17T10:19:17Z</dc:date>
    <item>
      <title>Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752460#M535545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue displaying pivot table dimensions / expressions in the format I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 dimensions, Sector (always shown), Product (always shown), WeekCommencing (conditional show), Month (conditional show).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have 2 expressions - Vol and AOV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The top table is exactly how I'd like the data to be shown. Sector and Product on the left as my row labels. The date dimension (in this case WeekCommencing) at the top as my column labels. Then the 2 expressions Vol and AOV importantly displayed as rows rather than columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I switch my date dimension to Month instead of WeekCommencing, the expressions Vol and AOV move to be displayed as columns instead of rows (bottom table). I can drag the expressions to rows again but when I switch back to the WeekCommencing dimension it will have moved my WeekCommencing dimension to the row labels and the expressions as columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like is for the expressisons Vol and AOV to always be displayed as rows, and the date dimension (Month or WeekCommencing) always displayed as column labels. it sound simple but I can't get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752460#M535545</guid>
      <dc:creator />
      <dc:date>2014-12-17T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752461#M535546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can use a Cyclic group for the date dimensions instead of conditionally showing and hiding them. Or you could use an expression as dimension using a variable: =$(vMonthOrWeek) and use a button or input box to set the variable vMonthOrWeek to the value Month or the value WeekCommencing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752461#M535546</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-17T10:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752462#M535547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might try this as a last resort but I need to keep the conditional show buttons to maintain the theme I've applied across the rest of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I'd like to figure out why this is happening when using conditional shows (if it is the conditional shows that are causing it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752462#M535547</guid>
      <dc:creator />
      <dc:date>2014-12-17T11:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752463#M535548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Gysbert says, a cycle group should work for you, if there is a reason you can't use this and need the conditional dimension.&lt;/P&gt;&lt;P&gt;The other option would be a calculated dimension which is variable and adjusts depending on your condition but is always showing, rather than 2 separate fields each with their own show condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752463#M535548</guid>
      <dc:creator />
      <dc:date>2014-12-17T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752464#M535549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion re: calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used a calculated dimension - =if(v_ChartDateType=2,WeekCommencing,Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I don't think this will work I'm getting "Allocated Memory Exceeded"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752464#M535549</guid>
      <dc:creator />
      <dc:date>2014-12-17T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752465#M535550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vFieldname&lt;/P&gt;&lt;P&gt;'[' &amp;amp; if($(v_ChartDateType)=2,'WeekCommencing','Month') &amp;amp; ']'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your dimension use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(=$(vFieldname)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Should work fine for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: added example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752465#M535550</guid>
      <dc:creator />
      <dc:date>2014-12-17T11:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752466#M535551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just out of interest - why is there a performance benefit when using a variable rather than typing out that expression as a calculated dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 12:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752466#M535551</guid>
      <dc:creator />
      <dc:date>2014-12-17T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752467#M535552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome, glad to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There isn't, you were getting a problem as the expression you were using wasn't $ expanding around the variable.&lt;/P&gt;&lt;P&gt;As to why a variable or not, I like to use the variable as it looks tidier and when I do things like this, the variables are created dynamically within the script, so changes are easier to make without missing a chart etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 12:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Issues/m-p/752467#M535552</guid>
      <dc:creator />
      <dc:date>2014-12-17T12:32:49Z</dc:date>
    </item>
  </channel>
</rss>

