There are three pages here, so I use Power Query to get all three pages into Excel and then appended them together in one big table. I did this using three ‘from web’ commands in Power Query, so I got the following queries:
Next step was to append the three tables together. I started with the ‘append’ command in Power Query which allowed me to append Page1 and Page 2 together. A quick edit of the code gave me the result I was looking for:
And the resulting table:
Next, I loaded the table to PowerPivot, added a quick sum and then opened Power Map by going to InsertàMap in Excel.
In Power Map I created three layers, one using shapes, another one using a heat map and a third using a column graph. Then I created a tour using these layers. The resulting video is below.
As you can see, it is really easy to visualize geographical data using Power BI in Excel! Pretty cool huh?
With Power BI you can create an Excel sheet based on your data and then get it refreshed so your report always has the latest information.
If you run into trouble with this, here is how to troubleshoot the data refresh.
Firstly, make sure you use Power Pivot to connect to your data source and not Power Query as refresh with Power Query is currently not supported.
When making the connection to your data source, just use a regular data connection to the SQL Server source and not through an OData feed.
In Power Pivot, make sure to use the same data provider as your data source has been configured to use in the Power BI Admin Portal (i.e. Native SQL or OLEDB) and enter the server and database name exactly the same as the data source has been configured in your Power BI Admin panel. With “exactly” I mean also casing: so myServer is something else than MyServer. So the server and database name needs to be identical, including casing.
Finish your workbook and upload it.
Make sure the Database Management Gateway is running. Do this by checking the status in the Power BI Admin Portal and check under Data Management Gateways.
Next in the Power BI Admin Portal, check that the data sources have correct settings for server name and database name. Also check that the credentials entered here have permissions to the data sources on the server and have been re-entered after the last time the DMG has been registered. There is no harm in re-entering them just to be sure. Also check that the connection provider here matches the one used in Power Pivot and again the server and database name need to be exactly the same as in your Power Pivot connection settings (see item #3 above).
In the Power BI Admin Portal, check that the user you will be using to schedule the refresh has permissions to do so on every data source you would like to refresh. Do this by opening the settings for the data source in the Power BI Admin Portal and making sure the user is listed under ‘users and groups’.
Plan the refresh on the file. When the schedule hits, your schedule should start and finish successfully.