<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PivotTable Markup Language</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Patrick O'Beirne</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-39478</link>
		<dc:creator>Patrick O'Beirne</dc:creator>
		<pubDate>Sat, 23 May 2009 16:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-39478</guid>
		<description>&lt;p&gt;It depends on the Pivottable.version&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://blogs.msdn.com/excel/archive/2006/08/30/730796.aspx&quot; rel=&quot;nofollow&quot;&gt;http://blogs.msdn.com/excel/archive/2006/08/30/730796.aspx&lt;/a&gt;&lt;br&gt;
PivotTable Versioning&lt;br&gt;
In Excel 12, the PivotTable version is associated with Compatibility Mode.&lt;br&gt;
 If your current workbook is in compatibility mode, new PivotTables created in that workbook&lt;br&gt;
 will be version 10 PivotTables.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.experts-exchange.com/Microsoft/Applications/Q_24185001.html&quot; rel=&quot;nofollow&quot;&gt;http://www.experts-exchange.com/Microsoft/Applications/Q_24185001.html&lt;/a&gt;&lt;br&gt;
You can test for a Page field&#039;s PivotItems with a xlPivotTableVersion12 Pivot Table but not in a xlPivotTableVersion10 Pivot Table.&lt;/p&gt;
&lt;p&gt;IOW&lt;br&gt;
       .ShowAllItems = True&lt;br&gt;
does NOT work, even in Excel 2007, if the pivottable is in 2003 compatibility mode&lt;/p&gt;
&lt;p&gt;Neither does this.&lt;br&gt;
Select one item in a list from the UI and then run this&lt;br&gt;
      For i = 1 To .PivotItems.Count&lt;br&gt;
         .PivotItems(i).Visible = True&lt;br&gt;
         Debug.Print i, .PivotItems(i).Name, .PivotItems(i).Visible&lt;br&gt;
      Next&lt;/p&gt;
&lt;p&gt;You can set&lt;br&gt;
...pagefields(x).currentpage=&quot;(All)&quot;&lt;br&gt;
which works when English is the locale&lt;/p&gt;
&lt;p&gt;The only way I found to work is to hide the pagefield and restore it, which resets it to (All)&lt;br&gt;
I hope that works for (Toutes) or (Alles) etc&lt;/p&gt;
&lt;p&gt;      .Orientation = xlHidden&lt;br&gt;
      .Orientation = xlPageField&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>It depends on the Pivottable.version</p>
<p><a href="http://blogs.msdn.com/excel/archive/2006/08/30/730796.aspx" rel="nofollow">http://blogs.msdn.com/excel/archive/2006/08/30/730796.aspx</a><br />
PivotTable Versioning<br />
In Excel 12, the PivotTable version is associated with Compatibility Mode.<br />
 If your current workbook is in compatibility mode, new PivotTables created in that workbook<br />
 will be version 10 PivotTables.</p>
<p><a href="http://www.experts-exchange.com/Microsoft/Applications/Q_24185001.html" rel="nofollow">http://www.experts-exchange.com/Microsoft/Applications/Q_24185001.html</a><br />
You can test for a Page field&#8217;s PivotItems with a xlPivotTableVersion12 Pivot Table but not in a xlPivotTableVersion10 Pivot Table.</p>
<p>IOW<br />
       .ShowAllItems = True<br />
does NOT work, even in Excel 2007, if the pivottable is in 2003 compatibility mode</p>
<p>Neither does this.<br />
Select one item in a list from the UI and then run this<br />
      For i = 1 To .PivotItems.Count<br />
         .PivotItems(i).Visible = True<br />
         Debug.Print i, .PivotItems(i).Name, .PivotItems(i).Visible<br />
      Next</p>
<p>You can set<br />
&#8230;pagefields(x).currentpage=&#8221;(All)&#8221;<br />
which works when English is the locale</p>
<p>The only way I found to work is to hide the pagefield and restore it, which resets it to (All)<br />
I hope that works for (Toutes) or (Alles) etc</p>
<p>      .Orientation = xlHidden<br />
      .Orientation = xlPageField</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryumike_55</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-35843</link>
		<dc:creator>Ryumike_55</dc:creator>
		<pubDate>Wed, 29 Oct 2008 18:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-35843</guid>
		<description>&lt;p&gt;I came by this thread when trying to figure out how to make VBA show all pivotitems EXCEPT blanks. This didn&#039;t fix it for me, but gave me a clue. The way to do THAT, I finally figured out is&lt;/p&gt;
