All language subtitles for 13. Appending Queries in Power BI Desktop

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,870 --> 00:00:01,110 All right. 2 00:00:01,110 --> 00:00:07,260 Next up we've got pending queries and you'll find that a pen queries tool right under merge in the Home 3 00:00:07,260 --> 00:00:08,610 tab of the query editor. 4 00:00:08,910 --> 00:00:12,660 When you click that button you'll see a really simple dialog box like this. 5 00:00:12,840 --> 00:00:17,250 Or you can choose to append either two tables or three or more. 6 00:00:17,250 --> 00:00:24,210 Now both merging and appending are similar in that they're adding information to an existing table but 7 00:00:24,230 --> 00:00:31,130 they're different in that merging is adding columns and appending is stacking rows. 8 00:00:31,220 --> 00:00:38,900 So basically appending queries allows you to combine or stack two tables assuming they share the exact 9 00:00:38,900 --> 00:00:42,130 same column structure and data types. 10 00:00:42,200 --> 00:00:43,480 So keep that in mind. 11 00:00:43,520 --> 00:00:46,190 Same structure same data types. 12 00:00:46,220 --> 00:00:51,710 So in this case that we're looking at here where appending two tables together there two different adventure 13 00:00:51,710 --> 00:01:00,110 work sales tables one from 2015 one from 2016 and it's a valid pen since they both share identical table 14 00:01:00,110 --> 00:01:01,310 structures. 15 00:01:01,310 --> 00:01:08,810 So just like we talked about merging makes tables wider by adding more columns pending makes tables 16 00:01:08,840 --> 00:01:11,520 taller by adding more rows. 17 00:01:11,570 --> 00:01:16,880 Now protip here than I want to share with you which will actually dive into with the demo in the next 18 00:01:16,880 --> 00:01:21,470 lecture is to use the folder option from the get Data menu. 19 00:01:21,920 --> 00:01:28,170 And what that lets you do is actually Point Power be-I to a folder containing as many files as each 20 00:01:28,170 --> 00:01:34,510 choose which allows you to append all of them at once assuming they share that same structure. 21 00:01:34,610 --> 00:01:41,390 And the beauty of it is that over time if you add new files or remove files simply refreshing that query 22 00:01:41,420 --> 00:01:47,180 that connection will automatically append any new data that's shown up within that folder. 23 00:01:47,180 --> 00:01:51,090 So it's a really powerful option that will dive into in the next video. 24 00:01:51,530 --> 00:01:56,920 But for now let's cover the basic penned option and shift gears and the power be so we can take a look. 25 00:01:58,570 --> 00:02:00,430 OK so I'm here in the query editor. 26 00:02:00,720 --> 00:02:07,540 I'm inside of my A.W. sales 20:17 table and because I've got four different tables here each with a 27 00:02:07,540 --> 00:02:09,190 different column structure. 28 00:02:09,370 --> 00:02:13,500 There's nothing that I can really use to append with what I've got on hand. 29 00:02:13,660 --> 00:02:18,560 So I know that I'm going to need to grab some new data can do that right from the editor by clicking 30 00:02:18,570 --> 00:02:25,410 news source text cxxviii and I want to grab my other two adventure work sales files. 31 00:02:25,630 --> 00:02:35,010 So grab 20:16 first see the preview and can press OK to load straight into the editor. 32 00:02:35,220 --> 00:02:37,250 And why don't we update the table name. 33 00:02:37,380 --> 00:02:44,040 While we're thinking of it A.W. sales 2016 and we'll repeat that process. 34 00:02:44,700 --> 00:02:51,900 New Source cxxviii for the 2015 file or so came from the preview 35 00:02:54,690 --> 00:02:56,670 LEIGH SALES 2015. 36 00:02:57,030 --> 00:02:57,440 OK. 37 00:02:57,590 --> 00:03:05,460 So now you've got three separate A.W. sales files all of which are consistent in terms of the columns. 38 00:03:05,510 --> 00:03:12,250 There's 2015 2016 with one exception in 2017. 39 00:03:13,040 --> 00:03:19,380 Which is that new quantity type column that we added in when we practice that conditional column tool. 40 00:03:19,430 --> 00:03:24,180 So one option would be to go ahead and continue to append these together. 41 00:03:24,320 --> 00:03:30,200 You'll see some null values for the quantity types in the other two tables and you could pretty easily 42 00:03:30,320 --> 00:03:34,150 redefine that conditional column to the full appended version. 43 00:03:34,190 --> 00:03:37,380 In this case we're not going to be using this column for anything. 44 00:03:37,430 --> 00:03:39,360 So let's go ahead and just remove it. 45 00:03:40,640 --> 00:03:41,440 There we go. 46 00:03:41,690 --> 00:03:47,130 And now we've got a perfectly consistent table structure across all three. 47 00:03:47,140 --> 00:03:53,660 So now with one of them selected doesn't matter which one you start with 20:17 in my home tab. 48 00:03:53,890 --> 00:03:59,020 Let's go to append queries and this time instead of the first option. 49 00:03:59,080 --> 00:04:04,600 Got that same choice that we had with merge where you can either append within the existing table or 50 00:04:04,600 --> 00:04:06,170 as a brand new table. 51 00:04:06,370 --> 00:04:09,280 This time let's try the new table. 52 00:04:09,310 --> 00:04:13,670 So when I click that button this time we have more than two tables to pen. 53 00:04:13,660 --> 00:04:19,260 We have three or more and it's automatically populated the first one that I've selected. 54 00:04:19,270 --> 00:04:25,420 So the only other two that I need are sales 2016 and sales 2015. 55 00:04:25,720 --> 00:04:27,790 So we can go ahead and press OK. 56 00:04:28,270 --> 00:04:30,160 And it creates a new table. 57 00:04:30,220 --> 00:04:30,920 It names it. 58 00:04:30,930 --> 00:04:33,150 Append one by default. 59 00:04:33,160 --> 00:04:43,580 Let's go ahead and change that to something like A.W. underscore sales underscore 2015 through 2017. 60 00:04:43,600 --> 00:04:45,780 Just to be clear. 61 00:04:45,930 --> 00:04:53,230 And now it can look through column structures look exactly as we'd expect same column structure as each 62 00:04:53,230 --> 00:04:54,410 component table. 63 00:04:54,730 --> 00:05:01,270 And now when we sort these order dates let's sort them ascending and we see that the table now starts 64 00:05:01,360 --> 00:05:04,270 on January 1st 2015. 65 00:05:04,270 --> 00:05:12,810 And if we expand and load more see the full list you can actually scroll all the way down and see that 66 00:05:12,810 --> 00:05:16,460 it takes us all the way to the end of June 2017. 67 00:05:17,280 --> 00:05:19,010 With 2016 dates in between. 68 00:05:19,010 --> 00:05:23,220 So you've got dates from all three of those sales tables. 69 00:05:23,220 --> 00:05:23,940 So that's great. 70 00:05:23,970 --> 00:05:31,710 We've successfully appended the sales data from our three individual tables into one dependent version. 71 00:05:31,980 --> 00:05:37,800 But one downside of this approach is that now that I've got the table that I want with all the data 72 00:05:37,830 --> 00:05:43,200 in one place let's say I want to get rid of these older individual tables just because they're taking 73 00:05:43,200 --> 00:05:48,620 up space by right click and try to delete the 20:15 query. 74 00:05:48,630 --> 00:05:56,250 It won't let me because it's being referenced by another query that appended 25 through 2017 table that 75 00:05:56,250 --> 00:05:57,510 we just created. 76 00:05:57,510 --> 00:06:04,920 So the problem here is that our new table or 2015 through 2017 table is dependent on the other three. 77 00:06:04,920 --> 00:06:08,820 So we have to kind of keep all four of them here which is OK. 78 00:06:08,910 --> 00:06:13,030 There's nothing wrong with that it's not going to create any big problems. 79 00:06:13,140 --> 00:06:15,330 It just feels a little bit messy. 80 00:06:15,330 --> 00:06:22,560 So one way around that which I very much recommend is to move these files into a folder and then connect 81 00:06:22,560 --> 00:06:24,030 to the folder itself. 82 00:06:24,480 --> 00:06:29,140 So stay tuned because in the next video I'm going to show you exactly how to do that. 8488

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