THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | Join | Help
in Search

SQLBI - Marco Russo

SQLBI is a blog dedicated to building Business Intelligence solutions with SQL Server

Importing tables from #BISM Tabular model in #PowerPivot

A BISM Tabular model can be browsed in Excel by using just the standard PivotTable like it was a regular Analysis Services cube (that now we call a Multidimensional model). If you are used to PowerPivot, this seems a limitation, because you cannot interact with your data by adding linked tables and modifying the data model. Moreover, because you cannot use the PowerPivot Field List pane when you are connected to a Tabular model, you also lose the ability to define implicit measures on the fly and to move attributes to slicers.

If you are interested in doing these things, you might consider importing data (or a subset of) into a local PowerPivot workbook. To do that, you might use the standard user interface for importing data from Analysis Services, writing an MDX query that is used to extract data. However, there are many issues when you import data from Analysis Services to PowerPivot that are still not solved in CTP3. For example, measures are imported as text and you have to lose time by correcting data type and then import data again in order to get the right data in your model. However, there is a completely different approach that you can use: you can use DAX instead of MDX. The clear advantage of using DAX is that you get better performance and a mode direct access to the underlying Tabular structure. For example, if you want to import all the columns and rows from a Date table published in a BISM Tabular model, you can simply write:

EVALUATE Date

This DAX query can be written instead of an MDX one. Of course, you don’t have a visual editor for DAX but if you look at the documentation of Table Query Syntax, you will discover that the syntax is pretty easy for simple queries.

 

By using DAX, you get the right metadata for the returned column and you don’t have to lose time cleaning the data type for all the returned columns. Not to mention that DAX performances for these queries are very good. In the (near) future I would like to see an “Import with DAX” dedicated dialog box for drillthrough actions definition.

Published Friday, August 19, 2011 3:33 PM by Marco Russo (SQLBI)
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Nick said:

It should be:

EVALUATE 'Date'

August 19, 2011 6:02 PM
 

Marco Russo (SQLBI) said:

Nick, you're right - I changed the original version

EVALUATE ( Date )

to

EVALUATE Date

Of course, if the name of the table contain some space you have to delimit that name with single quotes.

Thanks,

Marco

August 19, 2011 6:36 PM
 

Cathy Dumas's Blog said:

When I was at PASS I fielded a bunch of questions about the BI semantic model, multidimensional (OLAP

October 17, 2011 2:46 PM
 

Tom Snoeren said:

I am familiar with PowerPivot but still have to start exploring the BISM. I am very surprised that the BISM can only be exposed to Excel as 'read-only'(no PowerPivot table but a regular PivotTable). I had expected a way of iterative development where end-users could work on (copies of) BISM in PowerPivot and developers could then import the PowerPivot model into the BISM Development environment to enrich / improve it (e.g. performance tuning or adding role based security for which I understand this can only be done in BISM). Missed change I would say? Importing the data as you describe will not expose calculation formulas which is very limiting if you want to built further on them. Or am i missing something?

January 26, 2012 10:32 AM
 

Marco Russo (SQLBI) said:

Tom,

I feel your pain, but this is how it works now.

I hope in future release they will move towards a model similar to the one you described.

Marco

January 26, 2012 11:56 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About Marco Russo (SQLBI)

Marco Russo is a consultant, writer and trainer specialized in Business Intelligence with Microsoft technologies. He runs the SQLBI.COM website, which is dedicated to distribute resources useful for BI developers, like Integration Services components, Analysis Services models, tools, technical information and so on. Marco is certified as MCT, MCDBA, MCSD.NET, MCSA, MCSE+I.

This Blog

Syndication

News

TechEd North America 2012
Microsoft SQL Server & Business Intelligence Conference 2012
Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement