WEBVTT

1
00:00:01.870 --> 00:00:13.540
Hello, my name is Bob Ackbar, and in these lessons you will learn Power Queries, Auto Filters, and Pivot Tables.

2
00:00:13.540 --> 00:00:19.540
In this lesson, I will show you how to use Power Queries.

3
00:00:19.540 --> 00:00:24.540
Power Queries enabled you to be able to connect to external data sources.

4
00:00:24.540 --> 00:00:31.540
For our example, we have a comma separated values file.

5
00:00:31.540 --> 00:00:47.280
You may also connect to databases such as SQL server databases, which are very common in business for storing data.

6
00:00:47.280 --> 00:00:50.280
Also, Microsoft access databases.

7
00:00:50.280 --> 00:00:59.280
And to use these, you can contact your database and or network administrators to see how you can connect to these files.

8
00:00:59.280 --> 00:01:11.280
The way when you connect is going to behave similarly to the actual CES V file, which is the one that we are going to use today for our demonstrative purposes.

9
00:01:11.280 --> 00:01:22.940
When we open it as is where the file is, and you can see, even though Microsoft Excel does open it, I could have just opened it to a spreadsheet.

10
00:01:22.940 --> 00:01:32.220
I am going to choose to use the Power Query instead, so I can do some editing on it.

11
00:01:32.220 --> 00:01:40.960
We simply click on that and click imports.

12
00:01:40.960 --> 00:01:51.750
And here we are. The delivators, which are, which is another way of saying how the data is separated.

13
00:01:51.750 --> 00:02:04.750
Can we call on equal science semi-colons commas spaces and tabs commas and tabs are the most common and would also try spaces if you're trying to guess what the file is.

14
00:02:04.750 --> 00:02:20.750
Often you would get these kind of files if you're getting a file that has been exported from another software such as your accounting software or your lead tracking software or a government report from the Federal Reserve that you may have downloaded.

15
00:02:20.750 --> 00:02:27.260
Okay, so we're going to stick with our comma.

16
00:02:27.260 --> 00:02:41.260
And there's a few other options. You can decide if you want it to be 200 rows or the entire database where it tries to guess what the structure is or it can tell it's not to detect any at all and you can try to define it.

17
00:02:41.260 --> 00:02:51.060
We're going to leave it the way it is and we're just going to say transform the data.

18
00:02:51.060 --> 00:03:00.060
And here we are. We have arrived at our power query editor, which is what this lesson covers.

19
00:03:00.060 --> 00:03:03.060
Now we can choose columns.

20
00:03:03.060 --> 00:03:10.060
We can choose which ones we want. We can remove columns. We can keep rows.

21
00:03:10.060 --> 00:03:16.060
And if you notice here, it tells us what we want to keep.

22
00:03:16.060 --> 00:03:23.060
So remove rows. Removing duplicates is one that comes in very handy.

23
00:03:23.060 --> 00:03:33.340
Also removing blank rows. If there is one that doesn't have any data, that also comes in handy as well.

24
00:03:33.340 --> 00:03:43.340
Now we can go to advanced editor and put things in there where it gives us the programming language that is behind it.

25
00:03:43.340 --> 00:03:50.340
And you can see some things that are familiar to you, such as the file location.

26
00:03:50.340 --> 00:03:57.340
It also gives you the type. This is an integer 64.

27
00:03:57.340 --> 00:04:01.340
The next one is text. That's what it's detected.

28
00:04:01.340 --> 00:04:08.700
And once you get into understanding those, you can change those as well.

29
00:04:08.700 --> 00:04:13.700
Next we can see here we can change the source type in the query.

30
00:04:13.700 --> 00:04:20.700
We can also go into managing parameters and put different settings in there.

31
00:04:20.700 --> 00:04:23.700
We can change the source of the file.

32
00:04:23.700 --> 00:04:31.190
Now going back to where the query is.

33
00:04:31.190 --> 00:04:36.190
If you notice when I double click on it, I can put in the headers.

34
00:04:36.190 --> 00:04:41.190
Some files do have the headers. And if it did, it would have imported it for us.

35
00:04:41.190 --> 00:04:44.190
You can see here it says use first row as header.

36
00:04:44.190 --> 00:04:48.190
But in our data we do not have that. So we're going to put that in there.

37
00:04:48.190 --> 00:04:55.190
And for this we're going to put item for call three.

38
00:04:55.190 --> 00:05:02.680
We are going to put in customer and so forth.

39
00:05:02.680 --> 00:05:07.680
So once we have all these things ready, you notice this is previewed now.

40
00:05:07.680 --> 00:05:14.680
Everything is set up. We can now go and transfer this into our actual column.

41
00:05:14.680 --> 00:05:17.680
Remember some of the key options here.

42
00:05:17.680 --> 00:05:19.680
If there's a header.

43
00:05:19.680 --> 00:05:23.020
We can put those in there.

44
00:05:23.020 --> 00:05:28.020
If we need to remove columns, we can choose which ones we want.

45
00:05:28.020 --> 00:05:33.190
There we are.

46
00:05:33.190 --> 00:05:39.190
So if we only want the item and the customer, we can get rid of the rest.

47
00:05:39.190 --> 00:05:48.660
And this helps us quite a bit with cleaning up our data as far as what we want to import.

48
00:05:48.660 --> 00:05:53.480
We can deselect all select all.

49
00:05:53.480 --> 00:05:57.480
We can also remove duplicates and blank rows.

50
00:05:57.480 --> 00:06:00.480
Those are two of the common ones.

51
00:06:00.480 --> 00:06:06.480
Also if there are any errors, there may be some that were not properly formatted coming in.

52
00:06:06.480 --> 00:06:10.340
We're able to take these out as well.

53
00:06:10.340 --> 00:06:12.340
Thanks for watching.

54
00:06:12.340 --> 00:06:17.340
I'll see you for the next lesson where I will show you auto filters.

