All language subtitles for 004 The Power Query Editor_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French Download
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
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:01,000 Instructor: When it comes to connecting to 2 00:00:01,000 --> 00:00:03,000 and transforming data, 3 00:00:03,000 --> 00:00:05,000 the query editor is our cockpit. 4 00:00:05,000 --> 00:00:08,000 Now, in Power BI, from the Home tab, 5 00:00:08,000 --> 00:00:11,000 we've already seen that you can launch the Query Editor 6 00:00:11,000 --> 00:00:14,000 and that there's a lot going on here. 7 00:00:14,000 --> 00:00:16,000 We're gonna be spending most of our time in this section 8 00:00:16,000 --> 00:00:18,000 right here in the editor itself. 9 00:00:18,000 --> 00:00:20,000 But let's take a minute and break down 10 00:00:20,000 --> 00:00:23,000 the components of this interface. 11 00:00:23,000 --> 00:00:24,000 Right up there at the top, 12 00:00:24,000 --> 00:00:26,000 we've got our query editing tools. 13 00:00:26,000 --> 00:00:28,000 This is where we'll find a lot of the tools 14 00:00:28,000 --> 00:00:30,000 that we'll use to shape and transform our data. 15 00:00:32,000 --> 00:00:34,000 Right beneath that, you'll see this formula bar 16 00:00:34,000 --> 00:00:37,000 and it's got some unfamiliar code in there. 17 00:00:37,000 --> 00:00:40,000 This is called M Code, and I didn't actually write it. 18 00:00:40,000 --> 00:00:43,000 This is code that's automatically generated 19 00:00:43,000 --> 00:00:45,000 as you apply different procedures 20 00:00:45,000 --> 00:00:48,000 or transformation steps to your table. 21 00:00:48,000 --> 00:00:51,000 For those of you who are advanced Excel users, 22 00:00:51,000 --> 00:00:53,000 this is exactly what VBA does 23 00:00:53,000 --> 00:00:56,000 as it automatically generates Visual Basic code 24 00:00:56,000 --> 00:00:58,000 while you record a macro. 25 00:00:58,000 --> 00:01:00,000 Now, don't get nervous 26 00:01:00,000 --> 00:01:02,000 because you don't need to even know M Code 27 00:01:02,000 --> 00:01:04,000 to use the query editor. 28 00:01:04,000 --> 00:01:07,000 In fact, we're only gonna touch it a little bit 29 00:01:07,000 --> 00:01:08,000 in a lecture or two. 30 00:01:08,000 --> 00:01:11,000 But just know that you can write custom M code from scratch 31 00:01:11,000 --> 00:01:13,000 or you can edit the M code that's automatically 32 00:01:13,000 --> 00:01:15,000 been generated for you, 33 00:01:15,000 --> 00:01:17,000 but you don't need it in order to use all of the tools 34 00:01:17,000 --> 00:01:20,000 that we're going to cover in this section. 35 00:01:21,000 --> 00:01:24,000 All right, so on the left side of the query editor, 36 00:01:24,000 --> 00:01:26,000 we've got our queries pane that lists out 37 00:01:26,000 --> 00:01:27,000 all of our queries. 38 00:01:27,000 --> 00:01:31,000 Here you can see that I've got nine individual connections 39 00:01:31,000 --> 00:01:34,000 or data queries in place, and you can click through 40 00:01:34,000 --> 00:01:36,000 each query to see previews of your data. 41 00:01:36,000 --> 00:01:40,000 You can edit the properties, change the applied steps, 42 00:01:40,000 --> 00:01:42,000 basically any modifications that you wanna make 43 00:01:42,000 --> 00:01:45,000 to an existing query, you can do so here. 44 00:01:45,000 --> 00:01:48,000 As you select the individual queries, 45 00:01:48,000 --> 00:01:49,000 you'll see this data preview 46 00:01:49,000 --> 00:01:51,000 in the middle of the screen update. 47 00:01:51,000 --> 00:01:53,000 This is where we can spot check and QAR data 48 00:01:53,000 --> 00:01:57,000 and do things like change column types and update headers. 49 00:01:58,000 --> 00:02:01,000 On the right side, we've got our properties pane, 50 00:02:01,000 --> 00:02:03,000 and the most important thing to call out here 51 00:02:03,000 --> 00:02:05,000 is the table name. 52 00:02:05,000 --> 00:02:08,000 Now, it's really important to be strategic and clear 53 00:02:08,000 --> 00:02:10,000 with your table names right off the bat. 54 00:02:10,000 --> 00:02:12,000 One thing to keep in mind is that your table names 55 00:02:12,000 --> 00:02:17,000 should be human readable, like territory space lookup. 56 00:02:17,000 --> 00:02:20,000 Power BI doesn't really care about spaces in between words 57 00:02:20,000 --> 00:02:24,000 and doesn't require the use of underscores or camel case. 58 00:02:24,000 --> 00:02:27,000 So there's no need to create your table and column names 59 00:02:27,000 --> 00:02:30,000 like you would in a SQL or a relational database. 60 00:02:30,000 --> 00:02:32,000 Point here, just try and be strategic 61 00:02:32,000 --> 00:02:34,000 with your table names from the get-go. 62 00:02:35,000 --> 00:02:37,000 And then last, but certainly not least, 63 00:02:37,000 --> 00:02:40,000 the applied steps pane here in the low array. 64 00:02:40,000 --> 00:02:43,000 This is really powerful because what's happening here 65 00:02:43,000 --> 00:02:46,000 is that every time you make a change to your data, 66 00:02:46,000 --> 00:02:48,000 every time you apply some sort of shaping 67 00:02:48,000 --> 00:02:50,000 or transformation operator, 68 00:02:50,000 --> 00:02:54,000 Power BI will record an applied step using M code 69 00:02:54,000 --> 00:02:56,000 and add it to the list here. 70 00:02:56,000 --> 00:02:58,000 And what that means is that every time 71 00:02:58,000 --> 00:03:00,000 this connection is refreshed, 72 00:03:00,000 --> 00:03:04,000 Power BI will run through these same set of applied steps 73 00:03:04,000 --> 00:03:06,000 to shape and transform your data. 74 00:03:06,000 --> 00:03:09,000 And this is a fantastic way to automate data cleansing 75 00:03:09,000 --> 00:03:13,000 and ETL processes instead of having to manually 76 00:03:13,000 --> 00:03:16,000 run the same process over, and over, and over again 77 00:03:16,000 --> 00:03:18,000 each time you connect to the data. 78 00:03:18,000 --> 00:03:22,000 So the query editor really automates the process for you 79 00:03:22,000 --> 00:03:26,000 and you can see each transformation as an applied step. 80 00:03:26,000 --> 00:03:27,000 Perhaps one of the most meaningful things here 81 00:03:27,000 --> 00:03:30,000 is that none of this is actually set in stone. 82 00:03:30,000 --> 00:03:31,000 You can click on the X 83 00:03:31,000 --> 00:03:35,000 next to any of these individual steps to remove it. 84 00:03:35,000 --> 00:03:37,000 You can click through each of your applied steps 85 00:03:37,000 --> 00:03:39,000 to actually visually see the impact 86 00:03:39,000 --> 00:03:41,000 that it's having on your table, 87 00:03:41,000 --> 00:03:44,000 or you can click the gear icon to the right 88 00:03:44,000 --> 00:03:48,000 and modify the individual steps within this process. 89 00:03:49,000 --> 00:03:52,000 So moving on to the Query Editor tools 90 00:03:52,000 --> 00:03:54,000 I wanna just take another minute here 91 00:03:54,000 --> 00:03:57,000 and introduce the three primary tabs or categories. 92 00:03:57,000 --> 00:04:00,000 First, we've got our Home tab. 93 00:04:00,000 --> 00:04:03,000 This includes some general settings, data source settings, 94 00:04:03,000 --> 00:04:06,000 parameters, table properties, et cetera, 95 00:04:06,000 --> 00:04:10,000 as well as some of the most common table transformations. 96 00:04:10,000 --> 00:04:13,000 The next tab, the Transform tab 97 00:04:13,000 --> 00:04:14,000 includes additional tools 98 00:04:14,000 --> 00:04:18,000 that allows you to modify your existing columns. 99 00:04:18,000 --> 00:04:20,000 You can split our group columns, 100 00:04:20,000 --> 00:04:24,000 you can transpose your table, extract text, and much more. 101 00:04:24,000 --> 00:04:26,000 And then finally, the Add column tools 102 00:04:26,000 --> 00:04:30,000 actually create brand new columns within your table 103 00:04:30,000 --> 00:04:31,000 and you can define those new columns 104 00:04:31,000 --> 00:04:34,000 based on things like conditional rules, 105 00:04:34,000 --> 00:04:39,000 text operations calculations, data operators, et cetera. 106 00:04:39,000 --> 00:04:40,000 All right, so up next 107 00:04:40,000 --> 00:04:42,000 we're gonna actually get our hands dirty 108 00:04:42,000 --> 00:04:44,000 with some basic table transformations. 8721

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.