All language subtitles for 005 Date Master Tables_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:06,400 Welcome to this lesson. 2 00:00:06,420 --> 00:00:09,780 So in this lesson, we're going to be speaking about a data master file. 3 00:00:10,020 --> 00:00:15,560 The idea of that master file is that it's going to have already pre configured dates in here. 4 00:00:15,570 --> 00:00:20,700 So this would mean that we don't have to go into each report and create like we have done here a year 5 00:00:20,700 --> 00:00:25,080 field, a month field, the day field and so on, which obviously takes quite a bit of time. 6 00:00:25,470 --> 00:00:29,880 So what we're going to start off by is just in this data model, we're just going to remove these existing 7 00:00:29,880 --> 00:00:30,500 fields. 8 00:00:30,510 --> 00:00:34,980 So one way you can do it is you can right click on the field name and you'll see that there is an option 9 00:00:34,980 --> 00:00:36,000 to delete that. 10 00:00:36,450 --> 00:00:39,670 And you just agree that you want to delete it out of the model. 11 00:00:39,690 --> 00:00:44,970 You can also go to the field itself and you can actually click on the delete key and it will also give 12 00:00:44,970 --> 00:00:46,710 you the option to be able to delete it. 13 00:00:46,740 --> 00:00:47,670 So I'm going to do that. 14 00:00:47,670 --> 00:00:49,920 I'm just going to select each of these fields. 15 00:00:49,950 --> 00:00:55,020 Click on the delete key and we're actually just going to remove those from the data model. 16 00:00:55,080 --> 00:00:58,590 So I'm going to keep myself going to keep my profit, but I'm going to remove my month. 17 00:00:59,400 --> 00:01:00,230 Take that out. 18 00:01:00,240 --> 00:01:01,500 Take our day out. 19 00:01:02,040 --> 00:01:04,080 But we are going to keep our cost. 20 00:01:04,140 --> 00:01:09,720 So we're going to go back to just having our cost, our sales and our profit as our calculated column. 21 00:01:10,350 --> 00:01:12,820 So we're going to add a new Excel file. 22 00:01:12,840 --> 00:01:16,860 But before we add the new Excel file, what I'm going to do is I'm just going to open this in Excel 23 00:01:16,860 --> 00:01:18,860 and we're going to have a look at the structure of this. 24 00:01:18,870 --> 00:01:22,950 So I'm just going to explain how a data master file should be created. 25 00:01:23,460 --> 00:01:28,980 So I've got the data master file open now in Excel, and you can do the same from the course files that 26 00:01:28,980 --> 00:01:30,000 you've downloaded. 27 00:01:30,410 --> 00:01:30,540 Okay. 28 00:01:30,540 --> 00:01:33,790 Let's start off with understanding a little bit of how this needs to be created. 29 00:01:33,810 --> 00:01:36,450 So you can see that I've got my first field. 30 00:01:36,450 --> 00:01:37,750 I've called this master data. 31 00:01:37,770 --> 00:01:43,410 You can give it whatever names you want, but just maybe make it a data that's easy to sort of recognize 32 00:01:43,410 --> 00:01:44,280 and remember. 33 00:01:44,370 --> 00:01:50,250 Now, the first rule is that when you're creating these data files is you must make sure that your date 34 00:01:50,250 --> 00:01:57,630 master has a date that is at least equal to or before the starting date that is in your own reports. 35 00:01:57,810 --> 00:02:04,080 So you've got to make sure that the data is at least equal to or before the starting date of the data 36 00:02:04,080 --> 00:02:06,030 that you are using in your report. 37 00:02:06,060 --> 00:02:07,980 And the same as for the end date. 38 00:02:08,100 --> 00:02:13,010 And you can see that these dates go quite far and I've actually taken them into the future. 39 00:02:13,020 --> 00:02:20,430 So we go to the end of 2024 here and you can see that each date well now encompasses the date range 40 00:02:20,430 --> 00:02:23,310 of the data that you're working with within Power BI. 41 00:02:24,090 --> 00:02:29,010 So that's the first rule is that you've got to make sure that the range of dates incorporates the dates 42 00:02:29,010 --> 00:02:31,080 that are actually in your data file. 43 00:02:31,350 --> 00:02:35,650 The second rule is, is that each of these master dates must be a sequential date. 44 00:02:35,670 --> 00:02:38,880 So normally the easiest way to do that is to create the first two dates. 45 00:02:38,880 --> 00:02:44,820 So if you created the 1st of January 2018, then 2nd of January 2018, if you select both of these and 46 00:02:44,820 --> 00:02:50,190 you go to your autofill and you just drag this down, it will then create the subsequent date for you. 47 00:02:50,190 --> 00:02:53,120 So automatically autofill those dates in. 48 00:02:53,130 --> 00:02:57,740 So just make sure that these though are chronological, that they follow each other. 49 00:02:57,750 --> 00:02:59,490 Please make sure there must be unique. 50 00:02:59,490 --> 00:03:04,950 You cannot have the same date twice and then also that each data is covered. 51 00:03:05,670 --> 00:03:10,210 So those are some of the rules that you need to have, is that you need to cover those master dates. 52 00:03:10,230 --> 00:03:13,920 Once you've done that, you can now create your own fields. 53 00:03:13,920 --> 00:03:15,540 So I've created some examples here. 54 00:03:15,540 --> 00:03:17,610 What we started off with was the day. 55 00:03:17,610 --> 00:03:19,830 So this is just the day of the date. 56 00:03:19,830 --> 00:03:23,250 And you can see that we've used the Excel formula called Equals Day. 57 00:03:23,430 --> 00:03:27,690 And again we got the month number and you can see that we're using the Excel formula equals month. 58 00:03:27,690 --> 00:03:33,240 We got the year, the weekday, the month, the weekday name and the month name. 59 00:03:33,270 --> 00:03:37,530 Now I'm going to go through these in detail and you can have a look at the file and you can look at 60 00:03:37,530 --> 00:03:39,270 the Excel formulas that I've used. 61 00:03:39,360 --> 00:03:41,340 Now, obviously, you can create your own. 62 00:03:41,370 --> 00:03:45,810 One thing I do want to note, there was a lot of people ask about how you do your own fiscal periods 63 00:03:45,810 --> 00:03:46,940 within power by. 64 00:03:47,130 --> 00:03:52,440 Now, this is one way you can definitely do it because you can now map your own fiscal periods within 65 00:03:52,440 --> 00:03:53,000 this file. 66 00:03:53,010 --> 00:03:54,900 So you could add a new column into this. 67 00:03:54,900 --> 00:04:00,510 You could call it your fiscal periods and you can then map as to what this date is against your own 68 00:04:00,510 --> 00:04:01,550 fiscal periods. 69 00:04:01,560 --> 00:04:05,730 And obviously, once you brought it into B, you would then be able to use those fiscal periods. 70 00:04:05,730 --> 00:04:07,950 So that's one example that you could use. 71 00:04:08,530 --> 00:04:09,350 Okay, we're going to close this. 72 00:04:09,360 --> 00:04:13,290 We're going to bring it into Power BI and we're just going to see how we set this up to be able to use 73 00:04:13,290 --> 00:04:13,710 it. 74 00:04:13,990 --> 00:04:16,079 Okay, so we're back in our Power BI desktop. 75 00:04:16,079 --> 00:04:17,700 Let's go back to our home menu. 76 00:04:17,850 --> 00:04:21,300 I'm going to get some new data and we're going to go to our Excel workbooks. 77 00:04:21,300 --> 00:04:23,430 So select Excel workbooks. 78 00:04:23,910 --> 00:04:30,330 So please navigate to where the Udemy resource files are and you're looking for the data master file, 79 00:04:30,330 --> 00:04:32,370 so please select the data master file. 80 00:04:32,410 --> 00:04:37,110 Going to click on the open and it will then do the process that we've seen previously. 81 00:04:37,110 --> 00:04:38,660 It opens up the navigator. 82 00:04:38,670 --> 00:04:41,190 In this case, you'll see that it picks up three sheets of data. 83 00:04:41,190 --> 00:04:45,360 We're just going to be using the first sheet of data, which is called dates can select on that to see 84 00:04:45,360 --> 00:04:47,930 the preview of the data that we've just seen in Excel. 85 00:04:47,940 --> 00:04:52,410 And again, we're just going to load that data straight into our Power BI desktop. 86 00:04:52,410 --> 00:04:56,580 So again, it's going to load that data and you can see now that we're going to have a table called 87 00:04:56,580 --> 00:04:58,140 data, I'm just going to collapse that. 88 00:04:58,140 --> 00:05:00,780 We've also got a date table called date. 89 00:05:00,900 --> 00:05:04,220 And what we're going to be doing in this lesson is we're going to be looking at relationships. 90 00:05:04,230 --> 00:05:06,690 I'm going to be looking at relationships later on in the course as well. 91 00:05:06,720 --> 00:05:08,790 Just its own small little section. 92 00:05:08,790 --> 00:05:14,190 But we're going to need a relationship between these two tables to be able to use our date master. 93 00:05:14,340 --> 00:05:17,040 So let's have a look and see how we would do that. 94 00:05:17,040 --> 00:05:21,570 Now, if we looked over here on our data table, we'll see that we've got a sales date. 95 00:05:21,570 --> 00:05:24,840 So we have a transaction that happened on a specific date. 96 00:05:25,080 --> 00:05:29,070 If we go across to our data table, we've got our master date now in here. 97 00:05:29,070 --> 00:05:33,510 If we were to sort this, let's see if we can actually sort this ascending. 98 00:05:33,510 --> 00:05:39,930 So from earliest you can see then that we would be able to find the master date of that date transaction 99 00:05:39,930 --> 00:05:41,430 that we use for our sales date. 100 00:05:41,430 --> 00:05:46,380 So basically now that we've got the two tables loaded in our power BI, we want to create a relationship 101 00:05:46,380 --> 00:05:47,520 between those tables. 102 00:05:47,520 --> 00:05:50,400 So we're actually going to use this third option called the model. 103 00:05:50,700 --> 00:05:54,780 And you'll see now that it's got both of my tables being shown in the model. 104 00:05:55,490 --> 00:05:59,990 Now, the easiest way to be able to create a relationship is you actually just pick the two fields that 105 00:05:59,990 --> 00:06:00,930 you want to use. 106 00:06:00,950 --> 00:06:05,660 So say, for example, in this case, I want to create a relationship between sales date and master 107 00:06:05,660 --> 00:06:06,140 date. 108 00:06:06,170 --> 00:06:08,010 All I do is I click on the sales date. 109 00:06:08,030 --> 00:06:12,370 I drag it across and you'll see that I'm allowed to go on top of the master date. 110 00:06:12,380 --> 00:06:13,730 So drop it in there. 111 00:06:13,820 --> 00:06:17,660 And you can see now that it's now created a relationship between the two tables. 112 00:06:17,690 --> 00:06:19,870 Now, very importantly, it's telling me a one here. 113 00:06:19,880 --> 00:06:25,690 So what is saying is that there can be many transactions, but there can only be one master date. 114 00:06:25,700 --> 00:06:27,020 And we said that was very important. 115 00:06:27,020 --> 00:06:31,760 When you're setting up your date's master table, is that the master date must only have the date once. 116 00:06:31,760 --> 00:06:34,910 Cannot have it more than one cannot have duplicates. 117 00:06:34,910 --> 00:06:40,270 Otherwise the system will not know which transaction here it would be linking to in which table. 118 00:06:40,280 --> 00:06:42,110 So basically you need to make that. 119 00:06:42,140 --> 00:06:44,870 And you can also see it's got the direction of the relationship here. 120 00:06:44,870 --> 00:06:46,070 So here we got on many. 121 00:06:46,100 --> 00:06:47,120 Here we got a one. 122 00:06:47,120 --> 00:06:50,030 As I said, we're going to cover relationships a little bit later. 123 00:06:50,030 --> 00:06:53,920 But the main part is we've now got that relationship between the two tables. 124 00:06:53,930 --> 00:06:58,130 So now if we go back into our report, let's create a table. 125 00:06:58,130 --> 00:07:05,360 So if we drop a table into our report and you'll see we've obviously got our two tables. 126 00:07:05,360 --> 00:07:11,150 So what we can do now is we can pick our dates and if we picked a master date and dropped it in there, 127 00:07:11,390 --> 00:07:17,000 you'll see now that our master date is there, we can now actually put our sales and you'll see now 128 00:07:17,000 --> 00:07:18,950 the sales is showing me for the master. 129 00:07:18,980 --> 00:07:20,900 Let's actually just make this the most date field. 130 00:07:20,900 --> 00:07:22,370 Let's not have the hierarchy. 131 00:07:22,580 --> 00:07:23,330 So there we go. 132 00:07:23,330 --> 00:07:28,070 We've now got let's actually just sort this as well so you can see the different dates. 133 00:07:28,700 --> 00:07:29,240 There we go. 134 00:07:29,240 --> 00:07:30,320 Now we got our sorting. 135 00:07:30,800 --> 00:07:35,150 So by the master date now, which is in one table, we've now got the summer sales from a different 136 00:07:35,150 --> 00:07:35,510 table. 137 00:07:35,510 --> 00:07:40,850 And that's really what relationships is allowing us to do, is be able to cross between these tables. 138 00:07:40,850 --> 00:07:45,140 But what it does mean now is that I can use any of the fields in this date. 139 00:07:45,230 --> 00:07:47,060 So let's change this a little bit. 140 00:07:47,060 --> 00:07:51,110 Let's say instead of using our master date, let's say we want to use our year. 141 00:07:51,400 --> 00:07:53,840 So we drop our year and there so you'll see. 142 00:07:53,840 --> 00:07:59,360 Now it's summed up the year so we know from previously we want don't summarize and there we go. 143 00:07:59,360 --> 00:08:00,500 We've got our year. 144 00:08:00,500 --> 00:08:05,900 And what I might well want to do in this case is actually go to year and change the default method of 145 00:08:05,900 --> 00:08:08,150 summarization to don't summarize. 146 00:08:08,150 --> 00:08:10,310 So hopefully in the future it won't do that. 147 00:08:10,310 --> 00:08:13,490 And what I could do is that on a month will probably do the same. 148 00:08:13,490 --> 00:08:15,740 So we'll say don't summarize on that. 149 00:08:16,500 --> 00:08:19,020 We could also say that they will do the same. 150 00:08:19,240 --> 00:08:20,880 Let's don't summarize on that. 151 00:08:22,080 --> 00:08:22,200 Okay. 152 00:08:22,420 --> 00:08:24,030 So that should hopefully create that. 153 00:08:24,040 --> 00:08:25,720 Let's change this into a matrix. 154 00:08:25,840 --> 00:08:29,240 So let's have a year and let's put on month number. 155 00:08:29,320 --> 00:08:34,940 So let's go to the month and we drop it that into our columns and you'll see straight away. 156 00:08:34,960 --> 00:08:37,780 Now we've got all our month numbers like we did previously. 157 00:08:37,780 --> 00:08:42,549 We go to all of our years and you'll see that the calculations will be exactly what we saw previously. 158 00:08:43,330 --> 00:08:44,770 Okay, let's just delete this. 159 00:08:44,770 --> 00:08:46,700 I just want to show you another example. 160 00:08:46,720 --> 00:08:49,360 Let's go back now to all week day. 161 00:08:49,540 --> 00:08:50,940 So we got a weekday. 162 00:08:50,950 --> 00:08:53,080 We saw this in the previous lesson. 163 00:08:53,320 --> 00:08:56,290 So take our sales again from the other table. 164 00:08:56,290 --> 00:09:01,510 And again, we can see we got a weekday, we got the sales figures and that's working perfectly. 165 00:09:01,510 --> 00:09:07,060 But again, we've got the problem that we don't know what is the actual weekday name. 166 00:09:07,210 --> 00:09:09,230 So let's create a new table. 167 00:09:09,250 --> 00:09:11,380 Let's put our weekday name in there. 168 00:09:13,430 --> 00:09:14,840 So we drop that in there. 169 00:09:15,650 --> 00:09:20,180 I'm going to drop it all week, then I'm going to drop off sales. 170 00:09:20,720 --> 00:09:25,730 And again, we're going to see that we have this problem where the days are not in the correct order. 171 00:09:25,730 --> 00:09:29,480 And if I change the sort order of this, it's just going to change it alphabetically. 172 00:09:30,050 --> 00:09:34,040 Now, what you'll remember is that what we did for this was we clicked on weekday name. 173 00:09:34,920 --> 00:09:40,320 We went to our sort bar column and we actually said that this is going to be sorted by the weekday number, 174 00:09:40,320 --> 00:09:42,930 which is etched in this case or weekday field. 175 00:09:43,680 --> 00:09:44,400 Select that. 176 00:09:44,400 --> 00:09:47,130 And now you see that the order has changed to be correct. 177 00:09:48,440 --> 00:09:50,600 You'll also see this with all month name. 178 00:09:50,600 --> 00:09:52,400 So again, I'm going to create a table. 179 00:09:54,160 --> 00:09:55,750 And to put a month name in there. 180 00:09:56,720 --> 00:09:58,400 So we got our different month names again. 181 00:09:58,400 --> 00:10:00,260 You can see they're not in the correct order. 182 00:10:00,660 --> 00:10:02,210 Drop the sales figure in there. 183 00:10:02,840 --> 00:10:04,940 And again, now I'm going to go to my month name. 184 00:10:05,020 --> 00:10:06,650 I'm going to go to my soap bar column. 185 00:10:06,950 --> 00:10:10,580 And I'm going to now say I want to sort it by the month number. 186 00:10:11,060 --> 00:10:11,900 Select that. 187 00:10:11,900 --> 00:10:15,450 And you can now see that I've got the month names in the correct order. 188 00:10:15,470 --> 00:10:16,390 So there we go. 189 00:10:16,400 --> 00:10:18,620 That is how we can use a date master. 190 00:10:18,620 --> 00:10:23,210 We can bring it in and you can see that I've just used the same functionality that I used in the previous 191 00:10:23,210 --> 00:10:28,970 lessons, but I could now easily bring this into other reports to set up the relationship, set up the 192 00:10:28,970 --> 00:10:32,720 the fact of getting the sort bar correct and then I can use all those dates. 193 00:10:32,720 --> 00:10:36,320 So probably a lot quicker than recreating all of these fields each time. 194 00:10:36,620 --> 00:10:36,770 Okay. 195 00:10:36,770 --> 00:10:38,150 We're going to conclude the lesson there. 196 00:10:38,300 --> 00:10:39,470 We'll see you in the next one. 19237

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