On-Premise Data Refresh in Power BI - CloudFronts

On-Premise Data Refresh in Power BI

Posted On August 13, 2015 by Posted in 

Purpose of this blog is to refresh on-premise data sources available in Power BI.

Prerequisite:

Microsoft SQL Server Management Studio, Microsoft Excel 2013, Power BI Desktop Tool, Microsoft Data Management Gateway

Steps for On-Premise Data in Power BI:

Setting up On-Premise Data Refresh in Power BI will help refresh data directly from the data source to dataset. Here we will be looking on how to refresh on-premise data in Power BI using SQL data and Excel data.

First we will be working on Excel data and then SQL data.

I] Working on Excel Data:

To begin with Excel Data we must have the following things on your PC

  1. Microsoft Excel 2013
  2. Power BI Desktop Tool
  3. Microsoft Data Management Gateway
  4. Login to Power BI Service
  1. Create an Excel worksheet in Microsoft Excel 2013. And save it with some appropriate name.
  2. 1
     

  3. Now open Power BI Desktop
  4. 2
     

  5. Click on Get Data and select the type of file you need like in our case it is Excel and then click on
  6. 3

 

  1. Select the Excel file from the appropriate location and click Open.
  2. You will get a Navigator window, select the sheet(s) you require and click on load
  3. 4
     

  4. The data gets loaded.
  5. 5
     

  6. Once loaded, you can view the sheet(s) and the columns in Field section on the Right hand side of the Power BI Desktop window.
  7. Now, you can create any chart or report in this and main is to save the file. This is saved with an extension of .pbix
  8. Now open Power BI Home page and create a login (If you have created your login already then use the same). Meanwhile it will ask you to install Microsoft Data Management Gateway. Install Microsoft Data Management Gateway on your machine.
  9. 6

 

  1. Click on Get Data tab (at the left hand side bottom). Choose the saved .pbix file you saved using Power BI Desktop.
    Create the required chart(s) and report(s).

    7

     

    Here, chart based on Employee ID and salary is taken. Now the employee with name Bhavna (ID 1004) is 50 K. So, change it in the excel file, say, we change it to 20 K.

    8

  2. Now save the changes done in Excel file and go to Power BI. Click on the dataset where you created the report using this Excel data and schedule the refresh.

    9

    For scheduling the refresh click on the Dataset and click on SCHEDULE REFRESH you will get the below window check the gateway connections and the schedule time and click the Apply button at the bottom of that widow.

  3. 10
     

  4. Now click on REFRESH NOW. The data gets automatically refreshed and you can see the changes in the report.
    11

    As shown in above bar chart the salary that has been changed is reflected here.

    This is how refresh of on-premise in Power BI works using Excel data.

II] Working on SQL Data:

To begin with SQL Data we must have the following things on our PC

  1. Microsoft SQL Server Management Studio
  2. Power BI Desktop
  3. Microsoft Data Management Gateway
  4. You have to create a login to Power BI
  1. Create a Table in Microsoft SQL Server Management Studio. And save it with some appropriate name.

    For demo purpose I have created a table named Emp_Details with following rows and data.

    12

  2. Now similarly Get Data from the SQL table in Power BI and create Dataset.
  3. 13

    Here the salary of employee name Aurick is 2 K

  4. Now we will update the SQL data using Update query and change it to 20 K

    16

    Run the select query to check the changes. And save the change done.

    14

  5. Now, go to Power BI and similarly SCHEDULE REFRESH (as done for Excel data) and then refresh the dataset which you have used to create the report.

    15

    As you can see the Dataset is refreshed and the Salary of Employee named Aurick is changed to 20 K.

 
There are many more on-premise data sources that can be used to refresh data using Data Management Gateway in Power BI

Supported on-premises data sources:

  1. Custom SQL/Native SQL
  2. Access Database
  3. File (CSV, XML, Text, Excel, Folder)
  4. IBM DB2 Database
  5. MySQL Database
  6. Oracle Database
  7. PostgreSQL Database
  8. SharePoint List
  9. SQL Server Database
  10. Sybase Database
  11. Teradata Database

Supported online data sources:

  1. AppFigures (Beta)
  2. Azure Blob store
  3. Azure HD Insight
  4. Azure Marketplace
  5. Azure SQL Database
  6. Azure Table store
  7. Blank query (query that is not accessing any data source)
  8. Dynamics CRM Online
  9. Facebook
  10. GitHub (Beta)
  11. Google Analytics
  12. Hadoop File (HDFS)
  13. OData Feed
  14. Salesforce
  15. Sweet IQ (Beta)
  16. Twilio (Beta)
  17. QuickBooks Online (Beta)
  18. Web
  19. Zendesk (Beta)

 


Share Story :

Secured By miniOrange