<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="Joomla! 1.5 - Open Source Content Management" --><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
	<channel>
		<title>PowerPivot Posts</title>
		<description>PowerPivot (Gemini) and DAX papers, posts, tips, FAQs, webcasts, videos, samples</description>
		<link>http://powerpivot-info.com/post</link>
		<lastBuildDate>Sun, 27 May 2012 22:26:14 +0000</lastBuildDate>
		<generator>Joomla! 1.5 - Open Source Content Management</generator>
		<language>en-gb</language>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PowerPivotPosts" /><feedburner:info uri="powerpivotposts" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
			<title>Percentile Measures in DAX - Errata</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/FG5_OFS8yyM/1009-percentile-measures-in-dax---errata</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1009-percentile-measures-in-dax---errata</guid>
			<description>&lt;p&gt;In September of last year, I posted two articles on creating percentile measures in DAX.  See Creating Accurate Percentile Measures in DAX - Part I and Creating Accurate Percentile Measures in DAX - Part II. About three months after I posted Part I, Richard Mintz left a comment indicating that he was having trouble getting correct results when his data sets had a wide range of values and many duplicates. I haven't been receiving notifications when comments are left, so it's purely by chance that I saw Richard's comment recently.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/FG5_OFS8yyM" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Colin Banfield)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Thu, 24 May 2012 19:26:43 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1009-percentile-measures-in-dax---errata</feedburner:origLink></item>
		<item>
			<title>"Drill Across" in PowerPivot - Live Demo</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/bHjLB-RsxLU/1008--drill-across--in-powerpivot---live-demo</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1008--drill-across--in-powerpivot---live-demo</guid>
			<description>&lt;p&gt;The retailer overlap application is one that I've covered before, in my post announcing our live PowerPivot demo site, but I've recently spent some time improving it based on customer feedback and requests. &lt;/p&gt;&lt;p&gt;  Specifically, our retail customers have asked the following:  "It's great that I can see that Retailer X competes with me for our senior citizen customers much more aggressively than we thought, but can I get a list of the actual stores that overlap, with addresses?" &lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/bHjLB-RsxLU" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Rob Collie)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Thu, 24 May 2012 19:26:39 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1008--drill-across--in-powerpivot---live-demo</feedburner:origLink></item>
		<item>
			<title>Upgrade PowerPivot SharePoint from SQL 2012 RC0 to RTM</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/UV444t1XsDI/1007-upgrade-powerpivot-sharepoint-from-sql-2012-rc0-to</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1007-upgrade-powerpivot-sharepoint-from-sql-2012-rc0-to</guid>
			<description>&lt;p&gt;So last week I was doing a presentation on Self-Service BI with SQL Server 2012 at the TechFuse MN technical conference and I realized that my demo virtual machine was still running SQL Server 2012 RC0.  I was thinking that I shouldn't do my presentation and demos using RC0, so why not upgrade.  Probably not the best idea to do this just a few days out from a presentation, but I had my fingers cross and just went for it. &lt;/p&gt;&lt;p&gt;  I found some guidance from a thread in the forums by Jen Underwood here Upgrade in place RC0 to RTM and decided to go for it.  I did the in-place upgrade and my SharePoint virtual machine with SQL 2012 was still functioning after I completed all of the steps.  Then I moved on to testing my integrated SSRS setup and realized that the Power View reports were not working and neither were my data sources.  The quick fix for that was to go into Central Administration and go into the properties of the Reporting Services application and click OK.  That completed the upgrade process for my shared service and my Power View reports functioned properly after that. &lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/UV444t1XsDI" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Dan English)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Thu, 24 May 2012 19:26:35 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1007-upgrade-powerpivot-sharepoint-from-sql-2012-rc0-to</feedburner:origLink></item>
		<item>
			<title>Consolidation and Intercompany Elimination made easy using PowerPivot and DAX</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/klTTUAq4dbM/1006-consolidation-and-intercompany-elimination-made-ea</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1006-consolidation-and-intercompany-elimination-made-ea</guid>
			<description>&lt;p&gt;In my past years as a consultant for Microsoft BI I had to deal with financial models quite a lot. They are usually small in size but very complex in terms of calculations like currency conversion, margin-calculations, benchmarks and so on. Another topic I came across very frequently was consolidation and intercompany eliminations. Recently I had to deal with this topic again and thought of how this could be solved in PowerPivot/DAX.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/klTTUAq4dbM" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Gerhard Brueckl)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Mon, 21 May 2012 21:28:02 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1006-consolidation-and-intercompany-elimination-made-ea</feedburner:origLink></item>
		<item>
			<title>SCOPING at different granularities (Part III)</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/-cJob2U3eqE/1005-scoping-at-different-granularities--part-iii-</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1005-scoping-at-different-granularities--part-iii-</guid>
			<description>&lt;p&gt;In the last two blog entries on this topic (available here and here), we got a bit closer to reproducing - in DAX - the same output one would normally achieve with the MDX scope statement. &lt;/p&gt;&lt;p&gt;  In this new entry, we perfect the formula a bit more by ensuring filter context propagates to the higher levels of granularity we are affecting. &lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/-cJob2U3eqE" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Javier Guillen)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Mon, 21 May 2012 21:27:58 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1005-scoping-at-different-granularities--part-iii-</feedburner:origLink></item>
		<item>
			<title>Excel 5-Calendar Date Table</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/cdkwkYUXL-I/1004-excel-5-calendar-date-table</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1004-excel-5-calendar-date-table</guid>
			<description>&lt;p&gt;For some time, I have been looking around for a fairly complete date table in Excel for use with PowerPivot. If you are working with data derived from a data warehouse, a date table is perhaps the most common dimension table that exists in the warehouse. However, not every scenario involves working with a data warehouse directly, and I simply wanted a "portable" date table. I found very little online, the best perhaps being this Excel table offered by the Kimball group (the table has been expanded since I originally downloaded it). I could have modified the Kimball table for my particular needs, but I decided to create one from scratch.  Late last year, Rob posted an article titled the Ultimate Date Table, which is available from the Azure Marketplace. I considered using this table instead of the one I was building in Excel, but the "Ultimate Table" lacks fiscal periods. Much of the analysis work I do includes fiscal periods.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/cdkwkYUXL-I" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Colin Banfield)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Mon, 21 May 2012 21:27:56 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1004-excel-5-calendar-date-table</feedburner:origLink></item>
		<item>
			<title>Filters aren't applied to related tables in PowerPivot unless a measure is added to the PowerPivot Workbook</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/rYviWYnrRyc/1003-filters-aren--t-applied-to-related-tables-in-power</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1003-filters-aren--t-applied-to-related-tables-in-power</guid>
			<description>&lt;p&gt;A colleague, with whom I work on a regular basis, recently pointed out a somewhat unexpected feature of PowerPivot PivotTables. What my colleague was seeing was that when creating a PowerPivot PivotTable, placing a column from one of the Dimension tables on rows then adding a column from a related (Parent) table in one of the slicers and selecting a specific member from the slicer the action did not apply a filter to the related dimension that had been placed on rows. When a measure was added to the PivotTable, however, the dimension that was on rows the filter was magically applied. This behavior is relatively easy to reproduce using a few tables from the Adventure Works relational database. So for those who want a reason to just play with PowerPivot (take your pick of the version), here are some relatively simple steps to reproduce the behavior.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/rYviWYnrRyc" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (John Desch)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Wed, 16 May 2012 22:55:14 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1003-filters-aren--t-applied-to-related-tables-in-power</feedburner:origLink></item>
		<item>
			<title>Controlling the Position of Subtotals in DAX with GenerateAll()</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/twkQwcKOQKg/1002-controlling-the-position-of-subtotals-in-dax-with-generateall</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1002-controlling-the-position-of-subtotals-in-dax-with-generateall</guid>
			<description>&lt;p&gt;&lt;strong&gt;Reposted from &lt;a href="http://cwebbbi.wordpress.com/2012/05/15/controlling-the-position-of-subtotals-in-dax-with-generateall/" target="_blank"&gt;Chris Webb's blog&lt;/a&gt; with the author's permission. &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Today I’m teaching the &lt;a href="http://www.sqlbi.com/training"&gt;SSAS 2012 Tabular workshop&lt;/a&gt; with &lt;a href="http://sqlblog.com/blogs/alberto_ferrari/"&gt;Alberto Ferrari&lt;/a&gt; in Belgium, and an interesting question came up during my session on DAX queries to do with subtotals that I couldn’t answer immediately. However, I found a solution fairly quickly afterwards and so I thought it was worth blogging about – especially since I think it’s a better solution than the one that Alberto knew about already!&lt;/p&gt;
