Excel 5-Calendar Date Table

May 17, 2012

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 scenario involves working with a data warehouse directly, and I simply wanted a “portable” date table. I found very little online, the best perhaps being this Excel table offered by the Kimball group (the table has been expanded since I originally downloaded it). I could have modified the Kimball table for my particular needs, but I decided to create one from scratch.  Late last year, Rob posted an article titled the Ultimate Date Table, which is available from the Azure Marketplace. I considered using this table instead of the one I was building in Excel, but the “Ultimate Table” lacks fiscal periods. Much of the analysis work I do includes fiscal periods.

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,  a thought struck me – why not duplicate the functionality of the Date Dimension Wizard using nothing more than Excel formulas? Hence, my  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 & 1b show the first two steps of the wizard.

SNAGHTML2b298f56

Fig 1a – Date Dimension Wizard Step 1

 

SNAGHTML2b2aeb0c

Figure 1b – Date Dimension Wizard Step 2

 

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 consistent 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.

 

image

Figure 2 – Excel Date Table Configuration Options

 

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.

Anyone interested in using the date table can download it here. The workbook includes detailed information and instructions regarding the use of the table.


Commission Calculations in PowerPivot Part 2

May 15, 2012

Guest post by David Churchward [Twitter]

Team and Manager Commissions Report

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 commission calculation, providing a different value for individuals and the team manager.

Where are we?

Just to recap, we got to the point in my last post where we had calculated [Sales_Value] and [Comm_Rate] as below:

Read the rest of this entry »


You’re STILL Using Excel to Manage Commissions?

May 11, 2012

 
This was sent to me yesterday by a colleague, appropriate given yesterday’s post:

clip_image001

Why yes.  Yes we are.  More effectively every day in fact.


Commission Calculations in PowerPivot

May 9, 2012

Guest post by David Churchward [Twitter]

Commissions Report

Firstly, I have to be clear that I’m not presenting a “one-size-fits-all” approach to sales commission calculations here.  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!  However, I’m presenting an approach here that will hopefully provide a template approach that can be modified to a number of different scenarios.

The Target Outcome

The scheme that I’m using in this example operates as follows:

  1. Commission is paid monthly based on the achievement in that month
  2. As a salesperson sells more, then accelerators trigger.  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.  The 2% is payable on the whole value.  Therefore, if a salesperson sells £11,000 then they would receive 2% of the full £11,000
  3. Percentages and bands can change monthly at management discretion
  4. This is a monthly threshold so each salesperson is reset to zero at the start of each month.
  5. Each product group carries a separate set of bands and rates
  6. Managers receive commission at a different rate to the sales team based on the total sales for their team.

Read the rest of this entry »


Mini-Post 2 of 2: PivotLink, Birst, QlikView, and “Desktop-Only” PowerPivot added to ROI Quadrant

May 8, 2012

 
PowerPivot ROI Quadrant2

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.  Your input has encouraged me to keep refining and updating the chart. 

Based on your feedback, there are now a few additions in the version above:

  1. Desktop-Only PowerPivot
  2. QlikView
  3. Birst
  4. PivotLink

I’ll briefly explain the rationale for each.

Read the rest of this entry »


Mini-Post 1 of 2: A “Better” Version of TODAY()

May 8, 2012

 
image

Two mini-posts today:  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 calculate things like “how much of the current month has already elapsed” for instance.

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.  So TODAY() becomes pretty worthless for that.

So, what do you do?  I’ve recently started using a simple trick that I like better than my past approaches, so I thought I’d share it.

Read the rest of this entry »


Friday Bonus: What is “Stimulus Spending?”

May 5, 2012

 
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.  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 blog right? Smile

Nobel Economist Paul Krugman Wants More “Stimulus Spending”

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

Stimulus spending is generally Mr. Krugman’s preferred fix for the US (and world) economy.  Lately, he hasn’t been getting enough of it so he is on tour these days demanding more.

What exactly IS stimulus spending?  Fundamentally it means “the government spends or gives away money.”  The idea is that by injecting new money into the economy, it can kickstart a benevolent cycle that sustains itself:

Read the rest of this entry »


Beta-Testing the “ROI Quadrant”

May 3, 2012

 
PowerPivot ROI Quadrant

(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.  You can see the 2012 version here on Microstrategy’s web site.  (Microstrategy did very well on this year’s edition, so it makes sense that they display it).

The Magic Quadrant isn’t a bad tool for evaluating BI Vendors.  I like anything that breaks us out of 1-dimensional thought (I’d love to stop talking about Left/Right, Liberal/Conservative for instance).  And it’s certainly been a great tool for Gartner.  It gets them a lot of attention every year, like clockwork.

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.

Read the rest of this entry »


Weighted Averages: Another Use of SUMX()

May 1, 2012

Another Question from the Mr. Excel Forums

Got a question on the forums the other day.  It took some extra twists and turns but the simplest version of the question is worth covering here:  how do I perform a weighted average?

Let’s say you have some data about ZIP (postal) codes in the United States:

image

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:

image

Simple SUM Measure for Population, Simple AVERAGE for Median Age

But that “Average Median Age” measure is just:

[AVERAGE MEDIAN AGE]=
   AVERAGE(Zips[Med Age])

which treats all ZIP codes as equal, even if they have wildly different populations:

Read the rest of this entry »


Cloud PowerPivot: Free Trials for the Public

April 26, 2012

 
image

image

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:

  1. Upload workbooks to the Pivotstream cloud
  2. Interact with them in the browser
  3. Securely share them with colleagues, even if they don’t have PowerPivot or Excel 2010 installed

Read the rest of this entry »