&lt;p&gt;Public Function Pivot_AllPivotItems_NoBlanks()&lt;/p&gt;
&lt;p&gt;With ActiveSheet.PivotTables(&quot;PivotTable7?).PivotFields(&quot;Device Type&quot;)&lt;br&gt;
        For x = 1 To .PivotItems.Count&lt;br&gt;
            .PivotItems(x).Visible = True&lt;br&gt;
        Next&lt;br&gt;
        .PivotItems(&quot;(blank)&quot;).Visible = False&lt;br&gt;
End With&lt;/p&gt;
&lt;p&gt;End Function&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I came by this thread when trying to figure out how to make VBA show all pivotitems EXCEPT blanks. This didn&#8217;t fix it for me, but gave me a clue. The way to do THAT, I finally figured out is</p>
<p>Public Function Pivot_AllPivotItems_NoBlanks()</p>
<p>With ActiveSheet.PivotTables(&#8220;PivotTable7?).PivotFields(&#8220;Device Type&#8221;)<br />
        For x = 1 To .PivotItems.Count<br />
            .PivotItems(x).Visible = True<br />
        Next<br />
        .PivotItems(&#8220;(blank)&#8221;).Visible = False<br />
End With</p>
<p>End Function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-35842</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 29 Oct 2008 14:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-35842</guid>
		<description>&lt;p&gt;Vladamar:  There should be a &quot;not equal&quot; sign between pvtItem.name and &quot;Federal&quot;.  The HTML parser assumes the less than sign is an html tag so it&#039;s not shown.&lt;/p&gt;
&lt;p&gt;If pftItem.name &lt;&gt; &quot;Federal Unemployment&quot; Then&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Vladamar:  There should be a &#8220;not equal&#8221; sign between pvtItem.name and &#8220;Federal&#8221;.  The HTML parser assumes the less than sign is an html tag so it&#8217;s not shown.</p>
<p>If pftItem.name &lt;&gt; &#8220;Federal Unemployment&#8221; Then</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladamar Handarz</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-35836</link>
		<dc:creator>Vladamar Handarz</dc:creator>
		<pubDate>Tue, 28 Oct 2008 23:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-35836</guid>
		<description>&lt;p&gt;This totally didn&#039;t work... this &quot;Joice Fung&quot; (as if that&#039;s her real name) is wrong.  Any smart people out there have a solution??&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This totally didn&#8217;t work&#8230; this &#8220;Joice Fung&#8221; (as if that&#8217;s her real name) is wrong.  Any smart people out there have a solution??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joice fung</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-32758</link>
		<dc:creator>Joice fung</dc:creator>
		<pubDate>Mon, 09 Jun 2008 18:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-32758</guid>
		<description>&lt;p&gt;If the above doesn&#039;t work, you can try this:&lt;/p&gt;
&lt;p&gt;set pvtTable = activesheet.pivottables(&quot;PivotTable1?)&lt;/p&gt;
&lt;p&gt;for each pvtItem in pvtTable.pivotfields(&quot;Payroll Item&quot;).PivotItems&lt;br&gt;
   If pvtItem.name  &quot;Federal Unemployment&quot; then&lt;br&gt;
      pvtItem.visible = false&lt;br&gt;
   end if&lt;br&gt;
next pvtItem&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If the above doesn&#8217;t work, you can try this:</p>
<p>set pvtTable = activesheet.pivottables(&#8220;PivotTable1?)</p>
<p>for each pvtItem in pvtTable.pivotfields(&#8220;Payroll Item&#8221;).PivotItems<br />
   If pvtItem.name  &#8220;Federal Unemployment&#8221; then<br />
      pvtItem.visible = false<br />
   end if<br />
next pvtItem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joice fung</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-32757</link>
		<dc:creator>Joice fung</dc:creator>
		<pubDate>Mon, 09 Jun 2008 18:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-32757</guid>
		<description>&lt;p&gt;You can do:&lt;/p&gt;
&lt;p&gt;ActiveSheet.PivotTables(&quot;PivotTable1?).PivotFields(&quot;Payroll Item&quot;).ShowAllItems = False&lt;br&gt;
ActiveSheet.PivotTables(&quot;PivotTable1?).PivotFields(&quot;Payroll Item&quot;).PivotItems(&quot;Federal Unemployment&quot;).Visible = True&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can do:</p>
<p>ActiveSheet.PivotTables(&#8220;PivotTable1?).PivotFields(&#8220;Payroll Item&#8221;).ShowAllItems = False<br />
ActiveSheet.PivotTables(&#8220;PivotTable1?).PivotFields(&#8220;Payroll Item&#8221;).PivotItems(&#8220;Federal Unemployment&#8221;).Visible = True</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ola</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-32686</link>
		<dc:creator>Ola</dc:creator>
		<pubDate>Wed, 04 Jun 2008 23:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-32686</guid>
		<description>&lt;p&gt;A few links:&lt;br&gt;
&lt;a href=&quot;http://www.mydatabasesupport.com/forums/olap/162003-how-use-mdx-query-excel.html&quot; rel=&quot;nofollow&quot;&gt;http://www.mydatabasesupport.com/forums/olap/162003-how-use-mdx-query-excel.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://sqlblog.com/blogs/marco_russo/archive/2007/01/18/display-the-mdx-query-of-an-excel-2007-pivottable.aspx&quot; rel=&quot;nofollow&quot;&gt;http://sqlblog.com/blogs/marco_russo/archive/2007/01/18/display-the-mdx-query-of-an-excel-2007-pivottable.aspx&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.manageability.org/blog/stuff/open-source-java-business-intelligence&quot; rel=&quot;nofollow&quot;&gt;http://www.manageability.org/blog/stuff/open-source-java-business-intelligence&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>A few links:<br />
<a href="http://www.mydatabasesupport.com/forums/olap/162003-how-use-mdx-query-excel.html" rel="nofollow">http://www.mydatabasesupport.com/forums/olap/162003-how-use-mdx-query-excel.html</a><br />
<a href="http://sqlblog.com/blogs/marco_russo/archive/2007/01/18/display-the-mdx-query-of-an-excel-2007-pivottable.aspx" rel="nofollow">http://sqlblog.com/blogs/marco_russo/archive/2007/01/18/display-the-mdx-query-of-an-excel-2007-pivottable.aspx</a><br />
<a href="http://www.manageability.org/blog/stuff/open-source-java-business-intelligence" rel="nofollow">http://www.manageability.org/blog/stuff/open-source-java-business-intelligence</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Murphy</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-32505</link>
		<dc:creator>Simon Murphy</dc:creator>
		<pubDate>Thu, 22 May 2008 11:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-32505</guid>
		<description>&lt;p&gt;Rob good point&lt;br&gt;
MDX (basically SQL for OLAP) probably contains most of what you need:&lt;/p&gt;
&lt;p&gt;SELECT (a, b, c) ON COLUMNS, NON EMPTY (d) ON ROWS&lt;br&gt;
FROM Some cube or other data source say a range&lt;br&gt;
WHERE Some page field&lt;/p&gt;
&lt;p&gt;(where a, b etc are field names)&lt;/p&gt;
&lt;p&gt;MDX is in Analysis services and recent versions of Essbase, and lots of other tools so is maybe near enough a &#039;standard&#039;?&lt;br&gt;
If ADOMD worked against Excel ranges (does it??) that might give you what you need.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rob good point<br />
MDX (basically SQL for OLAP) probably contains most of what you need:</p>
<p>SELECT (a, b, c) ON COLUMNS, NON EMPTY (d) ON ROWS<br />
FROM Some cube or other data source say a range<br />
WHERE Some page field</p>
<p>(where a, b etc are field names)</p>
<p>MDX is in Analysis services and recent versions of Essbase, and lots of other tools so is maybe near enough a &#8216;standard&#8217;?<br />
If ADOMD worked against Excel ranges (does it??) that might give you what you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-32503</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Thu, 22 May 2008 08:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-32503</guid>
		<description>&lt;p&gt;There is a language called MDX (&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms145506.aspx&quot; rel=&quot;nofollow&quot;&gt;Multidimensional Expressions&lt;/a&gt;)&lt;br&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Multidimensional_Expressions&quot; rel=&quot;nofollow&quot;&gt;Wikipedia on MDX&lt;/a&gt;&lt;br&gt;
It&#039;s a property of the PivotTable class, but it errors if accessed for non OLAP types.&lt;/p&gt;
&lt;p&gt;A quick Internet search reveals some efforts to translate between Pivottables and MDX.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>There is a language called MDX (<a href="http://msdn.microsoft.com/en-us/library/ms145506.aspx" rel="nofollow">Multidimensional Expressions</a>)<br />
<a href="http://en.wikipedia.org/wiki/Multidimensional_Expressions" rel="nofollow">Wikipedia on MDX</a><br />
It&#8217;s a property of the PivotTable class, but it errors if accessed for non OLAP types.</p>
<p>A quick Internet search reveals some efforts to translate between Pivottables and MDX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/21/pivottable-markup-language/#comment-32501</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Thu, 22 May 2008 01:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1846#comment-32501</guid>
		<description>&lt;p&gt;Some would say you&#039;ve gone over to the dark side, Dick.  Put in the correct combinations of &lt; , &gt; , and / &gt; and you would have the XML statements required to (re)create the PT! {gdr}&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Some would say you&#8217;ve gone over to the dark side, Dick.  Put in the correct combinations of &lt; , &gt; , and / &gt; and you would have the XML statements required to (re)create the PT! {gdr}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

