All language subtitles for 007 SOLUTION Table Transformations_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: Welcome to the assignment 2 00:00:01,000 --> 00:00:03,000 solution walkthrough. 3 00:00:03,000 --> 00:00:04,000 As a quick reminder, 4 00:00:04,000 --> 00:00:05,000 Ethan reached out to us, 5 00:00:05,000 --> 00:00:08,000 asking if we could connect to two new tables, 6 00:00:08,000 --> 00:00:10,000 our Product Category Lookup 7 00:00:10,000 --> 00:00:12,000 and the Product Subcategory Lookup, 8 00:00:12,000 --> 00:00:14,000 and also make some transformations 9 00:00:14,000 --> 00:00:16,000 to the Product Lookup Table. 10 00:00:17,000 --> 00:00:20,000 So, here's a solution preview of what you should see 11 00:00:20,000 --> 00:00:24,000 in the query editor once you've completed the assignment. 12 00:00:24,000 --> 00:00:26,000 Keep in mind that depending on how you approached 13 00:00:26,000 --> 00:00:28,000 solving Ethan's request, 14 00:00:28,000 --> 00:00:29,000 your applied steps may look 15 00:00:29,000 --> 00:00:31,000 a little bit different than mine, 16 00:00:31,000 --> 00:00:33,000 and that's totally fine. 17 00:00:33,000 --> 00:00:34,000 The most important thing 18 00:00:34,000 --> 00:00:37,000 is that you end up with four tables in the Query Editor 19 00:00:37,000 --> 00:00:41,000 and the proper transformations made to the tables. 20 00:00:41,000 --> 00:00:42,000 So, with that, jump on in. 21 00:00:42,000 --> 00:00:44,000 All right, so up first, 22 00:00:44,000 --> 00:00:47,000 we needed to create two new queries 23 00:00:47,000 --> 00:00:49,000 to connect to our Product Category Lookup 24 00:00:49,000 --> 00:00:52,000 and our Subcategory Lookup. 25 00:00:52,000 --> 00:00:55,000 So, we're gonna go back to our AdventureWorks file 26 00:00:56,000 --> 00:00:59,000 and I'm gonna grab the Product Category Lookup. 27 00:01:01,000 --> 00:01:03,000 Right? Very basic table here. 28 00:01:03,000 --> 00:01:04,000 Click OK. 29 00:01:06,000 --> 00:01:08,000 This loads into the Query Editor. 30 00:01:08,000 --> 00:01:09,000 And then I'm gonna come back 31 00:01:11,000 --> 00:01:14,000 and we're gonna connect to the Subcategory Lookup now. 32 00:01:16,000 --> 00:01:17,000 All right, same deal here. 33 00:01:17,000 --> 00:01:20,000 Three column Lookup table here. 34 00:01:20,000 --> 00:01:21,000 Data preview looks good. 35 00:01:22,000 --> 00:01:26,000 And great, so, we've got both of these tables loaded in. 36 00:01:26,000 --> 00:01:29,000 Next, we need to update the Product Category 37 00:01:29,000 --> 00:01:32,000 and Product Subcategory Lookup table names. 38 00:01:33,000 --> 00:01:37,000 So from here, we'll remove the AdventureWorks piece, 39 00:01:37,000 --> 00:01:40,000 and again, product space subcategory space lookup. 40 00:01:40,000 --> 00:01:41,000 Looks good. 41 00:01:42,000 --> 00:01:44,000 We'll lock that in. 42 00:01:45,000 --> 00:01:48,000 And then same deal here for the Product Category Lookup. 43 00:01:50,000 --> 00:01:51,000 All right, our third key objective 44 00:01:51,000 --> 00:01:54,000 was to confirm that the column headers have been promoted 45 00:01:54,000 --> 00:01:57,000 and that all data types are correct. 46 00:01:57,000 --> 00:02:00,000 So, from the Category Lookup table here, 47 00:02:00,000 --> 00:02:02,000 we have a Product Category key. 48 00:02:02,000 --> 00:02:05,000 All right, this is set as a whole number, 49 00:02:05,000 --> 00:02:06,000 so that looks good. 50 00:02:06,000 --> 00:02:11,000 And then we have a text data type for our category name. 51 00:02:11,000 --> 00:02:13,000 So, everything looks good here. 52 00:02:13,000 --> 00:02:15,000 We'll check the Product Subcategory real quick. 53 00:02:15,000 --> 00:02:18,000 And again, at first glance, everything looks great here. 54 00:02:18,000 --> 00:02:21,000 Our column headers have been promoted. 55 00:02:21,000 --> 00:02:22,000 We have our correct data types. 56 00:02:22,000 --> 00:02:24,000 Right, whole number, text, 57 00:02:24,000 --> 00:02:27,000 another whole number for our Product Category key. 58 00:02:27,000 --> 00:02:29,000 All of that checks out. 59 00:02:29,000 --> 00:02:32,000 Our fourth key objective here is to add a new column 60 00:02:32,000 --> 00:02:35,000 to extract all characters before the dash 61 00:02:35,000 --> 00:02:38,000 and product SKU and name it SKU Type. 62 00:02:38,000 --> 00:02:39,000 So for this, 63 00:02:39,000 --> 00:02:42,000 we've gotta head to our Product Lookup table. 64 00:02:42,000 --> 00:02:43,000 Right? 65 00:02:43,000 --> 00:02:46,000 And we need to add a new column 66 00:02:46,000 --> 00:02:48,000 that's gonna be based on Product SKU. 67 00:02:48,000 --> 00:02:50,000 So we'll click the Product SKU column, 68 00:02:50,000 --> 00:02:53,000 head up to Add New Column. 69 00:02:53,000 --> 00:02:55,000 Wanna head to this Extract option. 70 00:02:55,000 --> 00:02:59,000 And then we're gonna do Text Before Delimeter. 71 00:02:59,000 --> 00:03:00,000 Right? So what we wanna do 72 00:03:00,000 --> 00:03:02,000 is we want to extract all the characters 73 00:03:02,000 --> 00:03:05,000 before the dash and Product SKU. 74 00:03:05,000 --> 00:03:08,000 So this is gonna bring up a dialogue box, 75 00:03:08,000 --> 00:03:12,000 and all we need to do is enter the delimiter here, 76 00:03:12,000 --> 00:03:13,000 which is that first dash. 77 00:03:15,000 --> 00:03:17,000 So we've added a new applied step here. 78 00:03:17,000 --> 00:03:19,000 Insert a Text Before Delimeter. 79 00:03:19,000 --> 00:03:23,000 New columns are added on the far right of the table. 80 00:03:23,000 --> 00:03:25,000 So we've got our column here 81 00:03:25,000 --> 00:03:27,000 with the first two values extracted, 82 00:03:27,000 --> 00:03:32,000 and now, we can double-click and rename this SKU Type. 83 00:03:35,000 --> 00:03:37,000 All right, so that's our fourth step. 84 00:03:37,000 --> 00:03:40,000 Fifth, we need to update the SKU Type calculation 85 00:03:40,000 --> 00:03:41,000 to return all characters 86 00:03:41,000 --> 00:03:45,000 before the second dash instead of the first. 87 00:03:45,000 --> 00:03:47,000 So what we can do 88 00:03:47,000 --> 00:03:49,000 is come back over here to our applied steps, 89 00:03:49,000 --> 00:03:52,000 and if we click on this little gear icon, 90 00:03:54,000 --> 00:03:57,000 we have Advanced Options here, right? 91 00:03:57,000 --> 00:03:59,000 And then scan for the the delimeter 92 00:03:59,000 --> 00:04:00,000 from the start of the input, 93 00:04:00,000 --> 00:04:03,000 and then number of delimeters to skip, right? 94 00:04:03,000 --> 00:04:06,000 So we're gonna skip the first instance. 95 00:04:06,000 --> 00:04:10,000 So we've returned everything before the second dash. 96 00:04:12,000 --> 00:04:14,000 Again, we'll kind of scroll back. 97 00:04:15,000 --> 00:04:18,000 Rename column and then perfect. 98 00:04:18,000 --> 00:04:21,000 Right, now we have all of the values 99 00:04:21,000 --> 00:04:25,000 within that column returned before the second dash 100 00:04:25,000 --> 00:04:27,000 instead of the first. 101 00:04:27,000 --> 00:04:29,000 All right, so our sixth key objective here 102 00:04:29,000 --> 00:04:33,000 is to replace zeros in the Product Style column with NA. 103 00:04:33,000 --> 00:04:36,000 So we'll click on the Product Style column, 104 00:04:36,000 --> 00:04:40,000 head up to the Transform menu, and then Replace Values. 105 00:04:40,000 --> 00:04:42,000 And again, this is gonna launch a dialogue box here. 106 00:04:42,000 --> 00:04:45,000 The value to find is going to be zero 107 00:04:45,000 --> 00:04:49,000 and we wanna replace that with NA, right? 108 00:04:49,000 --> 00:04:50,000 So we can click in here 109 00:04:51,000 --> 00:04:53,000 and see that all of those zero values 110 00:04:53,000 --> 00:04:55,000 were now replaced with NA. 111 00:04:55,000 --> 00:04:57,000 And we'll cancel this. 112 00:04:57,000 --> 00:04:59,000 And now our last step is to close 113 00:04:59,000 --> 00:05:01,000 and load this into the data model. 114 00:05:01,000 --> 00:05:04,000 So come back Home, click Close and Apply. 115 00:05:08,000 --> 00:05:11,000 So, we can see we've got our four tables 116 00:05:11,000 --> 00:05:13,000 all loaded from our Report View. 117 00:05:15,000 --> 00:05:19,000 And see the same thing in our Data View. 118 00:05:19,000 --> 00:05:23,000 Lookup Subcategory, our Territory Lookup. 119 00:05:23,000 --> 00:05:26,000 And then if we go back into our Data Model View, 120 00:05:26,000 --> 00:05:28,000 again, I'll scroll out here, 121 00:05:28,000 --> 00:05:31,000 and you can see all four tables loaded. 122 00:05:31,000 --> 00:05:33,000 All right, so, perfect. 123 00:05:33,000 --> 00:05:35,000 Make sure that you guys are saving your workbooks 124 00:05:35,000 --> 00:05:36,000 as you go along. 125 00:05:36,000 --> 00:05:37,000 And that's gonna wrap it up 126 00:05:37,000 --> 00:05:39,000 for this assignment solution walkthrough. 9516

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