All language subtitles for 002 Creating and Managing Relationships in Power BI_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:05,190 --> 00:00:07,710 Welcome to the section on relationships. 2 00:00:07,800 --> 00:00:12,960 So previously in the course we did spend a bit of time on relationships when we used our data master 3 00:00:12,960 --> 00:00:17,070 and we saw that we could have two different files and create a relationship between them. 4 00:00:17,100 --> 00:00:21,630 However, there had to be some rules in place as to how we were going to be able to connect them. 5 00:00:21,810 --> 00:00:25,710 So we're going to spend a little bit more time in this section just to understanding our relationships 6 00:00:25,710 --> 00:00:26,700 and what we can do. 7 00:00:26,880 --> 00:00:31,380 We're going to be using a new file of data for this section, so we're going to be looking at some human 8 00:00:31,380 --> 00:00:32,490 resource data. 9 00:00:32,700 --> 00:00:38,220 What we've got is that we've actually got an employee master file and then we've got a file that keeps 10 00:00:38,220 --> 00:00:41,240 a list of all the training courses that the employees have been on. 11 00:00:41,250 --> 00:00:45,290 So we're going to look at how we could use those two tables of data to be able to create our power by 12 00:00:45,300 --> 00:00:46,200 our reports. 13 00:00:46,440 --> 00:00:50,940 Now, you'll see that currently on the screen that we've got the Excel Open and we're having a look 14 00:00:50,940 --> 00:00:52,620 at this employee master file. 15 00:00:52,740 --> 00:00:55,700 So you see that the first sheet is our master. 16 00:00:55,710 --> 00:01:00,750 And what we've got is we've got a list of all our employees and there's about 50 employees in this list. 17 00:01:00,780 --> 00:01:02,260 There we go, 50 employees. 18 00:01:02,280 --> 00:01:06,930 So each one has a unique employee ID go to who the employee is. 19 00:01:06,930 --> 00:01:10,960 Birthdate, marital status, hire, date department, salary, job gate. 20 00:01:10,980 --> 00:01:13,860 So there's a bit of information there about the employee. 21 00:01:14,280 --> 00:01:18,150 Now, if we jump across, you'll see that there is another table of data called workshops. 22 00:01:18,360 --> 00:01:19,290 And the workshops. 23 00:01:19,290 --> 00:01:23,820 What we've got is a list of all the training courses that our employees have been on. 24 00:01:23,940 --> 00:01:29,790 So if we have a look over here, we can see that a training course was run and we given it a course 25 00:01:29,790 --> 00:01:32,070 code, what the course name was about. 26 00:01:32,190 --> 00:01:36,990 But then we can see that there's a list of which employees actually went on to that course and we're 27 00:01:36,990 --> 00:01:40,290 using the employee ID to be able to reference that. 28 00:01:40,440 --> 00:01:44,700 So what we've got now is in the master file, we've got the employee ID and in the workshops we've got 29 00:01:44,700 --> 00:01:46,980 the employee, and that is our primary key. 30 00:01:46,980 --> 00:01:50,070 That is the way that we can link the two tables together. 31 00:01:50,340 --> 00:01:55,170 Now in the workshops we can have an employee has been on many different training courses, whereas in 32 00:01:55,170 --> 00:01:57,900 the master file an employee can only exist once. 33 00:01:57,900 --> 00:02:03,060 So please remember that many to one relationship can only have the employee once. 34 00:02:03,060 --> 00:02:06,540 They're actually only one employee, but they can go on many training courses. 35 00:02:07,140 --> 00:02:09,240 So as I say, we're going to use this data in our power. 36 00:02:09,270 --> 00:02:12,120 BI We're going to jump back to Power BI We're going to bring this data in. 37 00:02:12,170 --> 00:02:14,130 They're going to start with a new Power BI. 38 00:02:14,160 --> 00:02:16,890 So please just start with a new Power BI desktop. 39 00:02:17,480 --> 00:02:22,230 Okay, so we're back in Power BI desktop now and we're going to use our import data from Excel. 40 00:02:22,230 --> 00:02:23,990 So I'm just going to select this option. 41 00:02:24,000 --> 00:02:26,670 So we're going to be selecting the employee master file. 42 00:02:26,670 --> 00:02:31,950 So please click on that and then click on Open and you'll see then it will create the connection to 43 00:02:31,950 --> 00:02:34,380 the file and we'll bring up our navigator. 44 00:02:34,680 --> 00:02:36,480 And again, you can see that I've got two views. 45 00:02:36,480 --> 00:02:39,350 I've got the table view and I've also got the sheets view. 46 00:02:39,360 --> 00:02:42,450 So if we look at this, you'll see that this is my master sheet. 47 00:02:42,450 --> 00:02:45,540 And if we look at our workshops, this is my workshop view. 48 00:02:45,540 --> 00:02:49,830 So just select the first two tables that will bring in the master and the workshops. 49 00:02:50,100 --> 00:02:52,590 In this case, I'm just going to load this data straight in. 50 00:02:52,590 --> 00:02:57,750 So we're going to select load and we're going to bring the two tables of data in so you can see it creates 51 00:02:57,750 --> 00:02:58,350 a connection. 52 00:02:58,350 --> 00:02:59,460 Loading the data. 53 00:02:59,460 --> 00:03:03,930 And as we see in previously, now under our fields, we've now got the two tables. 54 00:03:04,440 --> 00:03:09,150 So you can open these up and you can see the different fields that are available to them. 55 00:03:09,450 --> 00:03:11,610 And also, if you wanted to, you could change these. 56 00:03:11,610 --> 00:03:16,230 So if you're not happy with the table name of Master, you could just go into this and remove the one, 57 00:03:16,590 --> 00:03:22,530 make it just the master table could go into this workshop table when we move the two and we could just 58 00:03:22,530 --> 00:03:24,840 have the actual workshop table itself. 59 00:03:25,870 --> 00:03:26,890 Just remove that. 60 00:03:26,920 --> 00:03:27,760 There we go. 61 00:03:28,770 --> 00:03:30,660 Okay, so let's start off with the relationship. 62 00:03:30,660 --> 00:03:34,740 So we've seen previously we can go to our navigation, we can go to a model. 63 00:03:34,830 --> 00:03:41,190 And what it did was that it shows me both my tables and in this case, Microsoft has picked up that 64 00:03:41,190 --> 00:03:43,380 there's actually a already a connection. 65 00:03:43,380 --> 00:03:47,340 So you can see that it's already created a relationship between the two. 66 00:03:47,610 --> 00:03:51,780 Now, if I go over the relationship, you can see that it's done in between the two employee IDs. 67 00:03:51,780 --> 00:03:55,190 So it kind of figured out that there's a relationship and automatically created this. 68 00:03:55,200 --> 00:03:58,260 However, I want to show you the different ways that we can create the relationship. 69 00:03:58,260 --> 00:03:59,850 So I'm going to start by deleting this. 70 00:03:59,970 --> 00:04:04,920 One of the ways I can delete this is to select the line, right click on it, and then I can just choose 71 00:04:04,920 --> 00:04:05,940 the delete option. 72 00:04:06,030 --> 00:04:07,820 I would want to delete the relationships. 73 00:04:07,860 --> 00:04:08,760 Yes, I do. 74 00:04:09,240 --> 00:04:09,510 Okay. 75 00:04:09,510 --> 00:04:13,500 Now you remember from previous in the course that one of the ways we can create this is we can choose 76 00:04:13,500 --> 00:04:14,140 the field. 77 00:04:14,160 --> 00:04:19,680 Let's say we're choosing our employee ID field and I could just take it across and I can actually find 78 00:04:19,680 --> 00:04:24,180 the other employee ID field in our workshops and I could drop it on there. 79 00:04:24,180 --> 00:04:28,380 And you can see automatically now that the relationship has been created. 80 00:04:28,380 --> 00:04:32,460 So the one is on this side, the relationship direction, the menu on this side. 81 00:04:32,880 --> 00:04:36,810 However, what I want to do is also just show you other ways that you can create the relationship. 82 00:04:36,810 --> 00:04:39,180 So I'm going to delete this delete relationship. 83 00:04:39,720 --> 00:04:45,120 If you go up into your ribbon, you will see that you get managed relationships as an option. 84 00:04:45,120 --> 00:04:49,260 So we're going to select, manage relationships and currently it tells me there's no relationship. 85 00:04:49,260 --> 00:04:51,570 So we're going to say we want a new relationship. 86 00:04:52,340 --> 00:04:54,110 First is which table do you want to use? 87 00:04:54,110 --> 00:04:55,820 So we're going to use the master table. 88 00:04:56,240 --> 00:05:01,640 Now, the way that you do this is you just choose your table and then you choose which field you want 89 00:05:01,640 --> 00:05:03,500 to create the relationship with. 90 00:05:03,590 --> 00:05:07,820 So in this case, we're not using employee name, but if you wanted to use employee name, you just 91 00:05:07,820 --> 00:05:09,730 click on it or birth date. 92 00:05:09,740 --> 00:05:13,970 In this case, though, we do want to use employee ID, so just make sure the employee ID is selected. 93 00:05:13,970 --> 00:05:14,990 Just click on it. 94 00:05:15,470 --> 00:05:19,740 Then we are using our other table as our workshops and it's the same logic. 95 00:05:19,760 --> 00:05:22,730 You just pick which field you want to be the connector. 96 00:05:22,760 --> 00:05:24,620 Now, again, in this case it's going to be employee. 97 00:05:25,850 --> 00:05:27,560 Now you can see the commonality in this case. 98 00:05:27,560 --> 00:05:29,720 We want to want to many relationship. 99 00:05:30,110 --> 00:05:34,100 Also, it asked me what is the cross filter direction Now in this case we're going to keep it singles. 100 00:05:34,100 --> 00:05:39,710 We only want the data to be able to move in one direction and we're going to make sure that the relationship 101 00:05:39,710 --> 00:05:40,400 is active. 102 00:05:40,400 --> 00:05:41,750 So we're going to click okay on that. 103 00:05:41,870 --> 00:05:44,020 So now we've created the relationship. 104 00:05:44,030 --> 00:05:48,440 At any point, if you wanted to, you could go back in and edit this and make any changes. 105 00:05:48,710 --> 00:05:49,730 So we'll close that. 106 00:05:49,730 --> 00:05:54,830 And now you can see that the relationships been shown, so you can just make your relationship through 107 00:05:54,830 --> 00:05:55,840 different methods. 108 00:05:55,850 --> 00:05:57,740 However, we now got the relationship in place. 109 00:05:57,740 --> 00:05:59,360 So let's go back to our report. 110 00:05:59,630 --> 00:06:07,610 Let's look at a table and let's say, for example, that we wanted to know what was the total training 111 00:06:07,610 --> 00:06:09,110 cost by different departments. 112 00:06:09,110 --> 00:06:15,290 So Department is in our master, so we select that our cost is in our workshop, we select that. 113 00:06:15,290 --> 00:06:20,540 And now because we've got the relationship between the two tables, it's now able to calculate that 114 00:06:20,540 --> 00:06:22,340 and to produce that. 115 00:06:22,430 --> 00:06:25,210 So basically you can do this for any visualization. 116 00:06:25,220 --> 00:06:32,000 Let's say, for example, you wanted a column chart, you wanted now to say it's going here and let's 117 00:06:32,000 --> 00:06:34,070 say you wanted to see it by different job grades. 118 00:06:34,310 --> 00:06:35,950 Drop that in your x axis. 119 00:06:36,050 --> 00:06:39,650 Going to say you wanted to see the total cost drop in your Y axis. 120 00:06:39,650 --> 00:06:40,570 And there we go. 121 00:06:40,580 --> 00:06:44,090 You've now got the relationship between the two tables. 122 00:06:45,010 --> 00:06:45,250 Okay. 123 00:06:45,250 --> 00:06:46,710 So we're going to conclude the lesson there. 124 00:06:46,720 --> 00:06:48,070 I will see you in the next one. 12440

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