Common External Data Sources

Introduction to PowerQuery Connecting To Data
8 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€65.22
List Price:  €93.18
You save:  €27.95
£56.04
List Price:  £80.07
You save:  £24.02
CA$96.09
List Price:  CA$137.28
You save:  CA$41.18
A$106.44
List Price:  A$152.07
You save:  A$45.62
S$94.93
List Price:  S$135.63
You save:  S$40.69
HK$547
List Price:  HK$781.46
You save:  HK$234.46
CHF 63.65
List Price:  CHF 90.94
You save:  CHF 27.28
NOK kr765.05
List Price:  NOK kr1,092.98
You save:  NOK kr327.92
DKK kr486.48
List Price:  DKK kr695
You save:  DKK kr208.52
NZ$116.68
List Price:  NZ$166.69
You save:  NZ$50.01
د.إ257.06
List Price:  د.إ367.25
You save:  د.إ110.18
৳7,685.71
List Price:  ৳10,980.05
You save:  ৳3,294.34
₹5,844.71
List Price:  ₹8,349.95
You save:  ₹2,505.23
RM331.80
List Price:  RM474.03
You save:  RM142.22
₦98,423.43
List Price:  ₦140,610.93
You save:  ₦42,187.50
₨19,474.95
List Price:  ₨27,822.55
You save:  ₨8,347.60
฿2,584.73
List Price:  ฿3,692.63
You save:  ฿1,107.90
₺2,255.06
List Price:  ₺3,221.65
You save:  ₺966.59
B$356.31
List Price:  B$509.04
You save:  B$152.73
R1,298.99
List Price:  R1,855.78
You save:  R556.79
Лв127.57
List Price:  Лв182.26
You save:  Лв54.68
₩95,950.21
List Price:  ₩137,077.60
You save:  ₩41,127.39
₪261.40
List Price:  ₪373.45
You save:  ₪112.04
₱4,015.50
List Price:  ₱5,736.67
You save:  ₱1,721.17
¥10,912.42
List Price:  ¥15,589.84
You save:  ¥4,677.42
MX$1,187.01
List Price:  MX$1,695.81
You save:  MX$508.79
QR254.79
List Price:  QR364.01
You save:  QR109.21
P956.45
List Price:  P1,366.42
You save:  P409.96
KSh9,168.69
List Price:  KSh13,098.69
You save:  KSh3,930
E£3,313.80
List Price:  E£4,734.21
You save:  E£1,420.40
ብር4,020.93
List Price:  ብር5,744.43
You save:  ብር1,723.50
Kz58,536.36
List Price:  Kz83,626.96
You save:  Kz25,090.59
CLP$65,519.73
List Price:  CLP$93,603.63
You save:  CLP$28,083.90
CN¥505.79
List Price:  CN¥722.59
You save:  CN¥216.80
RD$4,064.05
List Price:  RD$5,806.04
You save:  RD$1,741.98
DA9,434.16
List Price:  DA13,477.95
You save:  DA4,043.79
FJ$159.43
List Price:  FJ$227.77
You save:  FJ$68.34
Q544.12
List Price:  Q777.35
You save:  Q233.22
GY$14,659.33
List Price:  GY$20,942.80
You save:  GY$6,283.47
ISK kr9,804.19
List Price:  ISK kr14,006.59
You save:  ISK kr4,202.40
DH702
List Price:  DH1,002.91
You save:  DH300.90
L1,236.68
List Price:  L1,766.77
You save:  L530.08
ден4,019.08
List Price:  ден5,741.79
You save:  ден1,722.70
MOP$563.89
List Price:  MOP$805.60
You save:  MOP$241.70
N$1,302.92
List Price:  N$1,861.40
You save:  N$558.47
C$2,577.98
List Price:  C$3,682.99
You save:  C$1,105
रु9,357.62
List Price:  रु13,368.60
You save:  रु4,010.98
S/260.83
List Price:  S/372.63
You save:  S/111.80
K271.34
List Price:  K387.65
You save:  K116.30
SAR262.49
List Price:  SAR375
You save:  SAR112.51
ZK1,913.50
List Price:  ZK2,733.69
You save:  ZK820.18
L324.50
List Price:  L463.60
You save:  L139.09
Kč1,630.34
List Price:  Kč2,329.15
You save:  Kč698.81
Ft25,331.89
List Price:  Ft36,189.97
You save:  Ft10,858.07
SEK kr764.93
List Price:  SEK kr1,092.80
You save:  SEK kr327.87
ARS$61,714.55
List Price:  ARS$88,167.42
You save:  ARS$26,452.87
Bs483.86
List Price:  Bs691.26
You save:  Bs207.40
COP$272,553.83
List Price:  COP$389,379.31
You save:  COP$116,825.47
₡35,845.57
List Price:  ₡51,210.15
You save:  ₡15,364.58
L1,730.57
List Price:  L2,472.36
You save:  L741.78
₲523,213.21
List Price:  ₲747,479.48
You save:  ₲224,266.27
$U2,704.33
List Price:  $U3,863.50
You save:  $U1,159.16
zł280.23
List Price:  zł400.34
You save:  zł120.11
Already have an account? Log In

Transcript

