Update: If you are here to learn how to browse your SSAS Multidimensional model in Power BI please refer to this article. The current article shows you how to refresh data on Power BI service on top of a SSAS Multidimensional instance based on data import scenario.
It’s been a while that lots of us are waiting for seeing improvements on Power BI and SSAS Multidimensional. The good news is that Microsoft released a new version of Power BI Personal Gateway last week on 3 Sep 2015. One of the new features added to this release is that we can now refresh an on-prem SSAS Multidimensional model (data import scenario) after we published it to Power BI website. But, what data import scenario means? That means we cannot create mashups with data we already have in an existing SSAS Multidimensional database/cube through the SQL Server Analysis Services connector which is available on Power BI website. So we need to connect to a SSAS multidimensional instance through Power BI Desktop and load the cube’s data into the Power BI model. Indeed we will create a relational model on top a multidimensional model from SSAS.
Then we can create reports and publish them to Power BI website and finally we’ll be able to schedule data refresh on the Power BI website.
We can also connect to a SSAS Multidimensional instance through Power Pivot AND/OR Power Query from Excel then load the Excel file into Power BI website.
Note: We can do the same through Power Query, but, we won’t able to setup a data refresh schedule on Power BI website if we didn’t load
It’s just awesome isn’t it?
In this post I show you how to implement all the data import scenarios using Power BI Desktop, Power Pivot and Power Query from Excel.
First of all you need to download the gateway from here. Then you need to uninstall the existing version of Power BI Personal Gateway from your machine and install the new version. The whole gateway installation and process of refreshing an on-prem SSAS database is pretty much the same as what I explained in this post so I leave the installation part to you. However, I explain the data refresh part again.
SSAS Multidimensional Data Import Scenario Through Power BI Desktop:
Get Data
- Open Power BI Desktop
- Click Get Data
- Select “SQL Server Analysis Services Database” from the list and click “Connect”
- Enter the SQL Server Analysis Services instance name
- The database name is optional, but, I put “AdventureWorksDW2012”
- Click “Select items and get data from Multidimensional or Tabular model”
- As you can see you can also put your MDX or DAX custom queries, but, we leave it blank in our sample
- Click OK
- Expand the cubes and underlying measure groups then tick the measures you need. In this sample I selected “Internet Sales Amount”
- Scroll down and tick the desired dimensions. I selected “Date” dimension
- As you can see you can expand a dimension and select the desired members or hierarchies
- Click Load
- After your model loaded you can see a table with date dimension members and “Internet Sales Amount” measure on it. As you might noticed there is no hierarchies in the table as hierarchies are not supported in Power BI.
Creating/Publishing a Simple Report
On the report view tick “Internet Sales Amount” and “Date.Calendar Year” to create a simple column chart.
Now click “Publish” from the ribbon to publish the report to Power BI Website.
Schedule Data Refresh Setup
- Open your internet browser and browse Power BI website
- Sign in to your account
- Find the newly published dataset from Datasets pane
- Click on the ellipsis button then click “Schedule Refresh”
- Expand “Gateway Status” to make sure the personal gateway is online
- Expand “Data Source Credentials” then click “Edit Credentials” and make sure Authentication Method is set to “Windows” then click “Sign In”
- Expand “Schedule Refresh” and switch the “Keep up-to-date- option to Yes. Then set desired refresh frequency, time zone and time. Tick “Send refresh failure notification email to me” if you want to get informed when a scheduled data refresh fails. Click Apply.
All done!
SSAS Multidimensional Data Import Scenario Through Power Pivot:
- Open Microsoft Excel then go to Power Pivot
- On the ribbon click on “From Data” from “Get External Data” section
- Click “From Analysis Services or Power Pivot
- Enter the SSAS server name then select the database from dropdown list then click Next
- Type a friendly name for the query and click “Design” button
- Select a desired measure group
- Expand measures, then drag and drop a desired measure to the grid area
- Scroll down and expand a desired dimension
- Drag and drop a member or hierarchy to the grid
- Click OK then click Finish
- After data import is completed click Close
- Now that we imported the data we should save the Excel file.
- Login to your Power BI website
- Click on Get Data
- Click on Get Files
- Click Local File and import the Excel file
- Now you should see the Excel dataset in the Datasets list
- Click on the ellipsis then click Schedule Refresh
- Now you can setup schedule refresh as desired
SSAS Multidimensional Data Import Scenario Through Power Query:
- Open Excel then from Power Query get external data From Database
- Click “From Analysis Services Database”
- Enter the SSAS server name then click OK
- From the Navigator expand database, expand a desired cube, expand measure group then select a desired measure
- Scroll down and select a desired dimension, dimension member or hierarchy
- IMPORTANT: Click on the Load button option and select “Load To”
- Tick “Add this data to the Data Model”. This is very important to load data into the model otherwise you WON’T be able to setup a Schedule Refresh on Power BI website for an Excel dataset which doesn’t have any data in the data model.
- After your data loaded save the Excel file
- Now you need to import the Excel file into your Power BI website and setup a schedule refresh as I explained previously
All done!
Discover more from BI Insight
Subscribe to get the latest posts sent to your email.
Great, this is just what I’ve been looking for. We’re on Multidimensional on premise so have been struggling to get power bi progressed. Thanks for posting!
Hi !
I tried to replicate your first scenario but the refresh fails with the following message:
[Expression.Error] The import AnalysisServices.Database matches no exports. Did you miss a module reference?
Any idea what I might do wrong ?
I think you forgot to talk about one thing though: the creation of the dashboard. If you want to share the report or simply acces it from a device like an iPad/iPhone you need to create a dashboard.
And unfortunately I haven’t seen a way so far to create a dashboard with Reports based on SSAS cubes. If it’s the case, then all of this is useless unfortunately… You have a report but you cannot share it or access it from mobile devices.
Hi Alexandre,
My intention was to explain all possible Power BI data import scenarios on top of SSAS Multidimentional.
About creating dashboards, if you already created your reports on Power BI Desktop then there are only a few steps you need to take to create your dashboards.
First of all you need to publish your reports to Power BI website and then you create and share your dashboards online.
I encourage you to have a look at this article, I think you’ll like it:
https://biinsight.com/data-visualisation-with-power-bi-desktop/
Cheers
Hi, nice article!
for MOLAP Import Data scenario, do you know if data refresh also works if the spreadsheet with data model is stored in OneDrive for Business? if yes, then I can build Excel Online reports off the PowerPivot data model and still manage data refresh via Power BI website.
thanks much,
JQ
Hi JQ,
Well, it depends.
As data import scenario literally imports your data into your Power BI storage on the cloud when we are talking about data refresh we are actually talking about refreshing the imported model on the cloud from the source storage.
Depending on the data sources you used in your Excel file the was data refresh works is different regardless of the location you stored your Excel file. For instance, if you’re using one of the data sources supported in Power BI Personal Gateway like MySQL, SQL Server and so on then you can refresh the model in the cloud without needing to refresh the original Excel file. I encourage you to have a look at here and here.
But, Power BI treats Excel files stored in OneDrive differently.
SO that you can just import Excel data into Power BI or you can bring the whole Excel workbook into Power BI and manage and view data, charts, pivot tables etc.
You can also keep your workbooks uptodate with schedule refresh.
I already have “Power BI and OneDrive Business” in my list and I’ll post an article about this in near future.
So you’re most welcome to subscribe and get the newest update of my website.
Cheers
Quick correction: you can access reports on iPad!
Hi Alexandre,
Yes you can.
You can find all you need here: https://biinsight.com/hold-your-dashboards-in-your-pocket-part-1-use-your-predefined-dashboards-on-your-ios-devices/
Cheers
Does SSAS 2008R2 source is supported in Power BI desktop SSAS connector ?
Hey,
When I connect to my SQL Server 2008 SSAS services , the option to “load in to data model” is greyed out…
Per the below link it says “… it seems that you import data from Analysis Services database. However, this option is not available for Analysis Services database. So in you want to made this option, you can import data from relational database.”
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/fcf163c5-b7df-40ca-9f49-720b90e49894/powerview-add-this-to-the-data-model-checkbox-is-greyed-out?forum=sqlanalysisservices
any other ideas?
initially Power BI desktop to SSAS SQL SERVER 2008…but per the guide above i was trying to do it from Excel 2016 to SQL Server 2008 SSAS but I could not utilize the “load into data model” option as it was grayed out…
Thank you Soheil! Do you know of a way to get Power BI to directly connect to my Sql server 2008 SSAS service without upgrading to Sql server 2012?
Hi Soheil,
Does Power BI support dynamic date ranges when using a live connection to a multidimensional cube through the gateway? I have MDX queries that calculate date ranges such as ‘This Year’ or ‘Last Month’ within my cube, but they don’t come across in my Power BI report.
If Power BI does not support such ranges when connected to a multidimensional cube, have you seen any workarounds to achieve this functionality?
Thanks for your help.