Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,000 --> 00:00:02,000
Narrator: Okay, so up until this point,
2
00:00:02,000 --> 00:00:03,000
we've talked about a number
3
00:00:03,000 --> 00:00:05,000
of the most important data transformation tools
4
00:00:05,000 --> 00:00:07,000
in the query editor.
5
00:00:07,000 --> 00:00:10,000
Up next, I wanna cover some important settings and options.
6
00:00:10,000 --> 00:00:13,000
And the first topic here is data source settings.
7
00:00:13,000 --> 00:00:15,000
So in the home tab of the query editor,
8
00:00:15,000 --> 00:00:18,000
you see this option for data source settings.
9
00:00:18,000 --> 00:00:21,000
And that basically allows you to view and manage all
10
00:00:21,000 --> 00:00:24,000
of the individual connections in your Power BI file.
11
00:00:24,000 --> 00:00:26,000
So in this example that we're looking at here,
12
00:00:26,000 --> 00:00:28,000
we've got connections to a number
13
00:00:28,000 --> 00:00:30,000
of individual CSV files as well
14
00:00:30,000 --> 00:00:33,000
as a folder down there at the bottom of the list.
15
00:00:33,000 --> 00:00:35,000
Now, the critical concept to understand
16
00:00:35,000 --> 00:00:38,000
about the data source settings
17
00:00:38,000 --> 00:00:40,000
is that when you make a connection to a local file,
18
00:00:40,000 --> 00:00:43,000
a file that's located on your computer.
19
00:00:43,000 --> 00:00:45,000
Power BI will basically take a snapshot
20
00:00:45,000 --> 00:00:49,000
of that exact file path and the exact file name.
21
00:00:49,000 --> 00:00:51,000
And what that means is that if anything changes
22
00:00:51,000 --> 00:00:55,000
about your file, if you rename it, if you move it,
23
00:00:55,000 --> 00:00:58,000
update permissions, a path location, anything,
24
00:00:58,000 --> 00:01:02,000
that path won't automatically update within Power BI.
25
00:01:02,000 --> 00:01:03,000
So, what you need to do is go
26
00:01:03,000 --> 00:01:06,000
into these data source settings, click change source
27
00:01:06,000 --> 00:01:10,000
and then browse to the revised version of that file.
28
00:01:10,000 --> 00:01:11,000
So, this is probably one
29
00:01:11,000 --> 00:01:14,000
of the most common issues that I see in Power BI,
30
00:01:14,000 --> 00:01:18,000
where people inadvertently rename a file or rearrange things
31
00:01:18,000 --> 00:01:21,000
on their desktop and accidentally break these file paths.
32
00:01:21,000 --> 00:01:25,000
But the good news is that it's very easy to fix as soon
33
00:01:25,000 --> 00:01:28,000
as you understand how these data source settings work.
34
00:01:28,000 --> 00:01:30,000
So, let me show you what I mean.
35
00:01:30,000 --> 00:01:32,000
For this video, you can either continue
36
00:01:32,000 --> 00:01:33,000
to just follow along here with me
37
00:01:33,000 --> 00:01:36,000
and watch, because we're not actually going to be adding
38
00:01:36,000 --> 00:01:39,000
any new data or revising anything to what we have.
39
00:01:39,000 --> 00:01:42,000
I just wanna show you a demo of what happens
40
00:01:42,000 --> 00:01:45,000
when a file path does break and you need to update it.
41
00:01:45,000 --> 00:01:48,000
All right, so here I'm gonna head to the query editor
42
00:01:48,000 --> 00:01:51,000
and from here to check out our data source settings, right?
43
00:01:51,000 --> 00:01:54,000
We're from the home tab, data source settings
44
00:01:54,000 --> 00:01:57,000
and this dialogue will open up that shows us all
45
00:01:57,000 --> 00:02:00,000
of the different connections within the workbook, right?
46
00:02:00,000 --> 00:02:03,000
So, we've got our Maven Fuzzy Factory SQL Connection,
47
00:02:03,000 --> 00:02:07,000
we've got a bunch of local CSV file connections, a folder.
48
00:02:07,000 --> 00:02:09,000
We've got our Wikipedia web link, right?
49
00:02:09,000 --> 00:02:11,000
So, we're seeing everything here
50
00:02:11,000 --> 00:02:13,000
and everything's looking good.
51
00:02:13,000 --> 00:02:14,000
It's running smoothly.
52
00:02:14,000 --> 00:02:17,000
But what would happen if I accidentally changed one
53
00:02:17,000 --> 00:02:19,000
of these file names?
54
00:02:19,000 --> 00:02:23,000
So, let me navigate to my actual file folder on my desktop.
55
00:02:23,000 --> 00:02:24,000
All right, here we are.
56
00:02:24,000 --> 00:02:28,000
And let's say for example, I'm gonna update
57
00:02:28,000 --> 00:02:30,000
the AdventureWorks product lookup name
58
00:02:30,000 --> 00:02:34,000
and we'll call this _2, right?
59
00:02:34,000 --> 00:02:36,000
So, we'll rename that and now I'm gonna head back
60
00:02:36,000 --> 00:02:38,000
to the query editor.
61
00:02:38,000 --> 00:02:41,000
And if I click on my product lookup table
62
00:02:41,000 --> 00:02:45,000
and I refresh this data, we get an error here, right?
63
00:02:45,000 --> 00:02:47,000
Could not find the file, right?
64
00:02:47,000 --> 00:02:48,000
Because what Power BI is looking for
65
00:02:48,000 --> 00:02:53,000
is this AdventureWorks product lookup table,
66
00:02:53,000 --> 00:02:55,000
but it's now named Lookup_2, right?
67
00:02:55,000 --> 00:02:56,000
So there's a couple of different ways
68
00:02:56,000 --> 00:02:59,000
that we can go about actually fixing this.
69
00:02:59,000 --> 00:03:01,000
If we go back up to our data source settings,
70
00:03:01,000 --> 00:03:05,000
we can come down to our product lookup table
71
00:03:05,000 --> 00:03:09,000
and we're gonna change the source, right?
72
00:03:09,000 --> 00:03:10,000
So what this does is it allows us to browse
73
00:03:10,000 --> 00:03:13,000
for a new path and we can come back here,
74
00:03:13,000 --> 00:03:18,000
we'll point it at our new lookup table, click Open, OK.
75
00:03:20,000 --> 00:03:21,000
And then we can close.
76
00:03:22,000 --> 00:03:24,000
And now when we refresh the data,
77
00:03:24,000 --> 00:03:26,000
everything looks good here.
78
00:03:26,000 --> 00:03:28,000
These applied steps all work, right?
79
00:03:28,000 --> 00:03:31,000
And we're left with a usable product lookup table again.
80
00:03:31,000 --> 00:03:35,000
Now we're back to usual, sources populated properly.
81
00:03:35,000 --> 00:03:38,000
All of the applied steps are maintained, like we just saw,
82
00:03:38,000 --> 00:03:40,000
we haven't lost any information.
83
00:03:40,000 --> 00:03:41,000
Pretty simple fix.
84
00:03:41,000 --> 00:03:43,000
We could just leave things the way they are.
85
00:03:43,000 --> 00:03:45,000
Or I can kind of show you that same process
86
00:03:45,000 --> 00:03:46,000
in reverse, right?
87
00:03:46,000 --> 00:03:48,000
So, what I'm gonna do is I'm gonna head back
88
00:03:48,000 --> 00:03:50,000
and I'm gonna change the file back
89
00:03:50,000 --> 00:03:52,000
to its original name, right?
90
00:03:52,000 --> 00:03:56,000
Back here and we'll remove the two.
91
00:03:56,000 --> 00:03:58,000
We'll head back to the query editor, right?
92
00:03:58,000 --> 00:04:00,000
And I'm actually gonna refresh this again,
93
00:04:00,000 --> 00:04:02,000
so we can get that error to show up, right?
94
00:04:02,000 --> 00:04:04,000
So now, Power BI is looking for two
95
00:04:04,000 --> 00:04:06,000
and we just updated the file name.
96
00:04:06,000 --> 00:04:08,000
So, remember how I said there's a couple
97
00:04:08,000 --> 00:04:09,000
of different ways that you can update this.
98
00:04:09,000 --> 00:04:11,000
We've already seen the process
99
00:04:11,000 --> 00:04:12,000
by going through the data source settings.
100
00:04:12,000 --> 00:04:14,000
What you can actually do here
101
00:04:14,000 --> 00:04:17,000
is from your source applied step, click
102
00:04:17,000 --> 00:04:20,000
on this gear icon and this brings you back
103
00:04:20,000 --> 00:04:23,000
to that same exact place where you can now browse
104
00:04:23,000 --> 00:04:26,000
for the correct file path or the file location, right?
105
00:04:26,000 --> 00:04:30,000
So, we'll click on our product lookup, same process, Open,
106
00:04:30,000 --> 00:04:34,000
click OK, and that's been updated again.
107
00:04:34,000 --> 00:04:37,000
If we go down to our last applied step,
108
00:04:37,000 --> 00:04:38,000
everything looks great.
109
00:04:38,000 --> 00:04:40,000
It's been updated, no data loss
110
00:04:40,000 --> 00:04:42,000
and we've successfully reverted
111
00:04:42,000 --> 00:04:44,000
that file name back to its original name.
112
00:04:44,000 --> 00:04:46,000
Hopefully, that was a helpful demo
113
00:04:46,000 --> 00:04:49,000
on how to address some of those data source errors
114
00:04:49,000 --> 00:04:51,000
using the data source setting options.
9169
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.