Yep. 11/18. At http://powerpivot.com
If you’re arriving at my site for the first time, I suggest you check out the following for CTP3 inspiration:
And any questions, please post as comments
Yep. 11/18. At http://powerpivot.com
If you’re arriving at my site for the first time, I suggest you check out the following for CTP3 inspiration:
And any questions, please post as comments
Up until this point, I’ve just used DAX (PowerPivot’s extension to the Excel formula language) to create calculated columns in the PowerPivot window.
There’s a lot of utility in DAX calc columns, but that’s not where DAX really shines. DAX measures let you do things in Pivot reports that simply weren’t possible in Excel before.
In the last video, I mentioned that merely showing raw sales amount didn’t really tell me whether my products sold better or worse in varying temperatures, since there are varying numbers of days of each temperature – perhaps the relatively low sales on Hot days is just because there weren’t many Hot days?
Enter DAX measures, a PowerPivot feature on par with relationships, slicers, and mashups. But you might overlook them on a casual tour through the PowerPivot for Excel addin, since they live behind a single ribbon button.
DO NOT OVERLOOK DAX MEASURES! There is literally a world of power lurking there. I want to make absolutely sure that you grasp them – both their power as well as the “how to,” so I will spend the next couple of posts on them.
Awhile back I asked for feedback on which format was preferred – text and screenshots, or videos. Videos got more votes, by about two-to-one. But my text-and-screenshot posts are getting more views than my video posts.
Clearly, those of us who are too busy to watch videos are also too busy to respond to surveys
I respect that – personally I think I prefer to consume text and screenshots over videos. A video seems like a commitment, whereas scanning text is on my terms, even if on net I spend the same amount of time on either. So here is my new philosophy, always subject to revision:
So, I’ll share the videos first, and a summary after.
(These are the fixed versions from 11/24/09)
Just a reminder that the temperature data I used in last night’s video is available here. Have fun
(I’ll post the full PowerPivot workbook, too, once CTP3 is released).
The Excel blog has been on a tear recently. Someone must’ve lit a fire under those guys. (Colin? Are you happy now? C’mon, you’re excited!)
Great post on Dashboard-related improvements in 2010:
With everyone getting their hands on CTP3, I decided to take a short break from the football project and show something else that may spark you to try things you otherwise might not.
So, let’s go behind the scenes of the Temperature Mashup example (that’s mentioned here and here).
Part One:
Part Two:
Briefly, here are the steps covered in the videos:
Using DAX to create a “Sales per Day” measure!
I’ve spent a lot of time the last two days recording PowerPivot videos – some for this site, and some for a special project. Today when I uploaded them to YouTube, well, I discovered I’d used too fine a resolution, and you can’t read anything in the formula bar.
Are formulas really all that important in an Excel environment? I was one sad dude when I saw what I’d done.
Good news: re-recorded two of them. They are uploading now.
Got frustrated with my upload speeds just now, decided to try my hand at the ever-popular “complaint tweet” – really it seems like this is 90% of the traffic on Twitter:
The immediately realized I no longer live in Seattle, and have a different provider:
Turned out, immediately is not fast enough these days. Literally one second later, this pops in:
Never heard of this person. Total shock. Of course the only natural reply was:
Serves me right for contributing to noise
I’ll say this, though: that’s an amazing customer service method. She’s just scanning all day for mentions of her company and pouncing on them to help. Wow. She then proceeded to tell me to check my modem’s web page for upload/download speed…
…but I think my first use of said modem is going to be to find a service with better upstream bandwidth
(I’m working on several meaty videos at the moment and you should expect a lot of content to show up in the next few days. In the meantime I’m gonna post a few quick-hitters to keep things fresh).
I get this question a lot: “Wow, this PowerPivot stuff is hot, but it’s gonna be forever before I can get my company/customers to upgrade to Office 2010 – they just now finished rolling out 2007!”
Fear not.
Yes, the Excel power users that are designated as PowerPivot authors – they need Excel 2010. But no one else does. And even those Excel power users can install 2010 side by side with the corporate standard version of Office.
SharePoint 2010, of course, is required on the server, and typically, servers are faster to upgrade than desktops… by a lot. But even on the server, you don’t have to upgrade the entire SharePoint universe – as the Bing case study showed, you can deploy your own departmental PowerPivot server with ease. (In Darinee’s case, it’s under her desk).
Two new links – one to the official Excel blog, and one to Shahar Prish’s personal blog. Definitely check out Shahar’s blog – he’s a bit of a Renaissance man… one of the big brains behind Excel Services, but also one of the co-inventors of the method that enabled us to embed the PowerPivot db directly in the Excel file, which makes him a personal hero of mine
Excel blog post: http://blogs.msdn.com/excel/archive/2009/11/09/excel-services-in-sharepoint-2010-rest-api-examples.aspx
Shahar’s blog: http://blogs.msdn.com/cumgranosalis/
A quick update here on the football project (not really warranting a video). The source db is awfully complex, and I’m in the process of wrapping my Excel-centric head around it.
For instance, in the Plays table, I’m trying to understand how many row constitute a single NFL play. It’s not one row per play – no, that would be too simple.
Here, for instance, is a field that claims to be a unique play ID, but when I sort by it, it clearly isn’t:
With the table sorted, though, I notice that there are multiple SeasonNumber values corresponding to PlayUniqueID = 1:
…so I add a calc column concatenating the two, with renewed hopes for uniqueness:
And… curses, no such luck:
At this point I realize that there really just are multiple rows per real event. There are other columns in there that I suspect are crucial: PlayerRole, PrimaryRole, etc. – all with integer values, sadly.
The good news, though, is that those integers are ID’s, and they reference into other tables that I are related to the Plays table. Once those relationships are set up, I can exploit a new function added by PowerPivot.
To gain some more understanding about how this table works, I decide to lean on a familiar Excel trick and just add some more columns, VLOOKUP-style, but using the new DAX function named =RELATED()
Check that out – it’s a single-parameter function! I just say, “hey, go get me this column from this related table,” and off it goes to fetch the values that match the row from the current table, using the relationship.
The equivalent VLOOKUP would be something like:
=VLOOKUP([PlayerID, CleanPlayers, 2, FALSE)
…and if the PlayerID column wasn’t the first column in the CleanPlayers table, well, it flat-out wouldn’t work.
Those three =RELATED() formulas yield:
Ok, this gives me some hope of figuring things out. (Steve Martin’s presence confuses me, though…)
I may or may not keep these columns in this table when I am done, since they are NOT required – I can build reports using the original fields in those other three tables, combined with fields from the Plays table, as demonstrated in previous posts. This is just a temporary convenience for exploring this table.
Note that Excel users work like this all the time. I kinda doubt DBA’s frequently add columns like this, expecting to just remove them shortly thereafter. But here I am, working with an environment that conveys real database advantages, but I’m still doing my informal, explore-and-experiment Excel shtick. I love it.
Next Football Post: The Greatest Function in all of PowerPivot >>