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
Instructor: Next up, I want to take just a second
2
00:00:02,000 --> 00:00:04,000
to talk about refreshing queries.
3
00:00:04,000 --> 00:00:07,000
Now, in the Home tab of your Power BI file,
4
00:00:07,000 --> 00:00:09,000
outside of the Query Editor,
5
00:00:09,000 --> 00:00:12,000
you'll see this Refresh button across all of your views.
6
00:00:12,000 --> 00:00:15,000
And by default, when you press this button,
7
00:00:15,000 --> 00:00:18,000
it's going to refresh every single query, every connection,
8
00:00:18,000 --> 00:00:22,000
every table that exists in your model by default.
9
00:00:22,000 --> 00:00:25,000
But you can customize those refresh options.
10
00:00:26,000 --> 00:00:28,000
So within the Query Editor and the Queries pane,
11
00:00:28,000 --> 00:00:29,000
you can actually right-click
12
00:00:29,000 --> 00:00:32,000
any one of the individual connections or tables
13
00:00:32,000 --> 00:00:34,000
and you can simply deselect
14
00:00:34,000 --> 00:00:38,000
or uncheck the box that says Include in report refresh.
15
00:00:38,000 --> 00:00:39,000
All right, this is located
16
00:00:39,000 --> 00:00:41,000
just below the Enable Load button
17
00:00:41,000 --> 00:00:45,000
that we've been clicking on and off in the previous lessons.
18
00:00:45,000 --> 00:00:46,000
As you might expect,
19
00:00:46,000 --> 00:00:47,000
this prevents that file
20
00:00:47,000 --> 00:00:50,000
from refreshing whenever you hit the Refresh command
21
00:00:50,000 --> 00:00:52,000
from the Home tab.
22
00:00:52,000 --> 00:00:54,000
So helpful pro tip here,
23
00:00:54,000 --> 00:00:56,000
what you can do is exclude all of your queries
24
00:00:56,000 --> 00:00:58,000
that don't change often
25
00:00:58,000 --> 00:00:59,000
or maybe don't change at all,
26
00:00:59,000 --> 00:01:03,000
like your lookup tables or any static data tables
27
00:01:03,000 --> 00:01:04,000
that you might have.
28
00:01:04,000 --> 00:01:06,000
So let's go ahead and we'll open up the Query Editor,
29
00:01:06,000 --> 00:01:09,000
and we'll make some of these adjustments ourselves.
30
00:01:10,000 --> 00:01:13,000
All right, so here I am back in the Query Editor.
31
00:01:13,000 --> 00:01:16,000
And again I'm gonna collapse these Demo Queries.
32
00:01:16,000 --> 00:01:18,000
And for our Other Queries here,
33
00:01:18,000 --> 00:01:20,000
you can see we've got our Territory Lookup,
34
00:01:20,000 --> 00:01:24,000
Product Lookup, Subcategory, Customer, Calendar lookup,
35
00:01:24,000 --> 00:01:25,000
our Rolling Calendar, right?
36
00:01:25,000 --> 00:01:27,000
We've got a whole bunch of tables here.
37
00:01:27,000 --> 00:01:30,000
And if I right-click into these lookups,
38
00:01:30,000 --> 00:01:33,000
you can see we have Include in report refresh.
39
00:01:33,000 --> 00:01:35,000
And I can scroll down on each of these,
40
00:01:35,000 --> 00:01:37,000
and they're all selected to be included
41
00:01:37,000 --> 00:01:39,000
within the report refresh.
42
00:01:39,000 --> 00:01:42,000
In fact, if I go back to my Data Model view,
43
00:01:42,000 --> 00:01:45,000
and I refresh all of my queries here,
44
00:01:45,000 --> 00:01:47,000
you'll see that we have all of our tables,
45
00:01:47,000 --> 00:01:49,000
our lookups, right,
46
00:01:49,000 --> 00:01:52,000
Customer, the Rolling Calendar, Sales Data,
47
00:01:52,000 --> 00:01:55,000
everything is refreshing when I click Refresh
48
00:01:55,000 --> 00:01:59,000
even though nothing has changed with that underlying data.
49
00:01:59,000 --> 00:02:00,000
So there you go.
50
00:02:00,000 --> 00:02:02,000
We've just refreshed all of these tables, right?
51
00:02:02,000 --> 00:02:04,000
And now let's head back into the Query Editor.
52
00:02:05,000 --> 00:02:07,000
And what I want to actually do here is
53
00:02:07,000 --> 00:02:11,000
prevent my lookup tables in that Rolling Calendar table
54
00:02:11,000 --> 00:02:14,000
from being included within the report refresh.
55
00:02:14,000 --> 00:02:17,000
So we'll come into these lookup tables one by one,
56
00:02:17,000 --> 00:02:18,000
Include in report refresh.
57
00:02:18,000 --> 00:02:20,000
If I right-click on this again,
58
00:02:20,000 --> 00:02:22,000
you can see it's now deselected.
59
00:02:22,000 --> 00:02:27,000
Come to Product Lookup, Subcategory,
60
00:02:27,000 --> 00:02:29,000
Category is next,
61
00:02:29,000 --> 00:02:33,000
Customer, Rolling Calendar,
62
00:02:33,000 --> 00:02:36,000
and we'll select our Calendar as well.
63
00:02:36,000 --> 00:02:38,000
So basically all of these lookup tables
64
00:02:38,000 --> 00:02:39,000
in our Calendar table,
65
00:02:39,000 --> 00:02:42,000
because they're not going to be changing,
66
00:02:42,000 --> 00:02:46,000
we have removed them from being refreshed, right?
67
00:02:46,000 --> 00:02:49,000
The only table here is our Sales Data table.
68
00:02:49,000 --> 00:02:52,000
So if we head back over into the data model view,
69
00:02:53,000 --> 00:02:55,000
and now we click Refresh,
70
00:02:55,000 --> 00:02:58,000
you'll notice that it's only that sales table
71
00:02:58,000 --> 00:03:00,000
that's being updated, right?
72
00:03:00,000 --> 00:03:02,000
And that was so much shorter, right?
73
00:03:02,000 --> 00:03:04,000
And that's because now instead of refreshing
74
00:03:04,000 --> 00:03:06,000
all of our lookup tables,
75
00:03:06,000 --> 00:03:08,000
it's just that Sales Data table.
76
00:03:08,000 --> 00:03:09,000
Good rule of thumb,
77
00:03:09,000 --> 00:03:11,000
if you have data that's static
78
00:03:11,000 --> 00:03:13,000
or if you have tables that aren't going to be changing,
79
00:03:13,000 --> 00:03:16,000
go ahead and exclude those from the report refresh
80
00:03:16,000 --> 00:03:19,000
and only refresh the ones that may be changing over time.
6214
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.