Minimize
28

  

PowerPivot Data + Cube Formulas = a powerful combination
 

 

One of the interesting things about PowerPivot is that it really is, under the covers, an instance of SQL Server Analysis Service.  And because of this we get some features for ‘free’, features that already work nicely and reliably in the traditional SSAS engine.  One of those features is the interactive functionality between Excel and the cube, and specifically - Excel Cube functions.  These are functions that allow us to build highly customized SSAS connected Excel based reports, well beyond any inherent limitations of pivot tables.  You may have seen these formulas automatically generated by Excel, when selecting the option to convert an SSAS connected Pivot Table to formulas (via the OLAP tools menu) - 

 

 

 

 

 

 

 

 

Two great advantages of using these functions are that we can build highly customized, asymmetric reports and that we can use MDX functionality to query either a traditional SSAS cube or the in-memory Vertipaq engine.   

The term "Excel functions" and "Excel formulas" is sometimes used interchangeably.  Excel Cube functions are the 7 built-in functions available in the formula bar, under the 'Cube' category;  Excel cube formulas are cell formulas that use cube functions in order to achieve dynamic query behavior to the Analysis Service instance.

 


But how?  If PowerPivot is loading data in-memory in what looks like a relational schema (one tab for each table), then how is it that we connect to a ‘cube’?

 

 

Well, PowerPivot (or Vertipaq, shall we say) builds an in-memory OLAP cube.  You can see this when running DAX queries against the PowerPivot data, Excel displays a ‘Running OLAP query’ message on the status bar. (It really is, when you think about it, an amazing technology… cubes are embedded in the workbook!)

Anyhow, going back to topic – cube formulas.  PowerPivot creates an embedded connection to the in-memory data. You can see the connection string under the data tab in the Excel ribbon.  Select connection and you will see one called ‘PowerPivot Data’.  This was automatically created when importing data via the PowerPivot window.

 

When building customized Excel reports, you can retrieve data from this source with any of the built-in Excel Cube functions. 

PowerPivot applications... without Pivot tables!

Cube formulas are good to build custom reports that are difficult to create with standard pivot tables, yet still leveraging the functionality of being connected to the database (in the case of PowerPivot, the in-memory Vertipaq database).  We can also leverage DAX measures, and execute them through Cube functions outside the pivot table.

I the next following posts I will go over a sample report, highly customized to create the type of business reporting that decision makers would want to see. The example uses the new Microsoft business intelligence database, Contoso Retail DW (available for download here), and leverages some of the interesting features of PowerPivot and Cube functions to build Excel reports that require functionality beyond what is normally exposed through pivot tables.

Posted in: Blog

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

LatestArticles Minimize
Changing Granularity of Leaf Level Calculations in SSAS Tabular by Jason Thomas

Finding Nearest Stores using SSRS Map Reports by Jason Thomas

Heat Maps for SSRS using Map Control by Jason Thomas

Parameters for Analysis Services Reporting: Introduction, Pt. 3 by William Pearson
BI Architect Bill Pearson continues an extended examination of parameterization within Analysis Services reports. In this, Part 3 of the article, we continue to get hands-on practice cr...

Parameters for Analysis Services Reporting: Introduction, Pt. 2 by William Pearson
BI Architect Bill Pearson continues an extended examination of parameterization within Analysis Services reports. In this, Part 2 of the article, we continue to get hands-on practice cr...

Using Annotation Tables in SSAS to Show Last Processed Time and Latest Data Updates as a Measure in a Cube by John Hall

Using Color in SSRS Charts by Melissa Coates
Effective data presentation techniques help users  interpret information quickly and reliably.  Layout, formatting, sizing, labeling, and other report elements may all be used to facilitate ...

Is TOAD faster than BIDS Query Builder? by John Hall

SSRS: Unexplained Warning “This field is missing from the returned result set from the data source” And Checking a Field for Null Exception by John Hall
If you ever see the warning message “This field is missing from the returned result set form the data source” and get unexplained #Errors in columns on your report it may be from SSAS not returning a ...

Beyond Excel pivot tables: Leveraging cube formulas with MDX by Javier Guillen
PowerPivot and DAX are a powerful technologies, but there is still a good amount of work that can be done with traditional cube functions. In its current version, PowerPivot lacks the concept of ...


Advertisement Minimize

Advertisement Minimize

Copyright 2004-2012 MSBICentral.com Terms Of Use Privacy Statement