PowerPivot for SharePoint Video

January 28, 2010

Royale with Cheese

“You know the funny thing about Europe?  It’s the little differences.  I mean, they got the same shit we got here…  just a LITTLE different.”

-Vincent Vega

Greetings from Stockholm!  This place…  I never want to leave.

Many firsts have been recorded here.  My first-ever presentation to a large audience outside the states.  First time having dinner in a restaurant straight out of a 1930’s Hollywood movie.  First time seeing an American guy, a British guy, a Japanese guy, and a Norwegian guy all get tossed out of a hotel bar for being drunk.  First time getting half-trapped by a blizzard in a foreign country.

…and oh yeah, my first time having a mandatory, cannot-postpone-it Windows Update pop up near the end of a presentation and occupy my demo laptop for a full hour.

You can’t make this stuff up.

I have to hand it to Marcus Gullberg and company from MS Sweden though, as well as Johan Åhlén and the entire Swedish SQL Server Users group.  The former for their quick improvisation – finding an Amir Netz video of the SharePoint stuff I was unable to show, and the latter for their patience and excellence questions while we figured it out.  It ended up being pretty funny, actually.

Their loss yesterday is now your gain – as a make-up, I recorded a video of the stuff I couldn’t show yesterday, and posted it to YouTube.

(This also marks my first-ever recording in another country).

Oh, and you know what they call a Quarter Pounder, in Sweden?

A quarter pounder.


OMG It’s a Naked Donald Farmer!

January 25, 2010

In my first split-second glimpse of this video, my brain registered the oddly-plausible observation:

     “Donald is not wearing any clothes.”

In the next split-second, a tangential observation:  “…well, except for the necklace.  Nice touch, Donald.”

Donald Farmer Organic Outerwear Inc.

OK, so he IS wearing clothes.  That shirt is just incredibly well-matched to his skin tone.

But for those of you who know him, or have attended his talks, you will agree that naked webcasts are not 100% out of the question :)

Another interesting note:  those paintings in the background.  While I did not see those particular works prior to my move last summer, based on other examples I can say with certainty that those were painted by Donald’s wife. 

I certainly miss interacting with Donald and many other unique people back there in Redmond.  Leaving Seattle has deprived me of the company of such interesting folks.  Almost makes me resent my ex for leaving with the kids, cough cough.

The Alpha Geek Challenge, Fabulous Prizes

Donald is appearing in a new series of videos because there is a contest afoot!  I’ll let the ExceleratorsQuiz site speak for itself:

The PowerPivot Team wants to see what you’re made of! Over the next few weeks, Donald Farmer will be issuing Business Intelligence challenges for you to solve using the new add-on PowerPivot for Excel. Three finalists will receive a $250 Microsoft Store shopping spree, and one lucky Grand Prize winner will receive an all-expenses paid trip to the 2010 Microsoft BI Conference in New Orleans, LA from June 7-10th!

So…  view the challenge site here.  And view Donald’s video here.

(And tell me that Donald does not remind you of a Scottish version of Tommy Chong).


Pulling back the curtain: Intro to Cube Formulas

January 18, 2010

OK, last week I showed you a parameterized PowerPivot report that contained no pivots anywhere.  How did I build it?

Best Tutorial:  Start with a Pivot

The easiest way to show you is to start with a PivotTable, even though once you’ve mastered this technique, you won’t always want to start this way. 

Here I’ve got 4 measures from the Plays table broken out by ‘Clean Players’.[FullName], and the report is sorted by the [Rushing Yards] measure:

basic pivot

First, I want to get rid of that blank value at the top – over the years, an awful lot of “nobodies” amassed a lot of stats, and apparently STATS did not care enough to capture their names.  Accordingly, I don’t care enough to want them in my report.

Filter Out Blanks

So, I’ll just filter them out.  Easy enough, as shown here at right.

