All language subtitles for 005 The =Calculate Formula_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,180 --> 00:00:08,870 In this lesson, I'd like to discuss a function called the equals calculate. 2 00:00:09,050 --> 00:00:12,590 You're going to find that equals calculator is a really powerful dex function. 3 00:00:12,620 --> 00:00:17,150 Well, we're going to be looking at here is how we can use it with some different filters. 4 00:00:17,180 --> 00:00:21,890 So what I'm going to do is I'm actually just going to take this existing visualization, delete that 5 00:00:21,890 --> 00:00:24,950 one, and let's just remove some of these fields. 6 00:00:24,950 --> 00:00:26,930 So we just got our total cells. 7 00:00:27,860 --> 00:00:35,870 So if we were to go into just saying having our country and our total sales value, let's say we wanted 8 00:00:35,870 --> 00:00:40,070 to know by different business segments what the actual sales value was. 9 00:00:40,250 --> 00:00:43,100 Now, one of the things that I could do is I could create a slicer. 10 00:00:43,430 --> 00:00:46,840 And let's say, for example, we dropped our business segment in there. 11 00:00:46,850 --> 00:00:49,100 You'll see that there's four different business segments. 12 00:00:49,340 --> 00:00:54,800 So so for example, Archer's box, now you see straight away, obviously, that my total sales now gets 13 00:00:54,800 --> 00:00:57,680 filtered by the box business segment. 14 00:00:57,680 --> 00:01:00,650 So it's only showing me the values for that box segment. 15 00:01:01,010 --> 00:01:04,340 But what if I wanted to actually have it as a column? 16 00:01:04,340 --> 00:01:07,580 So I wanted to know what is the sales of my box? 17 00:01:08,400 --> 00:01:08,520 Yeah. 18 00:01:08,520 --> 00:01:11,130 Let's have a look and see how we could actually do that. 19 00:01:11,130 --> 00:01:16,380 So just make that a bit wider and we're going to create a new measure for this. 20 00:01:17,080 --> 00:01:18,790 So we're going to drop in a new measure. 21 00:01:18,790 --> 00:01:23,860 And in this case, what we're going to call it is we're going to say that this is the sales of my box 22 00:01:24,220 --> 00:01:25,030 equals. 23 00:01:25,600 --> 00:01:28,420 Now, as I said, we've got a function called equals calculate. 24 00:01:28,420 --> 00:01:33,340 So when I start typing, calculate, you'll see that calculate comes up as an option and I'm going to 25 00:01:33,340 --> 00:01:34,120 select that. 26 00:01:34,390 --> 00:01:38,140 And what it says to me is that, first of all, what is my expression? 27 00:01:38,440 --> 00:01:42,370 Now, one of the really powerful things about calculate is that I can have different expressions in 28 00:01:42,370 --> 00:01:42,550 there. 29 00:01:42,550 --> 00:01:46,810 I could use a sum, I could use an average, I could use a min max account, a distinct count. 30 00:01:47,110 --> 00:01:49,480 Basically you use any of the expressions. 31 00:01:49,630 --> 00:01:53,980 So in one way it's working very much like an equal sum f or equals average it. 32 00:01:54,190 --> 00:01:58,810 But the nice thing about it is that because you can actually just bring any expression in there, you 33 00:01:58,810 --> 00:02:01,150 can tell it what you actually want to sum. 34 00:02:01,240 --> 00:02:06,280 So let's say, for example, I wanted to say we're going to sum, and in this case we're going to say 35 00:02:06,280 --> 00:02:07,750 we want to sum the sales. 36 00:02:08,650 --> 00:02:09,759 And let's go down. 37 00:02:09,759 --> 00:02:11,500 I'm going to choose data sales. 38 00:02:11,800 --> 00:02:16,000 So that's my expression, is we could say some data sales. 39 00:02:16,180 --> 00:02:19,270 When I press comma and then ask me what is filter one? 40 00:02:19,540 --> 00:02:25,810 So now in this case, I wanted to go to the business segment and I want to find only where it equals 41 00:02:25,810 --> 00:02:26,560 box. 42 00:02:27,040 --> 00:02:29,230 Now, please note you can have multiple filters in there. 43 00:02:29,260 --> 00:02:30,910 We will show an example of that. 44 00:02:31,240 --> 00:02:33,560 But to start with, we'll just have one filter. 45 00:02:33,580 --> 00:02:38,770 So in this case, I'm going to say go to the data table and we're going to look for our business segment 46 00:02:38,770 --> 00:02:39,400 field. 47 00:02:39,640 --> 00:02:42,010 So just look for your data business segment. 48 00:02:42,040 --> 00:02:43,060 I'm going to select that. 49 00:02:43,510 --> 00:02:47,080 And in this case, what we want to say is our filter equals. 50 00:02:47,530 --> 00:02:53,260 And please, because it's a text field, we're going to use our quotations and we're going to say word 51 00:02:53,260 --> 00:02:55,120 equals box. 52 00:02:56,290 --> 00:02:59,320 Okay, before we move on with this, let's just review what we've got here. 53 00:02:59,320 --> 00:03:06,880 We've got sales equals calculate the sum of our sales when the business segment equals box. 54 00:03:07,780 --> 00:03:09,040 Press enter on that. 55 00:03:09,250 --> 00:03:11,560 So we've created a new measure down here. 56 00:03:11,560 --> 00:03:12,580 So we've got our measure. 57 00:03:12,730 --> 00:03:14,170 Let's just drag that in there. 58 00:03:14,870 --> 00:03:18,290 So now what you can see, actually, let's just do the formatting quickly. 59 00:03:19,400 --> 00:03:21,890 Just remove those decimals, make it easier to read. 60 00:03:22,730 --> 00:03:23,340 There we go. 61 00:03:23,360 --> 00:03:30,740 So what you can see now is that cells box HD is filtered to only show the business segment bikes. 62 00:03:31,220 --> 00:03:35,180 If I was to select this, you would see then the box would equal box. 63 00:03:35,180 --> 00:03:37,490 So basically that would show that. 64 00:03:37,880 --> 00:03:43,400 Also now if you change this, you will see that sales box continues to only show the sales box figures 65 00:03:43,400 --> 00:03:47,960 because it's now got a filter that is basically overriding the filter here. 66 00:03:47,960 --> 00:03:50,240 So it's showing what the cells of the box is. 67 00:03:51,260 --> 00:03:52,220 Okay, so there we go. 68 00:03:52,220 --> 00:03:54,440 That's how we get a filter on this. 69 00:03:55,370 --> 00:03:57,090 So let's look at another example. 70 00:03:57,110 --> 00:03:59,450 Let's say we've got our different years. 71 00:03:59,480 --> 00:04:04,190 Now, remember, our years are actually in a different table, but we've got a relationship with that 72 00:04:04,190 --> 00:04:05,470 table, so that's great. 73 00:04:05,480 --> 00:04:10,310 You'll see that equals calculate actually can go across different relationships and work. 74 00:04:10,790 --> 00:04:14,180 So now we want to say were the year equal to specific figure. 75 00:04:14,270 --> 00:04:18,000 So let's actually just drop our slicer and drop a new slicer. 76 00:04:18,019 --> 00:04:19,610 Let's have a look at these different years. 77 00:04:21,130 --> 00:04:23,220 And just make that a bit smaller. 78 00:04:23,230 --> 00:04:24,460 Drop a year and there. 79 00:04:25,520 --> 00:04:27,470 And I'm actually going to make this a list. 80 00:04:27,500 --> 00:04:32,960 Let's just go to options, go to our slice settings, and we're going to say that it's going to be a 81 00:04:32,960 --> 00:04:33,830 vertical list. 82 00:04:34,670 --> 00:04:40,250 So if I was to say I want anyone to see the data for 2019, now you can see that my table has been filtered 83 00:04:40,250 --> 00:04:47,060 quite a bit, so it's showing me the sales of the bikes in 2019 and total sales as well for 2019. 84 00:04:47,390 --> 00:04:53,420 So let's say that we wanted to say though, what was the sales in 2019 just as a new measure. 85 00:04:54,170 --> 00:04:55,580 So we're going to add new measure. 86 00:04:56,810 --> 00:05:02,540 And we're going to say that this is going to be our sales 2019 equals. 87 00:05:02,720 --> 00:05:04,250 And use our calculate again. 88 00:05:05,220 --> 00:05:06,900 Now you'll remember it in the previous one. 89 00:05:06,900 --> 00:05:10,530 My expression was What is the sum of my sales? 90 00:05:10,800 --> 00:05:14,850 However, we've actually already got a measure that does the sum of the sales. 91 00:05:14,850 --> 00:05:16,320 It's called my total sales. 92 00:05:16,620 --> 00:05:20,210 So if I press the left square bracket, I'll see a list of all my measures. 93 00:05:20,220 --> 00:05:24,660 And instead of putting the expression, I can actually just put the name of the measure because that's 94 00:05:24,660 --> 00:05:26,420 basically doing the sum of my sales. 95 00:05:26,430 --> 00:05:31,640 So in this case, I'm just choosing the name of the measure and you can see it's in my square brackets, 96 00:05:31,650 --> 00:05:36,450 but that's basically the sum of my sales and then my filter. 97 00:05:36,480 --> 00:05:43,470 In this case, I wanted to go to the dates table and within the data table I wanted to go to the year, 98 00:05:43,470 --> 00:05:46,320 select the year, and we're going to say equals. 99 00:05:46,350 --> 00:05:50,280 Now, in this case, because here is a numeric field, I can actually just type it in. 100 00:05:50,280 --> 00:05:52,590 I don't have to use the quotations. 101 00:05:53,480 --> 00:05:55,010 Okay, So let's review that. 102 00:05:55,310 --> 00:05:56,180 So here we go. 103 00:05:56,210 --> 00:05:58,520 Sales 2019 equals calculate. 104 00:05:58,520 --> 00:06:03,650 We're using the total sales measure, which is the sum of my sales filter is going to be date. 105 00:06:03,650 --> 00:06:06,230 The year equals 2019. 106 00:06:06,680 --> 00:06:09,520 Just enter a net sales 2019. 107 00:06:09,710 --> 00:06:11,210 Just drop it in the table. 108 00:06:12,320 --> 00:06:13,720 And there we go. 109 00:06:13,740 --> 00:06:14,780 Actually did go in. 110 00:06:14,960 --> 00:06:17,720 Nazi Germany had no cells in 2019. 111 00:06:17,930 --> 00:06:21,920 So it's now done the calculation based across a table. 112 00:06:24,020 --> 00:06:26,000 Yeah, let's just do the formatting on that quickly. 113 00:06:26,030 --> 00:06:26,720 There we go. 114 00:06:27,290 --> 00:06:31,160 Now what you will see is as you play more and more with equals calculate, you're going to see that 115 00:06:31,310 --> 00:06:33,830 there's just more and more powerful things you can do with it. 116 00:06:33,860 --> 00:06:37,950 The last one I want to show here is that you can create more than one filter. 117 00:06:37,970 --> 00:06:42,680 So we may want to know what is the sales of box in 2019. 118 00:06:42,680 --> 00:06:45,680 So now we want to have two different filters on the. 119 00:06:46,830 --> 00:06:48,330 Okay, So let's create the measure for that. 120 00:06:48,330 --> 00:06:49,530 Let's say new measure. 121 00:06:49,650 --> 00:06:52,980 So we're going to call it in our sales box. 122 00:06:53,860 --> 00:06:56,320 2019 equals. 123 00:06:56,470 --> 00:06:59,050 And in this case, it's going to be calculate again. 124 00:07:00,030 --> 00:07:04,380 Again, we're going to use the sum of our sales so we can use our total sales. 125 00:07:04,380 --> 00:07:08,280 But as I say, please remember with these expressions, you could be using an average, you'd be using 126 00:07:08,280 --> 00:07:10,250 a min, a max account, a distinct distinction. 127 00:07:10,260 --> 00:07:12,350 You can use different expressions in here. 128 00:07:12,360 --> 00:07:15,450 I've just used the sum just a bit simple, right? 129 00:07:15,450 --> 00:07:17,820 We're going to go comma, we can move to first filter. 130 00:07:17,820 --> 00:07:22,170 So in this first filter, we're going to our data table, we're going to our business segment. 131 00:07:22,200 --> 00:07:23,430 We're saying equals. 132 00:07:23,610 --> 00:07:26,160 And in this case we are saying equals box. 133 00:07:27,610 --> 00:07:30,620 Now we can add another one and you'll see the full two two just gets added. 134 00:07:30,640 --> 00:07:35,230 You could keep adding as many filters as you want, but in this case, we're going to the data table 135 00:07:35,230 --> 00:07:37,570 and we're saying we're the year equals. 136 00:07:37,810 --> 00:07:42,550 Now, remember, with this one, there's no quotation because we're using a numeric field and we're 137 00:07:42,550 --> 00:07:45,850 saying with the dates, the year equals 2019. 138 00:07:46,120 --> 00:07:50,560 And as you create more and more sophisticated Dak's, you're going to see that where it's highlighting 139 00:07:50,560 --> 00:07:52,470 the parentheses will start to become important. 140 00:07:52,480 --> 00:07:56,710 In this case, we do only have one set of parentheses, but if we did have an expression, we'd have 141 00:07:56,710 --> 00:07:58,060 another set of parentheses. 142 00:07:58,060 --> 00:08:01,510 So you've just got to make sure you've got a closing parentheses for every opening parentheses. 143 00:08:02,580 --> 00:08:03,210 Okay, but there we go. 144 00:08:03,210 --> 00:08:08,550 We got sales of the bikes 2019 and we basically going to accept that. 145 00:08:08,550 --> 00:08:12,000 And let's drop that into our sales box. 146 00:08:12,000 --> 00:08:13,050 Drop it in here. 147 00:08:13,200 --> 00:08:15,420 And again, this is Phil to this. 148 00:08:16,500 --> 00:08:18,090 Let's just format this quickly. 149 00:08:18,120 --> 00:08:19,140 There we go. 150 00:08:19,680 --> 00:08:21,540 I'll just accept all formatting. 151 00:08:21,540 --> 00:08:25,890 And then you can see now that we've got the combination where we've got our sales bikes and it's now 152 00:08:25,890 --> 00:08:28,020 calculating for each of the subregions. 153 00:08:28,290 --> 00:08:30,840 Obviously this is also just working that we've got. 154 00:08:30,840 --> 00:08:34,830 Subregion happens to be in our field at the moment and you could change this. 155 00:08:34,830 --> 00:08:39,059 You could say, I want to see this by my different categories, for example, and it would obviously 156 00:08:39,059 --> 00:08:40,620 then calculate. 157 00:08:41,400 --> 00:08:42,419 Where it can. 158 00:08:43,200 --> 00:08:44,400 For the different categories. 159 00:08:44,970 --> 00:08:46,740 So you could use different options there. 160 00:08:47,420 --> 00:08:47,640 Okay. 161 00:08:47,640 --> 00:08:48,560 We're going to leave it there. 162 00:08:48,570 --> 00:08:51,240 I'm going to conclude the lesson and I will see you in the next one. 15102

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