How to connect SQL Server Tables in Power BI

Power BI is a popular Business Intelligence and Visualization application. You can connect to a variety of data sources in Power BI. In this article, we will discuss how to connect SQL Server Tables in Power BI.

Click here to learn how to connect to MS Excel data source in Power BI.

To connect SQL Server tables in Power BI, you should have access to SQL Server or it should be installed on your laptop. If you wish to install SQL Server express edition, follow this link and scroll down to download the Express edition.

How to connect SQL Server Tables in Power BI

  1. Launch Power BI desktop. Close the welcome screen.
  2. From the Home ribbon/Tab navigate to Get Data
Get Data option
  1. Click on More at the bottom of the Get Data option.
  1. On the next screen, select Database and select SQL Server database. Then select the Connect option.
Select Database and SQL Server Option
  1. On the next screen, enter your SQL Server details. If you do not recall, open your SSMS (SQL Server Management studio) and copy the name of the Server.
Enter SQL Server Credentials
  1. There are 2 ways to connect to SQL Server – Import or DirectQuery. When Import option is selected, tables and columns are imported into the Power BI desktop. When DirectQuery is used, a connection is directly made to the data source.
  2. Select the default Import option.
  3. In the next Navigator screen, you will see the list of databases or schemas available in your instance of SQL Server. Select the database based on your requirement and select a table. For this example, I will choose vEmployee table from AdventureWorks.
Database and Table selection
  1. Now select Load or Transform Data. If you wish to make any transformations to the data, select Transform Data, otherwise select Load.
  2. This will load your table into Power BI. You can verify it by navigating to the Model view on the left of your screen on Power BI desktop.
Loaded Table in the Model view

Now you are ready to create some charts, based on your data.

More readings:

How to become a Power BI developer

Loading data using Query Editor in Power BI

Instructor-led training in Power BI


About the Author

Chandraish Sinha has  20+ years of experience in Information Technology. He is an accomplished author and has published 11 books covering Business Intelligence related topics such as, Tableau,Power BI, and Qlik. Checkout his Amazon Author profile.

His latest book Excel Basics to Advanced covers all the aspects of MS Excel and provides exercises for self-learning.

Similarly, his recent book, Dashboarding with Tableau, covers all the features in Tableau and includes exercises for self-learning.

He has implemented IT solutions in different domains viz. Pharmaceutical, Healthcare, Telecom, Financial and Retail.

He blogs regularly on various IT topics. Check them out in the links given below: 

Blogs

Learn Tableau

Learn All Bi

Related posts

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.