But I also want to limit my report to the top 20 players.  How do I do that, now that I have already applied a filter to this field?

When I try to add a Top 10 filter to this field, it clears my filter that removed the blank, and I get that blank, unknown player back in the report.

So how do I do this?  Well, I use a feature of PivotTables that Allan Folting argued for, and I argued against, back in 2006.  He was right, I was wrong, and the feature has helped me numerous times since :)

That feature is hidden under the Options button on the PivotTable Options ribbon tab.  It defaults to off.  Once enabled, I can go back to the Pivot and add a Top 10 filter, set to show the top 20 players as sorted by Rushing Yards:

Multiple Filters Per Field    

Checking that checkbox allows me to then add my Top 20 filter on top of the original:

Top 20

Then I add some slicers, which yields the basic starting point that I want:

top 20 results

Enough with the pivot, Rob! We want the pivot-LESS report!

Indeed.  Time to blow this pivot into a hundred pieces.  Literally.

On the Pivot Options tab of the ribbon, under a dropdown called OLAP Tools, there is a button named “Convert to Formulas.”  On normal pivots, this whole dropdown is disabled…  because normal pivots are not OLAP pivots.

But PowerPivot-backed pivots are OLAP, because under the hood, the PowerPivot db engine is an OLAP engine.  So this button is enabled:

OLAP Tools Convert to Formulas

Watch what happens when you click that button:

Recap

Briefly, let’s recap what we see in the video:

  1. Every cell in the pivot has been converted to a formula
  2. Each formula returns the same result that the cell previously contained (when it was part of the pivot)
  3. Slicers still work – the formulas return different numbers reflecting slicer selections
  4. The formulas can be treated just like regular spreadsheet cells – moved, rearranged, deleted, etc.
  5. There are two functions involved – CUBEMEMBER() and CUBEVALUE()
  6. Generically, we call this feature “Cube Formulas”

Cube Formulas are NOT DAX!

I know that cube formulas are new to most of you, and seeing how I am introducing them in the context of PowerPivot, it’s natural to suspect that these formulas are part of DAX.

But they are not.  They are built-in to regular Excel and are there before you install PowerPivot.  Remember, DAX can only be used on tables in the PowerPivot window, and in the New Measure dialog.  DAX cannot be used in normal Excel spreadsheet cells.

Cube formulas are just another way for Excel to interact with certain kinds of data sources.  And PowerPivot is one data source that qualifies.  That’s good news for Excel pros – a brand-new way to build reports.  It’s a free benefit of PowerPivot :)

CUBEMEMBER() and CUBEVALUE()

As shown in the video, let’s inspect the formulas in three specific cells to show you what’s going on here. 

First, the Edgerrin James label cell:

Edgerrin James CUBEMEMBER

Brushing over syntax for a moment, that formula says “this cell now represents Edgerrin James” – the string “Edgerrin James” was returned from the PowerPivot database in fact.

Then the “Rushing Yards” header cell:

CUBEMEMBER Rushing Yards Measure

Again brushing over syntax, that formula means “this cell now represents the Rushing Yards measure.”

And lastly, the 9842 value, which is Edgerrin James’ total Rushing Yards:

Rushing Yards CUBEMEMBER

I put this one in edit mode to show you that it references the Edgerrin James and Rushing Yards cells.  So this CUBEVALUE formula shows the intersection of Edgerrin James, and Rushing Yards, just like it did in the PivotTable.

Notice how it also references the two Slicers.  That’s how the formula returns different values as the slicers are manipulated.  Again, just like it did in the PivotTable.

More to come

Cube formulas are indeed the core trick behind my “pivot-less” report.  But there are several elements yet to be explained, like the parameterization, and even more importantly, how the sort order of the report can change in response to parameters and slicers.

I also want to show you what happens with this report when published to SharePoint.

I think this is enough for one post though :)


Mr. Excel joins FAQ moderation team

January 14, 2010

