Home » excel » sql server 2012 – How to import data into Excel from SSAS Tabular model as Table?

sql server 2012 – How to import data into Excel from SSAS Tabular model as Table?

Posted by: admin April 23, 2020 Leave a comment

Questions:

I’m trying to import data from SSAS Tabular Model into Excel worksheet.
Steps sequence:

  1. On the Data tab -> From Other Sources -> From Analysis Services
  2. Select Database and Model
  3. Save Data Connection -> Finish

And then appeared the popup window (see below) where I can choose how I want to view this data and there Table option is inactive (see below).

Maybe someone know why it’s inactive and how I can get my data imported as a simple table?

enter image description here

And yes… I personally NEVER saw this Table option as active.

How to&Answers:

The easiest way is to start a PivotTable connected to SSAS Tabular, drop a measure into the PivotTable, then double click the cell with the measure value in order to drillthrough. It brings up a QueryTable with the drillthrough results. At that point, you can right click on the QueryTable and edit the query. Set the query to:

 EVALUATE('Your Table')

At this point you can delete the PivotTable if you wish.

Another approach involving editing an ODC file is posted by Chris Webb but my suggestion from above is mentioned at the end of that post. Also Marco Russo has a writeup of this ODC approach.