&lt;p&gt;Consider this DAX query that runs on a table sourced from the DimDate table in Adventure Works:&lt;/p&gt;
&lt;p&gt;evaluate &lt;br /&gt;summarize( &lt;br /&gt;DimDate &lt;br /&gt;, DimDate[CalendarYear] &lt;br /&gt;, rollup(DimDate[DayNumberOfWeek]) &lt;br /&gt;, "Number of Days" &lt;br /&gt;, countrows(DimDate) &lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;It returns the number of Days in the table by calendar year and day number of week – it’s very similar to a basic GROUP BY query in SQL. I blogged about this use of Summarize() and Rollup() last year &lt;a href="http://cwebbbi.wordpress.com/2011/07/15/dax-queries-part-2/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The problem with this query is that all of the year subtotals (which appear as rows with blank values returned in the day number of week column) created by this query appear at the end of the result set, as you can see here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://cwebbbi.files.wordpress.com/2012/05/image4.png"&gt;&lt;img src="http://cwebbbi.files.wordpress.com/2012/05/image_thumb4.png?w=371&amp;amp;h=360" border="0" alt="image" title="image" width="371" height="360" style="background-image: none; margin: 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This isn’t very clear though. How can we put each year’s subtotal at the end of the distinct list of day numbers instead? Alberto’s solution (and I think this is the solution we’ve got in our new &lt;a href="http://www.amazon.co.uk/gp/product/0735658188/ref=as_li_ss_tl?ie=UTF8&amp;amp;tag=chriswebbsbib-21&amp;amp;linkCode=as2&amp;amp;camp=1634&amp;amp;creative=19450&amp;amp;creativeASIN=0735658188"&gt;SSAS 2012 Tabular book&lt;/a&gt;) involves using the IsSubtotal() function (see &lt;a href="http://technet.microsoft.com/en-us/library/gg492171.aspx"&gt;here&lt;/a&gt; for more details on this) and ordering, similar to this:&lt;/p&gt;
&lt;p&gt;evaluate &lt;br /&gt;summarize( &lt;br /&gt;DimDate &lt;br /&gt;, DimDate[CalendarYear] &lt;br /&gt;, rollup(DimDate[DayNumberOfWeek]) &lt;br /&gt;, "Number of Days" &lt;br /&gt;, countrows(DimDate) &lt;br /&gt;, "Is Subtotal" &lt;br /&gt;, IsSubtotal(DimDate[DayNumberOfWeek]) &lt;br /&gt;) &lt;br /&gt;order by &lt;br /&gt;DimDate[CalendarYear] ASC &lt;br /&gt;, DimDate[DayNumberOfWeek] ASC &lt;br /&gt;, [Is Subtotal] ASC&lt;/p&gt;
&lt;p&gt;&lt;a href="http://cwebbbi.files.wordpress.com/2012/05/image5.png"&gt;&lt;img src="http://cwebbbi.files.wordpress.com/2012/05/image_thumb5.png?w=414&amp;amp;h=317" border="0" alt="image" title="image" width="414" height="317" style="background-image: none; margin: 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;But I thought there was an alternative, more elegant approach and found one. Here it is:&lt;/p&gt;
&lt;p&gt;evaluate &lt;br /&gt;generateall( &lt;br /&gt;values(DimDate[CalendarYear]) &lt;br /&gt;, &lt;br /&gt;summarize( &lt;br /&gt;DimDate &lt;br /&gt;, rollup(DimDate[DayNumberOfWeek]) &lt;br /&gt;, "Number of Days" &lt;br /&gt;, calculate(countrows(DimDate)) &lt;br /&gt;) &lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://cwebbbi.files.wordpress.com/2012/05/image6.png"&gt;&lt;img src="http://cwebbbi.files.wordpress.com/2012/05/image_thumb6.png?w=411&amp;amp;h=329" border="0" alt="image" title="image" width="411" height="329" style="background-image: none; margin: 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see, the subtotals appear after the list of day numbers for each year. There are two important things to understand about how this query works:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I’m using the &lt;a href="http://msdn.microsoft.com/en-us/library/gg492206.aspx"&gt;GenerateAll()&lt;/a&gt; function to take the list of distinct years returned by the Values() function and then, for each year, return a table of day numbers with a subtotal and crossjoin the result. This gives us our subtotals in the correct position without any sorting required.&lt;/li&gt;
&lt;li&gt;I had to wrap my original countrows() with calculate to make sure it returned the correct value.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt; &lt;/p&gt;
&lt;table border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;img src="http://powerpivot-info.com/images/stories/authors/chris-webb.png" border="0" alt="chris-webb" width="60" height="82" /&gt;&lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Chris has been working with Microsoft BI tools since he started using beta 3 of OLAP Services back in the late 90s. Since then he has worked with Analysis Services in a number of roles (including three years spent with Microsoft Consulting Services) and he is now an independent consultant specialising in complex MDX, Analysis Services cube design and Analysis Services query performance problems. His company website can be found at &lt;a href="http://www.crossjoin.co.uk" target="_blank"&gt;http://www.crossjoin.co.uk&lt;/a&gt; and his blog can be found at &lt;a href="http://cwebbbi.wordpress.com"&gt;http://cwebbbi.wordpress.com&lt;/a&gt; .&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr /&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/twkQwcKOQKg" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Chris Webb)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Wed, 16 May 2012 02:20:22 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1002-controlling-the-position-of-subtotals-in-dax-with-generateall</feedburner:origLink></item>
		<item>
			<title>PowerPivot - Personal BI on your desktop</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/8JxItnp2_uU/1001-powerpivot---personal-bi-on-your-desktop</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/1001-powerpivot---personal-bi-on-your-desktop</guid>
			<description>&lt;p&gt;What do you think about business intelligence (BI), a lot of people believe BI is only for big enterprise because it is expensive, takes long time to implement and requires special trained consultants to set it up. The worst part is that it does not often deliver what it promises to do - real time, self-service information delivery. Even they have BI within their organization, many analysts still heavily rely on their most trusted software, Excel to do their analysis because their corporate BI just does not provide everything they want or they are not familiar with the new BI environments. &lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/8JxItnp2_uU" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Andrew Chan)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Tue, 15 May 2012 22:11:30 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/1001-powerpivot---personal-bi-on-your-desktop</feedburner:origLink></item>
		<item>
			<title>Resolving Many to Many relationships leveraging DAX Cross Table Filtering</title>
			<link>http://feedproxy.google.com/~r/PowerPivotPosts/~3/tanbLfqGJ8w/999-resolving-many-to-many-relationships-leveraging-da</link>
			<guid isPermaLink="false">http://powerpivot-info.com/post/999-resolving-many-to-many-relationships-leveraging-da</guid>
			<description>&lt;p&gt;If you ever had to deal with many-to-many relationships in PowerPivot then I am quite sure that you came across the blog-post Many-to-Many relationships in PowerPivot by Marco Russo and PowerPivot and Many to Many Relationships by Alberto Ferrari. Both posts describe how this issue can be solved using DAX and provide examples and also very good background information on that topic. &lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/PowerPivotPosts/~4/tanbLfqGJ8w" height="1" width="1"/&gt;</description>
			<author>webadmin@SSAS-Info.com (Gerhard Brueckl)</author>
			<category>PowerPivot Posts</category>
			<pubDate>Sun, 13 May 2012 21:39:00 +0000</pubDate>
		<feedburner:origLink>http://powerpivot-info.com/post/999-resolving-many-to-many-relationships-leveraging-da</feedburner:origLink></item>
	</channel>
</rss>