Folks, we are blessed to now have the famous Mr. Excel himself, Bill Jelen, contributing to the PowerPivot FAQ.  He is our first hardcore Excel pro (other than myself, cough cough) on the moderators team, so we are clearly setting a high bar here :)

Not only does he bring many years of Excel expertise (check out a selection of his books here on Amazon), but he also brings a certain flavor of dry wit that is quite refreshing.  For example, here’s one of the many FAQ items he has already submitted:

PowerPivot with Dry Northeast Ohio Wit

Welcome Bill!

To see Bill’s many contributions to the FAQ so far, click here.  To see the unfiltered FAQ, click here.


The bug count also rises

January 14, 2010

blaine-and-vulcan-in-predator

“I will do it for Prado, who was once great with the bugs. I will do it for the time we filled Prado’s office with bouncy balls, and for the time Prado wore his nerf weapons in the marketing hall and slew all of them with no fear and only a great joy at the combat.”

After last night’s post where I related the story of an engineer (me) savaging a marketer, I couldn’t resist sharing this story that appeared in MicroNews (the MS internal newsletter) during my first year at Microsoft.  It was a contest – write a (hyper-short) software story in the style of Hemingway.

 

The whole story is here, and is only about half a page.  Well-worth the read:

http://www.workpump.com/bugcount/bugcount.html 

That half-page work of fiction – both its mere existence and its contents – is also a glimpse into what I would call “old Microsoft,” which I basically caught the tail-end of.  Good times.

John Browne, author of software Hemingway without peer, I salute you, and am grateful I could find your fine work preserved on the web.  Oh, and I include your requested link to the copyright license.


Visitors Map

January 13, 2010

True Story:  One time in my mid-twenties, I was sitting in a meeting with members of the marketing team, and was the only engineer in the room.  We were planning a strategy that impacted the entire Office suite.

One of the marketers suggested that we focus solely on the needs of Word/Outlook/PowerPoint, and not worry about Excel/Access, because “not many people care about those apps, anyway.”

…to which I deadpanned, in my most biting sarcastic tone, “Yeah, totally, only those people who care about numbers.”

In hindsight, that was not my finest moment.  In those days, the marketing org was a bit of a shark tank.  Highly competitive and cliquish, where reputations could turn on a dime.  A dressing-down from the prod-dev org such as the one I delivered, in front of your marketing peers, was not something you could easily recover from.  There was much laughter in the room, by the many, at the expense of the one.

That marketer wasn’t around much longer. 

Like I said, I was in my twenties, and while I believe I am sharper today, I definitely had sharper edges back then.  I hope I would handle that situation more diplomatically today, but I can’t really be certain.  I mean, the nastiness of my reply was exceeded only by the ridiculousness of the original statement :)

OK, that’s a long but hopefully interesting/amusing preamble to the following statement :)

PowerPivot is an international topic

Or…  “Hey look!  People worldwide are interested in numbers!” :)

As always, new MS products get the most initial “noise” in the US, but if you look at a map of recent visitors to this site and the FAQ, you’d never guess that:

PowerPivot is an International Thing

I just thought that was neat.  And if I snapped this picture early in the morning before the US wakes up, it would skew even more international.  My free logging service only keeps the most recent 500 hits.

Anyway, I thought you might want to see that.

…and dear ex-MS marketer:  if you happen to be out there today, reading this blog about numbers, please accept my apologies :)


Not your average PowerPivot report

January 13, 2010

Thats not a PowerPivot Report

“THAT’s not a PivotTable!  Oh wait…”

-Bill Gates

(OK, so I turned it into a movie quote of sorts by using the picture of Anthony Michael Hall playing Bill Gates in “Pirates of Silicon Valley.”  Was that a good casting decision?  I’m torn between “yeah it was OK I guess” and “well it WAS made for TV.”)

