<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PowerPivotPro</title>
	<atom:link href="http://www.powerpivotpro.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.powerpivotpro.com</link>
	<description>Thoughts on PowerPivot, Sharepoint BI and the occasional movie quote</description>
	<lastBuildDate>Thu, 17 May 2012 04:12:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Excel 5-Calendar Date Table</title>
		<link>http://www.powerpivotpro.com/2012/05/excel-5-calendar-date-table/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=excel-5-calendar-date-table</link>
		<comments>http://www.powerpivotpro.com/2012/05/excel-5-calendar-date-table/#comments</comments>
		<pubDate>Thu, 17 May 2012 04:04:46 +0000</pubDate>
		<dc:creator>ColinBanfield</dc:creator>
				<category><![CDATA[Custom Calendars]]></category>
		<category><![CDATA[Data Import]]></category>
		<category><![CDATA[Quick Tips & Tricks]]></category>
		<category><![CDATA[Time Intelligence]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4293</guid>
		<description><![CDATA[Guest Post by Colin Banfield [LinkedIn] 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 [...]]]></description>
			<content:encoded><![CDATA[<p>Guest Post by Colin Banfield [<a href="http://www.linkedin.com/pub/colin-banfield/5/829/290"><strong>LinkedIn</strong></a>]</p>
<p>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 <a href="http://www.kimballgroup.com/html/DWLT2content/Ch10 DateDim.xls"><strong>this Excel table offered by the Kimball group</strong></a> (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.&nbsp; Late last year, Rob posted an article titled the <a href="http://www.powerpivotpro.com/2011/11/the-ultimate-date-table/"><strong>Ultimate Date Table</strong></a>, 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.</p>
<p>For the Excel table that I was building, I checked the validity of some of the date period formulas I created by using date tables generated from the Date Dimension Wizard in Analysis Services. In the process of generating these tables,&nbsp; a thought struck me – why not duplicate the functionality of the Date Dimension Wizard using nothing more than Excel formulas? Hence, my&nbsp; goal changed from from creating a Regular Date/Fiscal Date table to one that included the additional calendars used in businesses. If you are an independent consultant with a varied clientele , you cannot anticipate what calendars a client will need, so I decided to cover all bases. For those of you that are unfamiliar with the Date Dimension Wizard in Analysis Services (only available in Multi-Dimensional mode), Figures 1a &amp; 1b show the first two steps of the wizard.</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/SNAGHTML2b298f56.png"><img style="border-right-width: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px" border="0" alt="SNAGHTML2b298f56" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/SNAGHTML2b298f56_thumb.png" width="443" height="401"></a></p>
<p>Fig 1a &#8211; Date Dimension Wizard Step 1</p>
<p>&nbsp;</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/SNAGHTML2b2aeb0c.png"><img style="border-right-width: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px" border="0" alt="SNAGHTML2b2aeb0c" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/SNAGHTML2b2aeb0c_thumb.png" width="439" height="397"></a>
<p>Figure 1b &#8211; Date Dimension Wizard Step 2</p>
<p>&nbsp;</p>
<p>As you can see from the above figures, you can generate up to five different calendars. Adding periods for the ISO calendar in the Excel date table was straightforward, but I came to a grinding halt when I turned my attention to the reporting calendar. The problem with the reporting calendar was that I couldn’t find any <em>consistent</em> definition of this calendar. I checked for information on this calendar online, and I contacted some folks familiar with the 4-4-5 pattern of the calendar. However, there was no consistency in the information I gathered. At this point, I put the reporting and manufacturing calendars on hold, and used my new table with the other three calendars. Every so often, I returned to tackle the reporting calendar, but to no avail. Eventually, I realized that I was using the wrong approach for creating this calendar. Since the Dimension Wizard obviously generated reporting periods using well defined criteria, all I had to do was “reverse engineer” the generated results. Using this approach, I was able to complete the reporting and manufacturing calendars without further issues. Figure 2 shows the configuration options in the final version of the Excel date table. This entry form was created on a worksheet separate from the date table.</p>
<p>&nbsp;</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image17.png"><img style="border-right-width: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb17.png" width="349" height="582"></a></p>
<p>Figure 2 &#8211; Excel Date Table Configuration Options</p>
<p>&nbsp;</p>
<p>In addition to the options available in the Dimension Wizard, I have included the ability to define weekend days, and one or more holiday tables. Another option (not shown) is the ability to create simple “selling season” periods. The actual date table is totally configurable – change the column titles and text that appears in the columns to suit your needs (including using a different language). Add or remove date period columns, change the year window of the calendar (it’s 21 years by default), and so on.</p>
<p>Anyone interested in using the date table can download it <a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Excel-5-Calendar-Date-Table-V2.xlsx"><strong>here</strong></a>. The workbook includes detailed information and instructions regarding the use of the table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/excel-5-calendar-date-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commission Calculations in PowerPivot Part 2</title>
		<link>http://www.powerpivotpro.com/2012/05/commission-calculations-in-powerpivot-part-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=commission-calculations-in-powerpivot-part-2</link>
		<comments>http://www.powerpivotpro.com/2012/05/commission-calculations-in-powerpivot-part-2/#comments</comments>
		<pubDate>Tue, 15 May 2012 04:01:00 +0000</pubDate>
		<dc:creator>David Churchward</dc:creator>
				<category><![CDATA[Accounting/Financial Techniques]]></category>
		<category><![CDATA[DAX]]></category>
		<category><![CDATA[Accounting and Finance Techniques]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[PowerPivot]]></category>
		<category><![CDATA[SUMX]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4284</guid>
		<description><![CDATA[Guest post by David Churchward&#160;[Twitter] You may recall in my last post, COMMISSION CALCULATIONS IN POWERPIVOT, we got to the point where we could dynamically calculate the sales value and attributable commission rate that should be applied based on time, value and team parameters, reading from a Rates table. In this post, we’ll complete the [...]]]></description>
			<content:encoded><![CDATA[<p><em>Guest post by </em><strong><a href="http://linkd.in/pNwvk4" target="_blank">David Churchward</a>&nbsp;<a href="https://twitter.com/#!/DavidChurchward" target="_blank">[Twitter]</a></strong></p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Team-and-Manager-Commissions-Report.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Team and Manager Commissions Report" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Team-and-Manager-Commissions-Report_thumb.jpg" width="642" height="261"></a></p>
<p>You may recall in my last post, <a href="http://www.powerpivotpro.com/?p=4247" target="_blank"><strong>COMMISSION CALCULATIONS IN POWERPIVOT</strong></a>, we got to the point where we could dynamically calculate the sales value and attributable commission rate that should be applied based on time, value and team parameters, reading from a Rates table.</p>
<p>In this post, we’ll complete the commission calculation, providing a different value for individuals and the team manager.</p>
<h3>Where are we?</h3>
<p>Just to recap, we got to the point in my last post where we had calculated <strong>[Sales_Value]</strong> and <strong>[Comm_Rate]</strong> as below:</p>
<p><span id="more-4284"></span><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Sales_Value-and-Comm_Rate-Measures1.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commissions Sales_Value and Comm_Rate Measures" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Sales_Value-and-Comm_Rate-Measures_thumb1.jpg" width="642" height="370"></a>
<p>It seemed logical that the concluding element was to simply multiply one value by the other.&nbsp; To a degree that is correct, but unfortunately, it’s not quite so straightforward.&nbsp; Let’s take a look at what that would do with a simple measure that I’ll call <strong>[Comm_V1]</strong></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000">Comm_V1 = [Sales_Value]*[Comm_Rate]</span></span></p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V1-Measure.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commission Comm_V1 Measure" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V1-Measure_thumb.jpg" width="642" height="306"></a></p>
<p>You’ll notice that the measure provides the right calculations, but only at the level of the report where it finds a single <strong>People[Name]</strong> and <strong>Dates[MonthEndDate]</strong>.&nbsp; There’s no aggregation above that value but why?</p>
<p>I’ll try to explain.&nbsp; Our <strong>[Comm_Rate]</strong> measure only calculates when the following condition holds true</p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">IF(COUNTROWS(VALUES(Dates[MonthEndDate]))=1&nbsp; </font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp; &amp;&amp;COUNTROWS(VALUES(People[Name]))=1</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp; &amp;&amp;COUNTROWS(VALUES(Types[Type_Code]))=1 ……</font></span></span></p>
<p>This means that we will see BLANK() returned as a <strong>[Comm_Rate]</strong> when we have more than one <strong>Dates[MonthEndDate]</strong> or more than one <strong>People[Name]</strong> or more than one <strong>Types[Type_Code]</strong>.&nbsp; Our <strong>[Comm_V1]</strong> measure is therefore trying to multiply the subtotal of <strong>[Sales_Value]</strong> by BLANK() which will obviously return a blank.</p>
<p>However, check out what happens when I only have one <strong>Dates[MonthEndDate]</strong>:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V1-Measure-Single-MonthEndDate.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commission Comm_V1 Measure Single MonthEndDate" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V1-Measure-Single-MonthEndDate_thumb.jpg" width="642" height="279"></a></p>
<p>As you might expect, we get nothing back.&nbsp; But look what happens if I open up one of the <strong>People[Name]</strong> fields:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V1-Measure-Single-MonthEndDate-Open-Name.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commission Comm_V1 Measure Single MonthEndDate Open Name" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V1-Measure-Single-MonthEndDate-Open-Name_thumb.jpg" width="642" height="290"></a></p>
<p>Bizarrely, I don’t just have values for the name that I’ve opened up, but I also have results for everyone else.&nbsp; And, the results are correct.&nbsp; However, it’s useless to us as it doesn’t work with more than one date and I’m pretty sure that this other phenomenon is just a bug.</p>
<h3>The Real Solution – Bring on SUMX</h3>
<p>There’s been a number of brilliant posts on SUMX such as <a href="http://www.powerpivotpro.com/2010/02/sumx-the-5-point-palm-exploding-fxn-technique/" target="_blank"><strong>THIS ONE</strong></a>.&nbsp; In short, SUMX is an iterative function. The syntax for SUMX is <strong>SUMX(<em>table, expression</em>).</strong>&nbsp; What this means is that SUMX will process the “<strong>expression</strong>” for each item in the “<strong>table</strong>”.&nbsp; However, it then goes one step further.&nbsp; SUMX will then SUM the results at each aggregation level in the report.</p>
<p>We know that our “expression” has to be <strong>[Sales_Value] * [Comm_Rate] </strong>and we want to complete this equation for each <strong>Dates[MonthEndDate]</strong> because, as mentioned earlier, this is the only level in our report where we can calculate a <strong>[Comm_Rate]</strong>.&nbsp; We want the outcome of those equations to be added together through the aggregation levels in our report such as <strong>People[Name]</strong> and <strong>People[Manager].</strong></p>
<p>Let’s try that with a measure called <strong>[Comm_V2]</strong> (I apologise for not being very inventive with these names – you’ve probably guessed from the temporary nature of these names that I’m ultimately going to ditch them <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Open-mouthed smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-openmouthedsmile1.png">)</p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">Comm_V2</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">=SUMX(VALUES(Dates[MonthEndDate]),[Sales_Value]*[Comm_Rate])</font></span></span></p>
<p>Before I proceed with showing the results of this measure, let me explain why I’m using <strong>VALUES(Dates[MonthEndDate])</strong>.&nbsp; There’s actually two reasons:</p>
<ol>
<li><strong>MonthEndDate</strong> is a field on my <strong>Dates</strong> table.&nbsp; I could use <strong>Dates</strong> as my table, but I would then be evaluating my expression for every single date in that table.&nbsp; Not only is that inefficient, but it will inevitably give me the wrong answer.
<li>In order to make SUMX as efficient as possible, you need to present it with the simplest and smallest number of distinct elements.&nbsp; By using <strong>VALUES(Dates[MonthEndDate])</strong> I’m creating an “in memory” list of distinct MonthEndDate values.&nbsp; Our expression will be evaluated once for each of these distinct values and we’re not holding a load of excess column baggage in memory. </li>
</ol>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V2-Measure.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commission Comm_V2 Measure" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V2-Measure_thumb.jpg" width="642" height="266"></a></p>
<p>This looks pretty reasonable.&nbsp; The individual monthly commission values are adding up to a correct total for each person.&nbsp; However, is Dalglish’s value correct?&nbsp; I thought this would be the sum of everyone’s commission within the team.&nbsp; If the hidden people are shown and we add up the column, the value for our total of Audio_Visual should be 98,989.18.</p>
<h4>So what is this “Manager’s Total” doing?</h4>
<p>It would be reasonable to believe that the underlying elements for Dalglish that should be aggregated are the team members (<strong>People[Name]</strong>) and the <strong>Dates[MonthEndDate]</strong>.&nbsp; However, we haven’t told PowerPivot to do that.&nbsp; The report is laid out in that manner, but all we’ve told PowerPivot to do is create an aggregation based on <strong>Dates[MonthEndDate]</strong>.&nbsp; Therefore, PowerPivot has added together the monthly totals for Dalglish as an individual.&nbsp; A breakdown of the equation is as below:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V2-Dalglish-Total.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commission Comm_V2 Dalglish Total" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Comm_V2-Dalglish-Total_thumb.jpg" width="431" height="81"></a></p>
<p>So, it’s actually calculating the Manager’s commission.&nbsp; What if I want it to total the sum of commissions paid to the whole team?</p>
<h4>Nested SUMX</h4>
<p>The simple answer to this issue is that we have to also tell our measure to aggregate for <strong>People[Name]</strong>.&nbsp; SUMX only provides for one iteration level.&nbsp; I don’t know the technical reasons as to why that is, but I imagine that providing multiple iterations could present problems with solve orders amongst other things.&nbsp; However, we can nest a SUMX expression inside another SUMX expression.&nbsp; The solution is as follows in a measure that doesn’t have a temporary name (which means it’s right – we hope) – <strong>Team_Commission</strong></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">Team_Commission</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">=SUMX(VALUES(People[Name]),</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">SUMX(VALUES(Dates[MonthEndDate]),[Sales_Value]*[Comm_Rate])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">)</font></span></span></p>
<p>I want to evaluate our previous SUMX expression for each distinct <strong>People[Name]</strong> value.&nbsp; Therefore, I use VALUES() to get a distinct list of items in that field and the expression is executed for each member and then aggregated.</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Team_Commission-Measure.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commissions Team_Commission Measure" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Team_Commission-Measure_thumb.jpg" width="642" height="303"></a></p>
<p>Bingo – we have the right values.</p>
<h3>Separate Manager’s Commission</h3>
<p>Although our Team_Commission measure is accurate and we don’t have any spurious totals that could serve to confuse, the previous value that we had for Dalglish did make sense in the right context.&nbsp; That was the value that he could expect for commission.&nbsp; It therefore makes sense to compile a further measure that is computed just at the Manager level to show that commission value.&nbsp; It’s a variation on a theme so I’ll jump straight into the DAX</p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">Manager_Commission</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">=IF(COUNTROWS(VALUES(People[Name]))&gt;1,</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">SUMX(VALUES(People[Manager]),</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">SUMX(VALUES(Dates[MonthEndDate]),[Sales_Value]*[Comm_Rate])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">),</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp; BLANK()</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp; )</font></span></span></p>
<p>In this measure, we’re iterating over a distinct list of <strong>People[Manager]</strong>.&nbsp; You’ll notice that I only want this to happen where <strong>COUNTROWS(VALUES(People[Name]))&gt;1</strong>.&nbsp; I’m using that to determine the “Manager Level” in our report.&nbsp; An individual salesperson would evaluate to 1 in this measure whereas a manager will evaluate to however many individuals in their team which we’re assuming is greater than 1.</p>
<p>Hang on – isn’t that a bit rash!&nbsp; Can a manager have only one report?&nbsp; In theory, I guess that’s true.&nbsp; This is my biggest issue with the way that PowerPivot works with report totals.&nbsp; I’ve only got COUNTROWS in my armoury to deal with this. <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-baringteethsmile" alt="Baring teeth smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-baringteethsmile.png"></p>
<p>Fortunately, there’s a way around it! <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Open-mouthed smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-openmouthedsmile1.png">&nbsp; The answer is to simply add the Manager into the People table and have them report to themselves.&nbsp; I’ve adjusted the table to show Robinson reporting to “Someone Else”.&nbsp; I’ve then created records for “Someone Else” and “Dalglish” reporting to themselves.</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-COUNTROWS-Additional-Team-Members.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commission COUNTROWS Additional Team Members" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-COUNTROWS-Additional-Team-Members_thumb.jpg" width="289" height="212"></a></p>
<p>Now my report can handle the fact that a team may only have one member, but it stills manages to understand that my measure has to execute.</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Final-Report.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commission Final Report" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commission-Final-Report_thumb.jpg" width="642" height="293"></a></p>
<h3>And Finally…</h3>
<p>I said to Erik in the comments section of the first post in this series that I would show how to calculate commission where the increase in percentage only applies to the element over a certain value.&nbsp; Unfortunately, there’s not time to do this here, but I will come back to it.&nbsp; Sorry that I couldn’t get that in this post Erik.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/commission-calculations-in-powerpivot-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>You&#8217;re STILL Using Excel to Manage Commissions?</title>
		<link>http://www.powerpivotpro.com/2012/05/youre-still-using-excel-to-manage-commissions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=youre-still-using-excel-to-manage-commissions</link>
		<comments>http://www.powerpivotpro.com/2012/05/youre-still-using-excel-to-manage-commissions/#comments</comments>
		<pubDate>Fri, 11 May 2012 04:21:00 +0000</pubDate>
		<dc:creator>powerpivotpro</dc:creator>
				<category><![CDATA[Friday Bonus Posts]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4259</guid>
		<description><![CDATA[&#160;This was sent to me yesterday by a colleague, appropriate given yesterday’s post: Why yes.&#160; Yes we are.&#160; More effectively every day in fact.]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<br />This was sent to me yesterday by a colleague, appropriate given yesterday’s post:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/clip_image001.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/clip_image001_thumb.jpg" width="372" height="304"></a></p>
<p>Why yes.&nbsp; Yes we are.&nbsp; <strong><a href="http://www.powerpivotpro.com/2012/05/commission-calculations-in-powerpivot/">More effectively every day in fact</a></strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/youre-still-using-excel-to-manage-commissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commission Calculations in PowerPivot</title>
		<link>http://www.powerpivotpro.com/2012/05/commission-calculations-in-powerpivot/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=commission-calculations-in-powerpivot</link>
		<comments>http://www.powerpivotpro.com/2012/05/commission-calculations-in-powerpivot/#comments</comments>
		<pubDate>Wed, 09 May 2012 22:19:05 +0000</pubDate>
		<dc:creator>David Churchward</dc:creator>
				<category><![CDATA[Accounting/Financial Techniques]]></category>
		<category><![CDATA[DAX]]></category>
		<category><![CDATA[Accounting and Finance Techniques]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[PowerPivot]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4247</guid>
		<description><![CDATA[Guest post by David Churchward&#160;[Twitter] Firstly, I have to be clear that I’m not presenting a “one-size-fits-all” approach to sales commission calculations here.&#160; That wouldn’t be possible because commission schemes vary extensively and, in my experience, some schemes aren’t even based on a logic that can derive a mathematical answer!&#160; However, I’m presenting an approach [...]]]></description>
			<content:encoded><![CDATA[<p><em>Guest post by </em><strong><a href="http://linkd.in/pNwvk4" target="_blank">David Churchward</a>&nbsp;<a href="https://twitter.com/#!/DavidChurchward" target="_blank">[Twitter]</a></strong></p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Report.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commissions Report" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Report_thumb.jpg" width="642" height="311"></a></p>
<p>Firstly, I have to be clear that I’m <strong>not</strong> presenting a “one-size-fits-all” approach to sales commission calculations here.&nbsp; That wouldn’t be possible because commission schemes vary extensively and, in my experience, some schemes aren’t even based on a logic that can derive a mathematical answer!&nbsp; However, I’m presenting an approach here that will hopefully provide a template approach that can be modified to a number of different scenarios.</p>
<h3>The Target Outcome</h3>
<p>The scheme that I’m using in this example operates as follows:</p>
<ol>
<li>Commission is paid monthly based on the achievement in that month
<li>As a salesperson sells more, then accelerators trigger.&nbsp; That is to say, for example, a salesperson may receive 1% of sales up to £10,000 and 2% of sales between £10,000 and £20,000.&nbsp; The 2% is payable on the whole value.&nbsp; Therefore, if a salesperson sells £11,000 then they would receive 2% of the full £11,000
<li>Percentages and bands can change monthly at management discretion
<li>This is a monthly threshold so each salesperson is reset to zero at the start of each month.
<li>Each product group carries a separate set of bands and rates
<li>Managers receive commission at a different rate to the sales team based on the total sales for their team. </li>
</ol>
<p><span id="more-4247"></span>Naturally, this is a hypothetical dataset and commission scheme but it is closely based on a real life example that I implemented recently.&nbsp; I’ve hacked together a dataset as I couldn’t release my real life example for obvious reasons.<br />
<h3></h3>
<h3>The Dataset</h3>
<p>Before I go into the schema, it’s worthwhile noting once again that I have hacked this dataset together.&nbsp; Because I lack the imagination to dream up names for members of the sales team and also because I was just reading a write up on Liverpool’s drubbing of Chelsea yesterday, I’ve used the Liverpool squad reporting into “King Kenny”.&nbsp; Obviously, I’m not implying for one minute that my beloved Liverpool team should turn their hand to selling AV and Computer electricals! <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-confusedsmile" alt="Confused smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-confusedsmile.png"></p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Table-Schema.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commissions Table Schema" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Table-Schema_thumb.jpg" width="642" height="410"></a></p>
<p><strong>Note – I’ve compiled this workbook in PowerPivot V1 but quickly whipped it through V2 to get the nice table view above!</strong> <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Open-mouthed smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-openmouthedsmile.png"></p>
<p>I have four related tables</p>
<ol>
<li><strong>Orders</strong>– this is a list of orders detailing the usual candidates for a dataset like this – Order (being the order number), Date, Salesman, Qty, unit_Cost, Value and Type.
<li><strong>People</strong>– this is a list of the unique salesperson names and the manager to whom they report.
<li><strong>Types</strong>– this is a product grouping.&nbsp; As my commission scheme carries different parameters and rates dependent on the product group, I have to be able to analyse my dataset at this level.&nbsp; In this case, I have two product groups being AV (Audio Visual) and COMP (Computers)
<li><strong>Dates</strong>– this is a fairly standard dates table.&nbsp; I have a sequential list of dates with a number of attributes.&nbsp; In truth, most of these attributes are redundant for this analysis.&nbsp; The main attribute is the MonthEndDate which I will use in the DAX measure that we create.
<li><strong>Rates</strong> – this is <strong>NOT RELATED</strong> to any other tables.&nbsp; The reason for this is because I want to call in information in different sections of this table that, in turn, is dependent on the outcome of a dynamic measure. </li>
</ol>
<h3>The Dax</h3>
<h4>A Simple “Starter for 10”</h4>
<p>Obviously, we need to calculate how much has been sold by an individual salesperson in a given month in order to then calculate how much commission accrues as a result.&nbsp; My final analysis is going to be carrying People[Name], People[Manager] and Dates[MonthEndDate] on rows in my report.&nbsp; As a result, I don’t have to worry about applying any cunning filters.&nbsp; The upshot is that we can resort to a simple SUM() measure.</p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">Sales_Value</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">=SUM(Orders[Value])</font></span></span></p>
<p>Rob – is there a level 0 on the spicy scale?</p>
<h4>And then it gets a “bit” harder”!</h4>
<p>Whilst Sales_Value may not be the most intricate DAX expression you’ve ever seen, things get a bit more tasty when we try to determine which percentage rate to apply in our calculation.&nbsp; I’ll dive straight into the DAX.</p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">Comm_Rate</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">=IF(COUNTROWS(VALUES(Dates[MonthEndDate]))=1</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&amp;&amp;COUNTROWS(VALUES(People[Name]))=1</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&amp;&amp;COUNTROWS(VALUES(Types[Type_Code]))=1,</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp; IF([Sales_Value]=BLANK(),BLANK(),</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CALCULATE(MAX(Rates[Rate]),</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FILTER(Rates,</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rates[From]&lt;=[Sales_Value]</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[To]&gt;=[Sales_Value]</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[From_Date]&lt;=MAX(Dates[MonthEndDate])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[To_Date]&gt;=MAX(Dates[MonthEndDate])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[Type]=VALUES(Types[Type_Code])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[Rate_Group]=&#8221;Salesperson&#8221;</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ),</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp; IF(COUNTROWS(VALUES(Dates[MonthEndDate]))=1</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp; &amp;&amp;COUNTROWS(VALUES(People[Name]))&gt;1</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.375in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp; &amp;&amp;COUNTROWS(VALUES(Types[Type_Code]))=1,</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IF([Sales_Value]=BLANK(),BLANK(),</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CALCULATE(MAX(Rates[Rate]),</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FILTER(Rates,</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rates[From]&lt;=[Sales_Value]</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[To]&gt;=[Sales_Value]</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[From_Date]&lt;=MAX(Dates[MonthEndDate])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[To_Date]&gt;=MAX(Dates[MonthEndDate])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[Type]=VALUES(Types[Type_Code])</font></span></span></p>
<p style="line-height: normal; margin: 0in 0in 0in 0.75in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;Rates[Rate_Group]=&#8221;Manager&#8221;</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</font></span></span></p>
<p style="line-height: normal; margin: 0in"><span style="font-family: courier new"><span style="color: #000000"><font size="3">)</font></span></span></p>
<p>Let’s break that down.</p>
<p>We only want to evaluate a rate when:</p>
<ol>
<li>We have one MonthEndDate by using <strong>IF(COUNTROWS(VALUES(Dates[MonthEndDate]))=1</strong>. It doesn’t make sense to calculate at any other point through the aggregation.&nbsp; If we were to do so, the fact that we’re using <strong>MAX(Rates[Rate])</strong> would mean that the highest value over a combination of months would be returned at an aggregation level where multiple months were included.
<li>We want to calculate a rate for each salesperson independently.&nbsp; To do this, we add a further condition <strong>&amp;&amp;COUNTROWS(VALUES(People[Name]))=1</strong>.
<li>We have different rates for each Type (where Type is the product group – in this case Audio Visual and Computers)
<li>We only want to return a value when we have a Sales_Value.&nbsp; This is more to do with aesthetics than anything else.&nbsp; If you have a Salesperson who doesn’t sell anything or wasn’t perhaps employed at a point in time of the analysis, you’ll get a series of unnecessary additional lines.&nbsp; We therefore exclude those situations using <strong>IF([Sales_Value]=BLANK(),BLANK()</strong>. </li>
</ol>
<p>Where these conditions hold true, we want to pick the appropriate rate.</p>
<h4>The Rates Table</h4>
<p>Before we get onto the FILTER() expression, it probably makes sense to take a good look at the Rates table to be clear on what we’re looking at:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Rates-Table.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commissions Rates Table" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Rates-Table_thumb.jpg" width="642" height="511"></a></p>
<p>Remember that this table <strong>ISN’T</strong> related to any of our other tables.&nbsp; As a result, we have to provide all of the conditions that will filter this list down to one result and we can then return the <strong>Rates[Rate]</strong> value.&nbsp; As a result, we need to plot the conditions below within a <strong>FILTER() </strong>condition:</p>
<ol>
<li>Our <strong>[Sales_Value]</strong> must fit between the <strong>Rates[From]</strong> and <strong>Rates[To]</strong> values.&nbsp; You’ll notice that the values in this rates table follow on from one another so we should be able to guarantee a result.&nbsp; This is done using <strong>Rates[From]&lt;=[Sales_Value]&amp;&amp;Rates[To]&gt;=[Sales_Value]</strong>
<li>We need to provide a value for <strong>Rates[Type]</strong> as we could conceivably return multiple results for multiple products and our measure will therefore have to evaluate a MAX() result.&nbsp; This is done using <strong>&amp;&amp;Rates[Type]=VALUES(Types[Type_Code])</strong>
<li>We can return different rates for different periods in time.&nbsp; The Order can be pigeon holed between <strong>Rates[From_Date]</strong> and <strong>Rates[To_Date]</strong> using <strong>&amp;&amp;Rates[From_Date]&lt;=MAX(Dates[MonthEndDate])&amp;&amp;Rates[To_Date]&gt;=MAX(Dates[MonthEndDate])</strong>
<li>Finally, because we can get a different rate for a Salesperson from a Manager, we need to explicitly state that <strong>&amp;&amp;Rates[Rate_Group]=&#8221;Salesperson&#8221;</strong>.&nbsp; You’ll recall that our upfront IF() statement has already determined that we’re evaluating at the Salesperson level using <strong>&amp;&amp;COUNTROWS(VALUES(People[Name]))=1</strong> </li>
</ol>
<p>Having done all of that, we then do the same again but for Managers.&nbsp; The only difference is that we evaluate when <strong>&amp;&amp;COUNTROWS(VALUES(People[Name]))&gt;1</strong>&nbsp; to determine that we’re at the manager level (based on a Manager having more than one Salesperson reporting to them) and <strong>&amp;&amp;Rates[Rate_Group]=&#8221;Manager&#8221; </strong>for obvious reasons.</p>
<p>The outcome with these measures in place shows the following:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Sales_Value-and-Comm_Rate-Measures.jpg"><img style="border-right-width: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" border="0" alt="Commissions Sales_Value and Comm_Rate Measures" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/Commissions-Sales_Value-and-Comm_Rate-Measures_thumb.jpg" width="642" height="370"></a></p>
<h3>So what next?</h3>
<p>Surely, we can now calculate commission using [Sales_Value]*[Comm_Rate] right?&nbsp; If it were that easy, I wouldn’t be lining up a parting comment to say that I’ll be back with a follow up to show how it’s done.&nbsp; To whet appetites, think nested SUMX! <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-berightback" alt="Be right back" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-berightback.png"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/commission-calculations-in-powerpivot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mini-Post 2 of 2:  PivotLink, Birst, QlikView, and &#8220;Desktop-Only&#8221; PowerPivot added to ROI Quadrant</title>
		<link>http://www.powerpivotpro.com/2012/05/mini-post-2-of-2-pivotlink-birst-qlikview-and-desktop-only-powerpivot-added-to-roi-quadrant/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mini-post-2-of-2-pivotlink-birst-qlikview-and-desktop-only-powerpivot-added-to-roi-quadrant</link>
		<comments>http://www.powerpivotpro.com/2012/05/mini-post-2-of-2-pivotlink-birst-qlikview-and-desktop-only-powerpivot-added-to-roi-quadrant/#comments</comments>
		<pubDate>Tue, 08 May 2012 19:53:33 +0000</pubDate>
		<dc:creator>powerpivotpro</dc:creator>
				<category><![CDATA[Observations, Trends, and Wild Speculation]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4233</guid>
		<description><![CDATA[&#160; Thanks for All the Emails! I really appreciate everyone who took the time to send in their thoughts on the first iteration of the ROI Quadrant.&#160; Your input has encouraged me to keep refining and updating the chart.&#160; Based on your feedback, there are now a few additions in the version above: Desktop-Only PowerPivot [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<br /><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/PowerPivot-ROI-Quadrant2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="PowerPivot ROI Quadrant2" border="0" alt="PowerPivot ROI Quadrant2" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/PowerPivot-ROI-Quadrant2_thumb.png" width="549" height="378"></a></p>
<h3>Thanks for All the Emails!</h3>
<p>I really appreciate everyone who took the time to send in their thoughts on the <strong><a href="http://www.powerpivotpro.com/2012/05/beta-testing-the-roi-quadrant/">first iteration of the ROI Quadrant</a></strong>.&nbsp; Your input has encouraged me to keep refining and updating the chart.&nbsp; </p>
<p>Based on your feedback, there are now a few additions in the version above:</p>
<ol>
<li>Desktop-Only PowerPivot</li>
<li>QlikView</li>
<li>Birst</li>
<li>PivotLink</li>
</ol>
<p>I’ll briefly explain the rationale for each.</p>
<p><span id="more-4233"></span><br />
<h3>Desktop PowerPivot vs. “Full System” PowerPivot</h3>
<p>This is a distinction I often fail to make and you guys rightly called me on it.</p>
<p>Let me be clear:&nbsp; PowerPivot on your desktop is an amazing tool, but it does not offer the ongoing robustness benefits that you get when you deploy it as part of a full system.</p>
<p>What does the full system entail?&nbsp; Some of it isn’t software or hardware, but a social system.&nbsp; People in different roles cooperating.&nbsp; How your toolset blends in with your people and your organization is important – another theme I keep emphasizing.</p>
<ol>
<li><strong>PowerPivot for SharePoint</strong>.&nbsp; Without this, you don’t get security, auto-refresh, one version of the truth, cross-platform reach, nor the simpler usability of the web interface.&nbsp; This is a big reason why people come to us for <strong><a href="http://www.powerpivotpro.com/2012/04/cloud-powerpivot-free-trials-for-the-public/">Cloud PowerPivot</a></strong> – to gain these benefits without large IT investments.</li>
<li><strong>Database Support</strong></li>
<ol>
<li>I’ve spoken at length about how much better PowerPivot is when paired with a database – <strong><a href="http://www.powerpivotpro.com/2011/11/why-powerpivot-is-better-fed-from-a-database-pt-1/">here</a></strong> and <strong><a href="http://www.powerpivotpro.com/2011/11/why-powerpivot-is-better-fed-from-a-database-pt2/">here</a></strong> for starters.</li>
<li>ETL technically means “extract, transform, and load” but in general I just use this to refer to data shaping – something that is difficult (often impossible) to perform in PowerPivot.</li>
<li>Even more clearly though, PowerPivot <strong>authors</strong> can deliver much better results when they have the <strong>cooperation</strong> of a <strong>database pro</strong>.&nbsp; A two-person team of PowerPivot “Excel Pro” plus a “Database Pro” can accomplish things that much larger teams will actually never accomplish using other tools.&nbsp; Whenever I conduct one of my two-day training sessions on PowerPivot, this cooperation is a theme that I stress repeatedly.</li>
</ol>
</ol>
<p>If you’re just running PowerPivot on the desktop, you still get dramatically increased robustness and agility over regular Excel, thanks to <strong><a href="http://blogs.office.com/b/microsoft-excel/archive/2011/05/05/portable-formulas-a-powerpivot-benefit-you-ll-never-believe-you-lived-without.aspx" target="_blank">portable formulas</a></strong> and <strong><a href="http://www.powerpivotpro.com/category/real-world-mashups-and-analysis/">multi-table mashups</a></strong>.&nbsp; But the lack of DBA support reduces your agility quite a bit compared to adopting a complete system, and the lack of SharePoint impacts both your robustness and agility.</p>
<p>The difference between having a full system versus just the desktop is night and day.&nbsp; If all you have right now is the desktop version, don’t sweat it – you are learning all the right things and gaining tremendous benefit already.&nbsp; Look at this as a positive – there are still further amazing capabilities to leverage.</p>
<h3>QlikView</h3>
<p>I’ve heard a lot of good things about QlikView over the years and that continued in the emails I received.</p>
<p>Basically the theme I saw was in line with my long-simmering theory:&nbsp; if you are in the market for a BI tool, but want something a bit more approachable than traditional BI platforms, QlikView is a very appealing choice.&nbsp; The feature set is very rich, quite competitive with “big box” BI vendors, while presenting to its users a level of complexity that resembles that of Access development rather than heavyweight BI.</p>
<p>Still, I’ve met a number of people who who’ve been using or reselling QlikView and decided that it wasn’t broadly-useable enough.&nbsp; The scripting language can put people off, and there’s a rich community of QlikView consultants, which is another sign of complexity.</p>
<p>Again, that theme that it’s like Access development in terms of complexity and less like Excel.</p>
<p>So QlikView gets a larger dot than traditional BI, similar robustness level (greater than PowerPivot), but a smaller dot than PowerPivot and lower agility score.&nbsp; The Excel Army has soldiers everywhere, ready to engage.&nbsp; To adopt QlikView you need to teach people a brand new language.</p>
<p>Note that if I did start to include feature depth using color intensity, QlikView would do very well on that scale.&nbsp; But features don’t drive ROI nearly as much as the way it fits the people in your organization, so PowerPivot’s “ROI Rectangle” would still be quite a bit larger:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image16.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="Comparing ROI of Traditional BI, QlikView, and PowerPivot" border="0" alt="Comparing ROI of Traditional BI, QlikView, and PowerPivot" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb16.png" width="570" height="392"></a></p>
<p align="center"><strong>Comparing the “ROI Rectangles” of Traditional BI, QlikView, and PowerPivot</strong></p>
<h3>Birst</h3>
<p>I know very little about Birst personally but I received a few suggestions in terms of where to place it, and those suggestions were consistent, so here it is.&nbsp; Let me know if you disagree.</p>
<h3>PivotLink</h3>
<p>At <a href="http://pivotstream.com" target="_blank">Pivotstream</a> we have a great deal of experience with PivotLink.&nbsp; Or at least, my colleagues do.&nbsp; My acknowledged first mission when I joined the company was to <em>replace</em> PivotLink with PowerPivot.&nbsp; We did that quickly and we never looked back.</p>
<p>I realize that my placement of their dot is inconsistent with their marketing, as they were one of the early “self-service SaaS BI” firms.&nbsp; Good ideas and courage are excellent ingredients, and I salute them for that, but we have firsthand knowledge that the execution is lacking.</p>
<p>I don’t have a problem being particularly harsh here because the notion of friendly BI tools is very much a reality – I live it every day.&nbsp; So anyone that purports to be that but then under-delivers on usability AND robustness could unfairly give the entire space a bad name.</p>
<h3>Tableau?</h3>
<p>Tableau is a very popular tool in the data visualization crowd.&nbsp; Those of you who have used it as well as PowerPivot, please drop me a note with your thoughts.&nbsp; Your anonymity will be protected.&nbsp; I’m rob.&nbsp; At a place called Pivotstream.&nbsp; Dot com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/mini-post-2-of-2-pivotlink-birst-qlikview-and-desktop-only-powerpivot-added-to-roi-quadrant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mini-Post 1 of 2:  A &#8220;Better&#8221; Version of TODAY()</title>
		<link>http://www.powerpivotpro.com/2012/05/mini-post-1-of-2-a-better-version-of-today/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mini-post-1-of-2-a-better-version-of-today</link>
		<comments>http://www.powerpivotpro.com/2012/05/mini-post-1-of-2-a-better-version-of-today/#comments</comments>
		<pubDate>Tue, 08 May 2012 15:57:18 +0000</pubDate>
		<dc:creator>powerpivotpro</dc:creator>
				<category><![CDATA[DAX]]></category>
		<category><![CDATA[Quick Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4226</guid>
		<description><![CDATA[&#160; Two mini-posts today:&#160; this one and then an updated ROI Quadrant. This one falls under the “quick tip” category (and the “MacGyver” category were I to have one). How “Up to Date” Is Your Data Source? Sometimes you’ll find yourself wanting to know the absolute latest date in your data, so that you can [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<br /><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image11.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb11.png" width="474" height="391"></a></p>
<p>Two mini-posts today:&nbsp; this one and then an updated ROI Quadrant.</p>
<p>This one falls under the “quick tip” category (and the “<strong><a href="http://en.wikipedia.org/wiki/MacGyver#MacGyverisms" target="_blank">MacGyver</a></strong>” category were I to have one).</p>
<h3>How “Up to Date” Is Your Data Source?</h3>
<p>Sometimes you’ll find yourself wanting to know the absolute latest date in your data, so that you can calculate things like “how much of the current month has already elapsed” for instance.</p>
<p>And it’s tempting to use the TODAY() function to do that, but oftentimes your data “lags” behind today – maybe by a day, maybe more.&nbsp; So TODAY() becomes pretty worthless for that.</p>
<p>So, what do you do?&nbsp; I’ve recently started using a simple trick that I like better than my past approaches, so I thought I’d share it.</p>
<p><span id="more-4226"></span>
<p>&nbsp;</p>
<h3>First, Decide on Calendar vs. Sales (or Other “Fact”) Table</h3>
<p>If you’re lucky, your Calendar table is only as “up to date” as the rest of your data.&nbsp; So if you only have sales transaction data through May 1st, May 1st is also the most recent date in your Calendar table.&nbsp; If that’s the case, I recommend using the Calendar table as the basis of your solution.</p>
<p>If your Calendar table extends beyond the most current date, then you have to use one of your data tables like Sales as the basis.</p>
<p>Then there are a few different approaches you can take.</p>
<h3>Worst Technique:&nbsp; An ALL() Measure</h3>
<p>I call this the “worst” but I admit that I’ve done it a lot.&nbsp; You write a measure:</p>
<p><font size="3" face="Courier New">[CurrentAsOfDate]<br />=CALCULATE(LASTDATE(Sales[OrderDate]), ALL(Sales))</font></p>
<p>And then you use that measure in your other measures, to calculate things like [% Month Remaining].</p>
<p><strong>The trouble with this is that it has to recalc all the time</strong>, every time you manipulate a pivot, which is wasteful since it is always going to return the same value.&nbsp; It has to strip filters from the Sales table, and then scan the OrderDate column (which could be millions of rows) for the max date.&nbsp; It might not be a lot of work for the PowerPivot engine, but why force it to do anything extra?</p>
<h3>Clunky Technique:&nbsp; Calc Column in Sales, Then a Measure</h3>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image12.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="First You Add a LASTDATE(ALL(Sales[OrderDate])) Calc Column to Sales Table" border="0" alt="First You Add a LASTDATE(ALL(Sales[OrderDate])) Calc Column to Sales Table" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb12.png" width="542" height="427"></a></p>
<p align="center"><strong>First You Add a LASTDATE(ALL(Sales[OrderDate])) Calc Column to Sales Table</strong></p>
<p>OK, then you add a measure much like before:</p>
<p><font size="3" face="Courier New">[CurrentAsOfDate]<br />=LASTDATE(Sales[MostRecentSale))</font>
<p>That’s better – this measure still has to be evaluated every time you update the pivot, but there is no ALL() that needs to be applied, so that’s less work.</p>
<p>But still, we can do better.</p>
<h3>MacGyver Says:&nbsp; One-Row Table!</h3>
<p>Even better.&nbsp; Just go into Excel and create a one-row “table” like this:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image13.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb13.png" width="128" height="89"></a></p>
<p align="center"><strong>Just Type This in,<br />Then Copy to Clipboard</strong></p>
<p>Copy that to the clipboard, then switch to PowerPivot and Paste:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image14.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb14.png" width="242" height="159"></a></p>
<p align="center"><strong>Paste as New Table</strong></p>
<p>Then you add a calc column in THAT table, that takes the LASTDATE() of the Sales table:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image15.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb15.png" width="389" height="126"></a></p>
<p align="center"><strong>Put Your LASTDATE() Calc Column in Your “MacGyver” Table</strong></p>
<p>And THEN you write your measure:</p>
<p><font size="3" face="Courier New">[CurrentAsOfDate]<br />=LASTDATE(MacGyver[MostRecentSaleDates))</font></p>
<p>That is about as efficient as it gets.&nbsp; No ALL(), no rows to scan, no “pollution” of your large Sales table, less impact on file size.</p>
<h3>It Updates Every Time You Refresh Your Sales Table…</h3>
<p>…which is exactly what you need – no more or less frequently.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/mini-post-1-of-2-a-better-version-of-today/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Friday Bonus:  What is &#8220;Stimulus Spending?&#8221;</title>
		<link>http://www.powerpivotpro.com/2012/05/friday-bonus-what-is-stimulus-spending/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=friday-bonus-what-is-stimulus-spending</link>
		<comments>http://www.powerpivotpro.com/2012/05/friday-bonus-what-is-stimulus-spending/#comments</comments>
		<pubDate>Sat, 05 May 2012 06:56:07 +0000</pubDate>
		<dc:creator>powerpivotpro</dc:creator>
				<category><![CDATA[Friday Bonus Posts]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4214</guid>
		<description><![CDATA[&#160;I stumbled into an interesting discussion on Facebook yesterday, and didn’t have room to express my opinion there, so I thought I’d do it here.&#160; It’s about the economy, which has been my only real hobby for the past several years. And hey, the economy is numbers-related so it’s not entirely off topic for this [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<br />I stumbled into an interesting discussion on Facebook yesterday, and didn’t have room to express my opinion there, so I thought I’d do it here.&nbsp; It’s about the economy, which has been my only real hobby for the past several years.</p>
<p>And hey, the economy is numbers-related so it’s not <em>entirely</em> off topic for this blog right? <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-smile1.png"></p>
<h3>Nobel Economist Paul Krugman Wants More “Stimulus Spending”</h3>
<p><img style="margin: 0px 10px 11px 5px; display: inline; float: left" alt="http://rpmedia.ask.com/ts?u=/wikipedia/commons/thumb/4/48/Paul_Krugman-press_conference_Dec_07th%2C_2008-8.jpg/97px-Paul_Krugman-press_conference_Dec_07th%2C_2008-8.jpg" align="left" src="http://rpmedia.ask.com/ts?u=/wikipedia/commons/thumb/4/48/Paul_Krugman-press_conference_Dec_07th%2C_2008-8.jpg/97px-Paul_Krugman-press_conference_Dec_07th%2C_2008-8.jpg" width="95" height="118"></p>
<p>Stimulus spending is generally Mr. Krugman’s preferred fix for the US (and world) economy.&nbsp; Lately, he hasn’t been getting enough of it so he is on tour these days demanding more.</p>
<p><strong>What exactly IS stimulus spending?&nbsp; Fundamentally it means “the government spends or gives away money.”</strong>&nbsp; The idea is that by injecting new money into the economy, it can kickstart a benevolent cycle that sustains itself:</p>
<p><span id="more-4214"></span>
<p>&nbsp;</p>
<ol>
<li>The people or businesses who receive the stimulus cash now have more money to spend on other things.</li>
<li>As THEY spend their newfound money, other businesses have to hire more people to fill the demand.</li>
<li>Those newly-employed workers now have more money to spend, and may even end up buying from the people who received the stimulus in step one.</li>
</ol>
<h3>Where Does the Government Get the Stimulus Cash?</h3>
<p><strong>It’s hard to argue with a fresh injection of money into the economy, and I highly recommend that the government should let ME play a big role in step #1 above.</strong>&nbsp; I am a willing conduit for your good works Paul, and honestly, the bigger the check the better.&nbsp; I can do a lot more good for the economy with, say, $100k than I can with $1k.&nbsp; I promise I will spend every penny in short order, no hoarding.&nbsp; </p>
<p><strong>But as a society we really do need to ask where the money comes from</strong> in order to feel good about it.&nbsp; By my accounting, it can only come from a handful of places:</p>
<ol>
<li>Money that the government has <strong>saved</strong></li>
<li>Money that the government <strong>refunds</strong> directly to businesses and taxpayers via tax credits, rebates, or cuts</li>
<li>Money raised by <strong>new taxes</strong></li>
<li>Money that the government just flat-out <strong>prints</strong></li>
<li>Money that is <strong>borrowed</strong>:</li>
<ol>
<li>From other governments</li>
<li>From private corporations</li>
<li>From banks, mutual funds, etc.</li>
<li>From private investors</li>
<li>From our own Federal Reserve</li>
</ol>
</ol>
<p><strong>#1 kinda makes you laugh doesn’t it?&nbsp; Governments with saved money?</strong>&nbsp; Har har.&nbsp; Certainly not the US government.&nbsp; Does ANY government have money saved up?&nbsp; Assets exceeding liabilities?&nbsp; I need an accountant!&nbsp; Where’s David Churchward?</p>
<p>Anyway let’s take a look at the other sources.</p>
<h3>#2 – Tax Refunds/Credits/Cuts</h3>
<p>Again, allow me to be first to volunteer to have some of my tax dollars returned to me, and the more the better.</p>
<p>Jokes aside, this isn’t such a bad idea in general, but it has consequences.&nbsp; By taking in less money, the government now has less to spend on other things.&nbsp; And reduced spending on other things is really just REDUCING stimulus in other places – if they lay off federal workers for instance, or buy less Predator drones, the federal workers or the defense firms will have less money to spend into the economy, and we’re back where we started.</p>
<p>Tax refunds really just transfer “stimulus” from one place to another.&nbsp; So by itself, this one is no help.</p>
<h3>#3 – New Taxes</h3>
<p>Take more money out of the economy by raising taxes and then distribute it as stimulus = just another way of moving money around.&nbsp; Anti-stimulus one place, stimulus in another.&nbsp; Yields no net gain in stimulus.</p>
<h3>#4 – Newly Printed Money</h3>
<p>Now we’re getting somewhere.&nbsp; If we’re going to have some real economic kickstart without just moving money from one place to another, conjuring new money out of thin air is a pretty good way to source it.&nbsp; And the government, with the cooperation of the Federal Reserve, can do just that.</p>
<p>They’ve done a sizable amount of it lately, too.&nbsp; They don’t call it money printing though, they call it “<strong><a href="http://en.wikipedia.org/wiki/Quantitative_easing" target="_blank">Quantitative Easing</a>.</strong>”&nbsp; (There’s a <strong><a href="http://www.youtube.com/watch?v=PTUY16CkS-k" target="_blank">really funny video here too</a></strong>).</p>
<p>There are definitely real “ripple effects” from money printing that are not so good:</p>
<ol>
<li>If they increase the money supply by 10%, that reduces the purchasing power of the dollar by 10%, because supply and demand applies to dollars too, and prices of goods rise by 10% on average in response to more dollars in existence</li>
<li>In other words, your dollars in the bank are now worth 10% less</li>
<li>Similarly, the wages you receive from your job (or Social Security) are worth 10% less</li>
<li>Even your investments (stocks, mutual funds, etc.) are worth less, unless they too appreciate by 10% as the money supply expands (which, actually, is reasonably likely)</li>
<li>This is called inflation</li>
</ol>
<p>So money printing is really just another form of taxation.&nbsp; It’s just a lot harder to connect the dots though, it’s a lot stealthier.&nbsp; Gasoline prices are higher?&nbsp; Blame the oil companies.&nbsp; Blame speculators.&nbsp; Just don’t blame the government’s stimulus packages ok?</p>
<h3>Side Note:&nbsp; “Reverse Robin Hood”</h3>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image7.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 10px 5px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" align="left" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb7.png" width="117" height="168"></a>Krugman’s book and blog are named “Conscience of a Liberal.”&nbsp; Some of his Nobel-winning work focused on rebuilding Haiti.&nbsp; He talks a lot about egalitarian redistribution of wealth to the average citizen.&nbsp; I don’t doubt that he’s sincerely trying to help people.</p>
<p>(And I, by the way, have no political affiliation – I don’t have a team that I root for, I actually think both of our teams here in the US are doing an equally awful job.)</p>
<p>So I wonder how he “squares” his egalitarian goals with these two facts:</p>
<p><strong>1) Wealthier citizens have a much easier time shielding themselves from inflation</strong></p>
<p>More sophisticated investors always do a better job outpacing inflation than the average citizen.&nbsp; So the average citizen bears a disproportionate share of the “costs” of money printing.&nbsp; The rich get richer, while both the poor AND the middle class get poorer.</p>
<p><strong>2) Newly-printed money tends to enter the economy through the financial system</strong></p>
<p>It’s a long story, but most newly-printed money goes to Wall Street before it goes anywhere else.</p>
<p>So again, money printing benefits the richest segment of society disproportionately – sure, their dollars are worth 10% less just like us, but their well-placed investments mitigate that, AND they receive the new money first.&nbsp; So their net wealth, in dollars, increases by more than 10%, and they actually come out ahead.</p>
<p>The rest of us pay the bill.&nbsp; This is so plain to me after a few years of reading that I wonder how it escapes him.&nbsp; Or maybe I am missing something crucial.</p>
<h3>#5 – Borrowed Money</h3>
<p>Here’s another way to “create” new money without just moving it around.&nbsp; Borrow it from someone else.</p>
<p>But actually that doesn’t create money either.&nbsp; It’s another transfer.&nbsp; In order to lend money to the government, I have to have excess money lying around.&nbsp; I COULD use that money to just buy goods and services, and that would have the stimulating effect that Krugman desires.</p>
<p>But instead, I loan it to the government (you hear about this all the time – it’s called “buying Treasuries” or “buying T-bills”) so THEY can take care of the stimulus distribution.&nbsp; It’s just another transfer within the system, no net gain in stimulus.</p>
<p>But there’s a catch:&nbsp; it’s a loan, with interest, and the government then owes me back more money than I gave them.&nbsp; Eek.</p>
<p>Even better:&nbsp; the people lending the most money to the government again tend to be the wealthiest individuals and institutions.&nbsp; So not only is borrowed money a “net zero” transfer within the system, it again disproportionately enriches the already rich.</p>
<p>Borrowing from other countries is a good trick in the sense that it is NOT a transfer within the system – money IS coming in from outside the system if it’s coming from China, as long as you view the US as a relatively closed system (which is at least partly true).</p>
<p>But since we have to pay it all back, with interest, we’re really borrowing from our own future.</p>
<p>Of course, there’s always the chance that we will NOT pay it back, as driven home by <strong><a href="http://www.liveleak.com/view?i=d9c_1258865433" target="_blank">yet another hilarious video</a></strong>.&nbsp; Then it truly is a Good Deal… for us.</p>
<h3>“Hey Rob, you got a problem with the rich?”</h3>
<p>Hell no.&nbsp; I’ve been working harder these past couple of years than ever before in my career, and it’s not just because I enjoy it.&nbsp; There are incentives for building a business from scratch like we are doing, if we are successful.</p>
<p>I actually think the whole “99% versus 1%” thing is quite misplaced.&nbsp; We should all be striving to BE the 1% – I’m not there yet, and maybe never will be, but I sure won’t feel guilty for trying.&nbsp; The things we do at <a href="http://pivotstream.com" target="_blank">Pivotstream</a> are quite productive and helpful to our customers.&nbsp; It’s easy for me to trace our benefit to those around us, and if we stopped benefiting them, that would be a bad sign for our business, as it should be.</p>
<p>I think a better framing of the battle lines would be the “99.99% versus the 0.01%,” or actually more accurately, “earned income versus unearned income.”</p>
<p>Look, Bill Gates and Steve Jobs changed the world emphatically.&nbsp; They truly earned their billions.</p>
<p>Similarly, I think “real” investors like venture capitalists also earn their money, as covered in my <strong><a href="http://www.powerpivotpro.com/2010/11/thanksgiving-thought-a-bi-pro-reflects-on-investing/">Thanksgiving post</a></strong> from two years back.</p>
<p>But money that is made purely in financial markets isn’t earned in the same way as money earned via those other methods.&nbsp; Financial market activity is a necessary lubricant, but then again so is the legal profession.&nbsp; If we woke up one day and found that the legal profession was nearly 15% of our economy, as is the case with Wall Street, we’d immediately understand that something was wrong.</p>
<p>And even better:&nbsp; unearned income is taxed at a much lower rate than earned income.&nbsp; Sometimes it’s not taxed at all.&nbsp; Warren Buffet paying less taxes than his secretary is a sign of a diseased system, one that incents the wrong things (creation and defense of wealth without proportionate benefit to society).</p>
<h3>What’s wrong with a loan, really?</h3>
<p>Businesses take loans all the time to get off the ground, or to expand operations in some significant manner.&nbsp; And society DOES benefit from that real growth.</p>
<p>So is it the same thing for the government to do that?&nbsp; Yes and no, is my answer.&nbsp; No because governments don’t typically allocate investment as effectively as the private sector, but yes because if they DO invest properly, sometimes the benefits can even be GREATER than if the private sector did it.</p>
<p>Common infrastructure like the interstate system for instance is not something the private sector ever would (or could) have built.&nbsp; Investments like that enable the private sector to then do things that never would have been possible before.</p>
<p>There certainly is a need for renewed investment in our infrastructure in the US (alternative energy and transportation come to mind, as well as improvements in education and job training).&nbsp; Have you noticed any big projects on the scale of mid-twentieth century investments like the interstate system or the space program?&nbsp; Yeah me either.</p>
<h3>The other problem with loans:&nbsp; exponentially-growing debt</h3>
<p>If you borrow from time to time in order to expand your company, and then the new productive capacity of your company lets you pay off that debt, great.</p>
<p>But if you start to use debt in an endless cycle, and you become dependent on it all the time, it will crush you.</p>
<p>Check out our US government debt:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image8.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 5px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb8.png" width="616" height="317"></a></p>
<p>It took over 200 years to amass our first $6T in debt, then about 8 years to amass the second $6T, and we’re on pace to continue.</p>
<p>My question to Krugman on debt, then, is “if this isn’t enough debt, how much IS?&nbsp; Would another $1T in loans and stimulus save us where the last six to ten TRILLION has not?”</p>
<h3>“Follow the goods and services, not the money”</h3>
<p>I think this is the most useful thing I have ever heard from an economist, but it wasn’t Krugman (I forget who, it was years ago).&nbsp; We get too distracted by money, which is really just a medium for exchange, a lubricant, for REAL economic activity.&nbsp; Real activity is all that truly matters, because money is worthless paper if you don’t exchange it for something real.</p>
<p>Take the example above:&nbsp; stimulus spent on infrastructure can enable further productive activity that was impossible before.&nbsp; <strong>Productive investments like that increase the size of the overall pie.</strong></p>
<p>By contrast, stimulus money that ultimately gets spent on new clothes, or a hardwood floor, or sports tickets, is <strong>just re-allocation of “wealth” within a pie of a fixed size.</strong></p>
<p>It’s the same with the earned/unearned income thing.&nbsp; Earned income is productive, unearned income is largely the art of siphoning wealth from the productive.</p>
<h3>“But Krugman Has a Nobel in Economics, Rob Has a Tech Blog”</h3>
<p>Fair point.&nbsp; I feel a bit weird about saying that this dude doesn’t know what he’s doing.&nbsp; But I really think he doesn’t.&nbsp; So why do I think someone that smart and that decorated can be so wrong?</p>
<p><strong>Too Much Greek in the Math, Too Much Ivory in the Tower</strong></p>
<p>If you crack open <strong><a href="http://www.princeton.edu/~pkrugman/debt_deleveraging_ge_pk.pdf" target="_blank">one of Krugman’s papers</a></strong> you are bound to see stuff like this:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image9.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb9.png" width="360" height="278"></a></p>
<p>Hey that’s fancy.&nbsp; This is a big part of the world he lives in &#8211; that paper is half equations.&nbsp; Go check his wikipedia entry – the man has never left academia.&nbsp; On matters of the economy, why we would ever listen to someone who has never “tasted” anything to do with real business, but instead wraps himself in equations all day long, is beyond me.</p>
<p>It’s ironic for me, former Calculus Team captain in high school and proud owner of a number-crunching career, to make fun of someone for loving them some equations.&nbsp; I debated grad school for awhile and almost went – if so, today I might be a lot like Krugman (only less decorated than he, and many times more bitter toward him).</p>
<p>But in my real-world experience with any form of complex system, the more “advanced” your equations become, and the less tempered they are by tangible experience, the more they diverge from reality.&nbsp; If we were interviewing him for the job of economic adviser, his ability to wow us with equations wouldn’t be enough.&nbsp; We’d want real answers to the sorts of questions above.&nbsp; And given that his Nobel was awarded by a committee who similarly has lived in “isolated equation land” their entire lives, you start to realize that this could very well be a subculture that is completely alienated from anything real, and simply rewarding one of their own.</p>
<p><strong>Too Little Friction in the Physics</strong></p>
<p>You see the part in the image above where he says “this can’t happen, so..”</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image10.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb10.png" width="179" height="134"></a></p>
<p>The paper is littered with stuff like that too.&nbsp; That, and “taking as a given,” and “obviously,” and other ways to describe critical assumptions.&nbsp; Papers like these are built on pyramids of those, and if any one of those assumptions proves to be untrue, even for a very brief period of time, it can all crumble down quickly.</p>
<p>It reminds me of high school physics, where half of the problems we had to solve started with “assume friction is zero” or “assume air resistance is negligible” or my personal favorite, “an object is moving through a vacuum…’</p>
<p>Great way to learn the theory, but you eventually have to deal with the dirty, noisy, friction-equipped real world.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/friday-bonus-what-is-stimulus-spending/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Beta-Testing the &#8220;ROI Quadrant&#8221;</title>
		<link>http://www.powerpivotpro.com/2012/05/beta-testing-the-roi-quadrant/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=beta-testing-the-roi-quadrant</link>
		<comments>http://www.powerpivotpro.com/2012/05/beta-testing-the-roi-quadrant/#comments</comments>
		<pubDate>Thu, 03 May 2012 16:48:58 +0000</pubDate>
		<dc:creator>powerpivotpro</dc:creator>
				<category><![CDATA[Observations, Trends, and Wild Speculation]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4197</guid>
		<description><![CDATA[&#160; (Size of circle = Usability and “Reach” of the Toolset) Time to Evolve a Longstanding Meme If you’ve been around Business Intelligence for the past ten years, you’ve seen a LOT of Gartner’s Magic Quadrant.&#160; You can see the 2012 version here on Microstrategy’s web site.&#160; (Microstrategy did very well on this year’s edition, [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<br /><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/PowerPivot-ROI-Quadrant.png"><img style="background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="PowerPivot ROI Quadrant" border="0" alt="PowerPivot ROI Quadrant" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/PowerPivot-ROI-Quadrant_thumb.png" width="521" height="358"></a></p>
<p align="center"><strong>(Size of circle = Usability and “Reach” of the Toolset)</strong></p>
<h3>Time to Evolve a Longstanding Meme</h3>
<p>If you’ve been around Business Intelligence for the past ten years, you’ve seen a LOT of Gartner’s Magic Quadrant.&nbsp; You can see the 2012 version <strong><a href="http://www.microstrategy.com/company/gartnerquadrant.asp" target="_blank">here on Microstrategy’s web site</a></strong>.&nbsp; (Microstrategy did very well on this year’s edition, so it makes sense that they display it).</p>
<p>The Magic Quadrant isn’t a bad tool for evaluating BI Vendors.&nbsp; I like anything that breaks us out of 1-dimensional thought (I’d love to stop talking about Left/Right, Liberal/Conservative for instance).&nbsp; And it’s certainly been a great tool for Gartner.&nbsp; It gets them a lot of attention every year, like clockwork.</p>
<p>But the more I use PowerPivot the more I realize that the magic quadrant is too limited to handle the changes we’re experiencing in the world of data.</p>
<p><span id="more-4197"></span><br />
<h3>Gartner Measures Product and Vendor <em>Capabilities</em></h3>
<p>Look at the axes on Gartner’s quadrant.&nbsp; They are “completeness of vision” and “ability to execute.”&nbsp; I know a lot of detail goes into each axis but essentially each axis measures feature set provided by the vendor – current features, ability to add the right kinds of future features, ability to support their product, ability to remain a viable business, etc.</p>
<p>Those are valuable things to measure but they are not the only things that are important.</p>
<h3>How About ROI?</h3>
<p>In essence, the Gartner quadrant is a 2d checklist/scorecard of features (both of the product and the vendor).&nbsp; Wouldn’t it be just as valuable to measure the average effectiveness and ROI as experienced by the customers of those vendors?&nbsp; I’m sure Gartner factors that in to an extent of course, but I want to go farther:</p>
<p><strong>I want ROI/Effectiveness to BE the axes on which we are measuring.</strong>&nbsp; That’s the only thing that matters, in the end.&nbsp; How effective is it for you, and how much did it cost you?</p>
<p><strong>And let’s face facts:&nbsp; satisfaction rates with BI tools and projects are almost universally low.</strong>&nbsp; So when you start down the road of evaluating BI tools, you are often trying to decide which one is going to “suck the least” for you.</p>
<h3>How About Tools That Aren’t Considered Traditional BI?</h3>
<p>There are a lot of tools out there to help you with your data.&nbsp; Not all of them fall under the heading of traditional BI tools.</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image6.png"><img style="background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb6.png" width="293" height="202"></a></p>
<p>Every day, organizations everywhere ask themselves not only the question “which BI tool for me?” but they also ask themselves “should we even try to get a BI tool in play here?”&nbsp; (Oftentimes they are even implicitly asking themselves that question, thousands of times a day, and implicitly answering with “no, we’ll stick with spreadsheets.”)</p>
<p>I get asked, all the time, how PowerPivot compares to normal Excel.&nbsp; How it compares to traditional BI tool X.&nbsp; How it compares to data mining.&nbsp; How it compares to custom-coded reporting solutions.</p>
<p>Invariably my answer includes a LOT more than feature set.&nbsp; I always come back to ROI.</p>
<h3>Example:&nbsp; Building Materials Distributors</h3>
<p>We’re currently writing a case study with Microsoft about one of our customers, Building Materials Distributors.&nbsp; I won’t share the whole thing here until it’s done, but here are some relevant highlights:</p>
<ol>
<li>They essentially had no BI capability two years ago.
<li>They&nbsp; purchased a number of solutions and none of them worked out.
<li>They evaluated Cognos, but simultaneously were intrigued by PowerPivot.&nbsp; The management team there thinks very critically and independently, with a ‘rubber meets the road’ mentality.&nbsp; So they decided to give us (and PowerPivot) a chance first.
<li>They got the results they needed, from <a href="http://www.pivotstream.com" target="_blank">Pivotstream</a>/PowerPivot, at a FRACTION of the cost of adopting Cognos.
<li>They did NOT hire any new staff to do this, and IT resources that would have been burned on BI were able to take on other critical projects.
<li>It wasn’t just better in terms of price though:&nbsp; they ended up getting BETTER INSIGHTS from <a href="http://www.pivotstream.com" target="_blank">Pivotstream</a>/PowerPivot than the goals they had set for Cognos.&nbsp; This was not something they expected from the “cheaper” platform.</li>
</ol>
<p>Shouldn’t we be talking about this sort of thing?&nbsp; And by the way, this isn’t rare.&nbsp; I see this everywhere I go.&nbsp; BMD happens to be a <em>textbook</em> case of it, but FAR from the <em>only</em> case.</p>
<h3>Questions for YOU</h3>
<p>First off, this is a beta <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/wlEmoticon-smile.png"></p>
<p>So I want your feedback:</p>
<ol>
<li>What should I name the four quadrants?
<li>I debated adding color to indicate feature completeness/maturity, what do you think?&nbsp; (I’d give PowerPivot a mid-range color – strong and mature thanks to Excel and SSAS’s rich histories, but younger in terms of other BI features like Mobile, number of web controls, embeddability, etc.)
<li>I decided against putting QlikView/TIBCO/etc. on the quad this time because I don’t know those tools very well and it would be hard for me to avoid some bias I think, but feel free to weigh in.
<li>What other tools should I include?
<li>Just general feedback/comments welcome too of course.</li>
</ol>
<p>Leave me a comment, or email me.&nbsp; I am Rob.&nbsp; At a place called Pivotstream.&nbsp; Dot com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/beta-testing-the-roi-quadrant/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Weighted Averages:  Another Use of SUMX()</title>
		<link>http://www.powerpivotpro.com/2012/05/weighted-averages-another-use-of-sumx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=weighted-averages-another-use-of-sumx</link>
		<comments>http://www.powerpivotpro.com/2012/05/weighted-averages-another-use-of-sumx/#comments</comments>
		<pubDate>Tue, 01 May 2012 16:09:24 +0000</pubDate>
		<dc:creator>powerpivotpro</dc:creator>
				<category><![CDATA[DAX]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4187</guid>
		<description><![CDATA[Another Question from the Mr. Excel Forums Got a question on the forums the other day.&#160; It took some extra twists and turns but the simplest version of the question is worth covering here:&#160; how do I perform a weighted average? Let’s say you have some data about ZIP (postal) codes in the United States: [...]]]></description>
			<content:encoded><![CDATA[<h3>Another Question from the Mr. Excel Forums</h3>
<p><strong><a href="http://www.mrexcel.com/forum/showthread.php?t=627574" target="_blank">Got a question on the forums</a></strong> the other day.&nbsp; It took some extra twists and turns but the simplest version of the question is worth covering here:&nbsp; how do I perform a weighted average?</p>
<p>Let’s say you have some data about ZIP (postal) codes in the United States:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb.png" width="612" height="256"></a></p>
<p>And you build a simple pivot that shows total population and median age for each ZIP, grouped by that last column, which is how fast the population of that ZIP is growing:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb1.png" width="415" height="401"></a></p>
<p align="center"><strong>Simple SUM Measure for Population, Simple AVERAGE for Median Age</strong></p>
<p>But that “Average Median Age” measure is just:</p>
<p><font size="3" face="Courier New">[AVERAGE MEDIAN AGE]=<br />&nbsp;&nbsp; AVERAGE(Zips[Med Age])</font></p>
<p>which treats all ZIP codes as equal, even if they have wildly different populations:</p>
<p><span id="more-4187"></span>
<p>&nbsp;</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="The Median Age of Very Low-Population ZIP Codes (Like Pop=277) is Counting Equally to Higher-Pop ZIP Codes (Like Pop=21484)" border="0" alt="The Median Age of Very Low-Population ZIP Codes (Like Pop=277) is Counting Equally to Higher-Pop ZIP Codes (Like Pop=21484)" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb2.png" width="441" height="264"></a></p>
<p align="center"><strong>The Median Age of Very Low-Population ZIP Codes (Like Pop=277)<br />is Counting Equally to Higher-Pop ZIP Codes (Like Pop=21484)</strong></p>
<h3>Correcting so that Median Age is Weighted by Population</h3>
<p>Let’s write a new measure:</p>
<p><font size="3" face="Courier New">[Average Med Age Weighted by Pop]=<br />SUMX(Zips, Zips[TTL Pop] * Zips[Med Age]) / [Total Population]</font></p>
<p>And then view the results:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="PowerPivot Weighted Average Measure Compared to Non-Weighted Average" border="0" alt="PowerPivot Weighted Average Measure Compared to Non-Weighted Average" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb3.png" width="559" height="346"></a></p>
<p align="center"><strong>PowerPivot Weighted Average Measure Compared to Non-Weighted Average</strong></p>
<p>And that is what we’d expect – since the smaller ZIP codes of population 277 and 427 both have very young median ages, they were “unfairly” skewing the subtotal younger.&nbsp; When overall, fast-growing ZIPs have a lower median age once you weight them for population.</p>
<p>Even cooler – I can remove the ZIP code field from the pivot and the weighted average measure still works:</p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="Weighted Average Measure Works Even When the &ldquo;Child&rdquo; Field (ZIPCode) is not on the Pivot" border="0" alt="Weighted Average Measure Works Even When the &ldquo;Child&rdquo; Field (ZIPCode) is not on the Pivot" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb4.png" width="576" height="184"></a></p>
<p align="center"><strong>Weighted Average Measure Works Even When<br />the “Child” Field (ZIPCode) is not on the Pivot</strong></p>
<p>For more information on SUMX(), <strong><a href="http://www.powerpivotpro.com/2010/02/sumx-the-5-point-palm-exploding-fxn-technique/">see this post</a></strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/05/weighted-averages-another-use-of-sumx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cloud PowerPivot: Free Trials for the Public</title>
		<link>http://www.powerpivotpro.com/2012/04/cloud-powerpivot-free-trials-for-the-public/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cloud-powerpivot-free-trials-for-the-public</link>
		<comments>http://www.powerpivotpro.com/2012/04/cloud-powerpivot-free-trials-for-the-public/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 16:55:27 +0000</pubDate>
		<dc:creator>powerpivotpro</dc:creator>
				<category><![CDATA[Pivotstream Tools and Software]]></category>
		<category><![CDATA[PowerPivot as Online Service]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.powerpivotpro.com/?p=4172</guid>
		<description><![CDATA[&#160; Actual Web Browser Screenshots of PowerPivot Sites:Example of Homepage (top) and Report Page (bottom) Want to see (and share) your workbooks on the web? For a few months now we’ve been running free 30-day free trials where you can: Upload workbooks to the Pivotstream cloud Interact with them in the browser Securely share them [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<br /><img style="background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/04/image31.png" width="521" height="291"></p>
<p><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/05/image_thumb5.png" width="552" height="254"></a></p>
<p align="center"><strong>Actual Web Browser Screenshots of PowerPivot Sites:<br />Example of Homepage (top) and Report Page (bottom)</strong></p>
<h3 align="left">Want to see (and share) your workbooks on the web?</h3>
<p align="left"><strong>For a few months now we’ve been running free 30-day free trials</strong> where you can:</p>
<ol>
<li>
<div align="left">Upload workbooks to the <a href="http://pivotstream.com" target="_blank"><strong>Pivotstream</strong></a> cloud</div>
<li>
<div align="left">Interact with them in the browser</div>
<li>
<div align="left">Securely share them with colleagues, even if they don’t have PowerPivot or Excel 2010 installed</div>
</li>
</ol>
<p><span id="more-4172"></span>
<p align="left"><strong>But we’ve been doing so in “low-profile” mode.</strong>&nbsp; Meaning, if you contacted us, you found out about the trial.</p>
<h3 align="left">I’m pretty stoked</h3>
<p align="left"><strong>I’ve been itching to announce the free trials</strong> so that you folks can try it out for quite some time.&nbsp; But I’ve been held up on two things.&nbsp; One is that we needed a revised and updated version of our brochure/tech specs document.&nbsp; It’s done now and linked below.</p>
<p align="left"><strong>The other obstacle was a debate</strong> over the perceived need to “qualify” people as business opportunities before providing a trial.&nbsp; I’ve been pushing for a much more open process and eventually won people over.&nbsp; If you try it out now and decide that you don’t need something like this yet, no problem.&nbsp; I’m happy to expose people to the benefits of the web publishing experience, period.&nbsp; And I know that later on, when your org is ready, you’ll likely remember us.</p>
<p align="left">Besides, this stuff is just fun <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.powerpivotpro.com/wp-content/uploads/2012/04/wlEmoticon-smile3.png"></p>
<h3 align="left">Caveat:&nbsp; No PowerPivot V2 Workbooks Until Next Month</h3>
<p align="left"><strong>Because we operate a service for thousands of users,</strong> we have to be very careful about rolling out new software on the servers.&nbsp; There are a million moving parts in a software project like PowerPivot 2012 and we can’t just flip the switch – we need to validate many production scenarios in a test environment first.</p>
<p align="left"><strong>That whole validation process is underway right now</strong>, but it takes time to do it right.&nbsp; Sometime next month, we will be able to offer trial sites where your V2 workbooks function properly.&nbsp; For now, all workbooks need to be produced in V1.</p>
<p align="left">So if you’d like to sit tight and wait for V2 support on the server, I get that.&nbsp; I will make another announcement here when it’s ready.</p>
<p align="left"><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/04/image33.png"><img style="background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.powerpivotpro.com/wp-content/uploads/2012/04/image_thumb23.png" width="511" height="233"></a></p>
<p align="center"><strong>Workbooks Built in Version 10 (V1) Work on Our Servers Today<br />Workbooks Built in Version 11 (V2) – Wait for Next Month</strong></p>
<h3>Getting Started</h3>
<p><strong><a href="http://www.powerpivotpro.com/wp-content/uploads/2012/04/Cloud-PowerPivot-Brochure.pdf">Download brochure from here</a></strong> for more info on the full solution (not just the trial).</p>
<p><strong><a href="https://insights.hostedpowerpivot.com/sites/Demo/Pages/default.aspx" target="_blank">View some live demos here</a></strong>, on a live cloud PowerPivot site.</p>
<p>Email <a href="mailto:trials@pivotstream.com"><strong>trials@pivotstream.com</strong></a> to get started.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.powerpivotpro.com/2012/04/cloud-powerpivot-free-trials-for-the-public/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