This lesson will introduce you to how to connect to external data sources using get and transform. The challenge with external data sources is knowing what you need to connect to, and having the information and access necessary to create that connection. Excel has built in support for dozens of different data connections through the getting Transform tool. These options can be daunting, and Microsoft continues to add more. For this lesson, let's focus on some of the most common ones. Other Excel workbooks are very common connections for Excel users.

In this file, I have nearly the exact same data set as from our prior lesson. I've saved this file to my hard drive, and I'm going to access it as an external data source for this lesson. In a new workbook, I'll go to the Data tab, select new query, and then find from workbook This will bring up a file explorer, which I'll then use to find the source file. I'll click on the source file, and press the Import button. Once I do this, the navigator window will launch with details about the workbook that I've selected. Along the top, there's a search bar to assist in finding specific information for larger data sets.

Below that, you'll find an option for selecting multiple items. Next up is the list of the available data objects in my file. selecting any one of these such as sheet one will give you a preview of the data that's available. This data set is not structured as a table, so it will pull the entirety of sheet one, which includes any blank cells that would tag along for the ride. We can manage these data artifacts later in our query. To the bottom right, we'll find our commands.

There's a load drop down and edit button and a Cancel button. The load drop down includes up For immediately loading the data into a table in a new workbook, or the load two will bring up the load two for providing a specific location for loading our information. The Edit button recently renamed transform will launch the query editor for the query and the cancel will cancel the data import all together, I'm going to go to load two and I'm going to load this information as a connection only. Excel workbooks can serve nicely as small data stores. But more commonly, you're going to see comma separated or other delimiter defined text data sets for managing small sets of information. These can be imported like Excel workbooks, with a few different features.

To do so we'll go to the from text CSV command along the data ribbon to bring up the Import Wizard. Within the file browser, we can find the file we want to import and click the Import button. The CSV wizard will open the file with a different type of import editor. The editor will include a quick preview of the data. Here, I can choose the file origin, the delimiter to split with and the rules for data type identification. The same three buttons with the same options are available to the bottom right, with the same changes for Excel 2019.

As with the prior data source, I'm going to select low too and turn this into a data connection. The next common data source, particularly among small businesses, is Microsoft Access, so we'll use it as our next external connection. Again, we're going to start from the data ribbon and click on our get data and choose from database from access. Our file browser will appear and ask us to navigate to the appropriate Microsoft Access database file location. Once we found it, we'll select the file and we'll choose Import. This will take us to a navigator that is effectively identical to the one we used with the Excel workbook.

We have our search bar the select multiple comment In the list of available data options. In this example, we have multiple data sources, which are all copies of each other. I can preview any data set by selecting it from the list. I should note that we did not encounter any permissions options in setting up this connection. One noticeable issue that I found with getting transform is that some legacy types of access protection are not supported by the connector. You can work around some of these by using older style data connections with some connection string manipulation, linking them into a table, and finally loading those tables into a query as if they weren't local data sources.

At this point for our access file, I'm going to go to load two and choose to load this into a connection only. The final data source type that we'll cover in this lesson will be a SQL database connection. In order to connect to SQL Server, you need some details in advance. First, you need either the server's IP address or the local DNS name. Second, you'll need to be given read permission and SQL Server Settings with your windows credentials, or you'll need to have a database specific set of login credentials. Once you have that information, you can connect by going to get data databases SQL Server database.

The database that I'll connect to is my local host SQL Express server. In order for you to connect to SQL, you'll either need to set up a local SQL server or connect to an alternative server such as your company's own database, given appropriate oversight and permissions from your IT staff. Once I've inputted the server, I can press OK. And the first time I do this, I'll be asked for my credentials. At this stage, you'd specify either to use your local windows login or alternative login credentials. Selecting the alternative credentials will allow you to input your username and password as necessary. Once you're ready, you can press connect to initiate the connection.

If your SQL server does not have encryption support enabled, you will be Given a warning, if you work with sensitive data, you should consult with your IT department If this occurs. Once you press OK, it will take me to another navigator, which is quite similar to the ones we have for Excel and access. Within the navigator, we have a list of the available servers, a list of databases, and then a list of options within each database. Selecting a table or query from here, we'll generate a preview of the data. So I can see that we have another copy of basically the same data set as before. I'm going to choose load load to and create a connection only.

Once you're more familiar with the get and transform tool set, you can revisit this lesson for a primer on the external data sources and determine the best approach for data access with guidance from your database administrator. This gives us four different external data connections located within a single Excel workbook. You could take any one of these queries and load it to a table to use the information in your work because you see fit Give the basic tools necessary for creating tables listing information from a wide variety of data sources, and then using that data with Excel formulas to manipulate them as you need. This covers the basic get portion of the get and transform tool. The rest of our course will be dedicated to covering how to transform data, starting in our next chapter with some simple commands for renaming columns, replacing values, and filtering data.

After that, we'll move on to how to merge pivot and really start manipulating our data sets. To close out the chapter we have our first exercise, I've provided three different datasets. One is an Access database. One is a CSV file and one is an Excel workbook. You should create for table output from these files as per the rules provided within the exercise. There are multiple options and some of the sources that will require you to utilize the navigator appropriately.

Additionally, you should find The instructions for where to load the data to get comfortable using the load two commands. In the next video I'll provide a walkthrough for this exercise

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.