Setting that aside, the real Bill Gates DID in fact say that when we first showed him the new PivotTables in Excel 2007.  Prior to that, the appearance of a finished PivotTable was something that the average user found off-putting and geeky.  So we were pretty happy with that response to the new look.

PivotTables (and PivotCharts) have come a long way.  A few clicks and you’ve got a very professional and customized report.  But there are, of course, still cases where you need an even greater level of control than what pivots can give you.  The good news is that if you find yourself in one of those cases, you still have other options.

Excel Pros – Do NOT tune out!

Excel pros are probably thinking “yeah, Rob, I know all about those other options.  You make a PivotTable, you hide it on another sheet, and then build a report sheet using formulas, etc.”

I have a trick up my sleeve today, though.  I bet most Excel pros have NOT seen what I am about to show you :)

Here it is – Not Your Average PowerPivot Report!

 

(You’ll need to crank your volume up – I got a new mic and need to adjust its sensitivity).

Summary of what’s in that report

  1. PowerPivot-Backed – this report is indeed a PowerPivot report.
  2. No PivotTables anywhere – that’s right, there isn’t a pivot in the entire workbook!
  3. Custom formatting – I split the report body with horizontal and vertical dividers, and could place them wherever I wanted.
  4. Parameterization – users can play “what if” by changing input cells.  A numeric column in the report responds to those changes in realtime.
  5. Sorting – the report is dynamically sorted by that numeric column in #2.  Change a parameter, and the report re-calcs AND re-sorts.
  6. Respects slicers – all columns in the report respect the slicers on the page as well.  This also impacts the sort order of the report.

How it was done

I’m going to go through it step-by-step in the next few posts.  Yes, I am deliberately teasing you :)


Slicers and Multi-Touch!

January 12, 2010

(It’s multimedia day today).

This video has been out there for awhile, but I saw it go by again today on Twitter and realized a lot of people probably haven’t seen it.  Imagine what a PowerPivot app can feel like with a multi-touch enabled Win7 PC.

OK, stop imagining and just watch this short video :)


Podcast with Ross McLean

January 12, 2010

Yesterday was the first time I was ever translated into Portuguese

Today, let’s follow that up with my first-ever transcontinental interview :)

I sat down (virtually) with Ross McLean of Methods in Excel.  Naturally, we talked PowerPivot.  Along the way he made me sound like a virtuoso with a hockey stick.  Savvy readers of this site should not be fooled.

This chat was very much geared around “I am an Excel pro, what does PowerPivot offer me?”  Excel pros should find it interesting for that reason.  BI pros should hopefully find it interesting because the Excel pros are your partners in PowerPivot – always good to know how to better engage with them.

PowerPivot MIE Podcast

Click the image or click here for the interview


Announcing our esteemed FAQ moderators!

January 11, 2010

I was quite pleased with the response to my call for volunteer FAQ moderators.  I am very excited about the number of people who signed up, as well as the diverse backgrounds and skillsets represented.

Even more exciting, though, was the enthusiasm of the responses.  People really went to the mat explaining why I should pick them.  I felt awkwardly empowered, like I was throwing out beads at Mardi Gras or something :)  Enthusiasm goes a long way in my experience, and given the level of it that I saw, I did not have to say no to anyone, which is fabulous :)

So here are your humble volunteers in alphabetical order (by first name):

PowerPivot FAQ Moderators

Contact info for all of the moderators can be found here.

How you can help

1) If you have a question that is not answered in the FAQ, let one of us know.  You have lots of people to choose from now :)

2) If you see an item in the FAQ that could be improved or clarified, again, let one of us know.

3) Help spread the word.  If you see a question asked somewhere else, and you know that the FAQ answers it, please post a link in that forum, linking over to the FAQ item that answers it.  Or if you participate in a forum or event where you think people might want to know about the FAQ, please share it.  Blog it.  Help us get the word out.

4) Be kind to the volunteers.  Maybe even drop them a note of thanks if one of their FAQ items improves your day :)