All language subtitles for 7. Implicit vs. Explicit DAX Measures

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
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
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,440 --> 00:00:05,970 So I hinted at this a little bit earlier but I want to take a minute to unpack this idea of implicit 2 00:00:06,030 --> 00:00:13,890 versus explicit measures now in power be i in the report view implicit measures are created when you 3 00:00:13,890 --> 00:00:20,820 drag raw numerical fields fields like order quantity from our sales data table into the values pain 4 00:00:21,030 --> 00:00:28,500 of a visual now what power be does is automatically select and apply an aggregation mode usually a sum 5 00:00:28,770 --> 00:00:33,080 so that you can view those numbers those values in a meaningful way. 6 00:00:33,180 --> 00:00:38,550 And that's exactly what's been going on with all of the values that we've been looking at in the matrix 7 00:00:38,550 --> 00:00:44,940 views that we've built now on the other hand explicit measures are created by actually entering tax 8 00:00:44,940 --> 00:00:53,140 functions or which we're not going to do quick measures to explicitly define calculated columns or measures. 9 00:00:53,250 --> 00:01:00,720 So very important difference here implicit measures are only accessible within the specific visualization 10 00:01:00,720 --> 00:01:02,280 in which they're created. 11 00:01:02,280 --> 00:01:06,800 You can't reference that sum of Order Quantity anywhere else. 12 00:01:06,840 --> 00:01:10,890 Same exact idea as a calculated field in an Excel pivot table. 13 00:01:10,890 --> 00:01:14,320 It can only be accessed and analyzed in that place. 14 00:01:14,400 --> 00:01:19,340 But what's great about explicit measures is that they can be used anywhere in the report. 15 00:01:19,350 --> 00:01:26,490 Once you create them and referenced within other tax calculations to create more complex formulas or 16 00:01:26,490 --> 00:01:28,800 something that we call measure trees. 17 00:01:28,890 --> 00:01:34,620 So for instance if we wanted to take this sum of order quantity and then ness that within another function 18 00:01:34,770 --> 00:01:40,500 like total orders minus total returns to come up with net orders or something similar we would have 19 00:01:40,500 --> 00:01:45,240 to create an explicit measure in order to access those component values. 20 00:01:45,240 --> 00:01:48,670 So let's jump in a power by and I'll show you what I mean. 21 00:01:48,700 --> 00:01:48,930 All right. 22 00:01:48,940 --> 00:01:55,420 So we're back in the report pane of our power by adventure Works report just like we left it and here 23 00:01:55,420 --> 00:02:00,260 we're looking at order quantities and return quantities by product keys. 24 00:02:00,520 --> 00:02:06,190 And now again if you look at the actual details you'll see that it's defaulted to an aggregation mode 25 00:02:06,340 --> 00:02:12,730 of some in both of these cases and that's kind of the standard behavior when you drag in a numerical 26 00:02:12,730 --> 00:02:13,600 field like this. 27 00:02:13,990 --> 00:02:19,190 So let's get rid of return quantity but keep this version of order quantity in here. 28 00:02:19,290 --> 00:02:21,350 We're just going to drag this closer. 29 00:02:21,660 --> 00:02:28,300 And now the idea is that I want to create a proper explicit measure to capture that same idea. 30 00:02:28,300 --> 00:02:35,080 That same sum of order quantity but I then want to be able to use and access that sum in other measures 31 00:02:35,080 --> 00:02:36,940 and calculations down the line. 32 00:02:36,970 --> 00:02:40,290 So I'm going to show you a couple approaches like we talked about. 33 00:02:40,330 --> 00:02:47,290 Number one I could go into modeling and click new measure and you see what happened when I did that. 34 00:02:47,620 --> 00:02:54,730 It created a new line item a new field for this measure and it placed it in the AWB calendar lookup 35 00:02:54,730 --> 00:02:57,930 table since that's the first one in our field list. 36 00:02:58,300 --> 00:03:03,700 And I'm trying to create a measure related to the sum of order quantity so it doesn't make any sense 37 00:03:03,700 --> 00:03:09,880 whatsoever for that measure to live in the calendar look up which is why I don't recommend using that 38 00:03:09,880 --> 00:03:13,570 approach using the modeling tab to create your measures. 39 00:03:13,570 --> 00:03:21,130 So instead of even typing it in here I'm going to go ahead and x out which just cancels that and instead 40 00:03:21,880 --> 00:03:27,460 I'm going to right click on the sales table or anywhere within the sales table I'm going to choose new 41 00:03:27,460 --> 00:03:29,840 measure from that menu. 42 00:03:29,920 --> 00:03:35,780 Now it's added the measure assigned it to the sales table where it makes a lot more sense to live. 43 00:03:35,890 --> 00:03:43,080 So to define this I'm going to give it a name let's call it quantity sold. 44 00:03:43,240 --> 00:03:45,940 And it's okay to use spaces in measures. 45 00:03:45,940 --> 00:03:49,890 They're always gonna be reflected in formulas surrounded by brackets. 46 00:03:49,930 --> 00:03:53,430 So in this case spaces don't really have any negative impact. 47 00:03:53,470 --> 00:03:56,700 And in fact they can often make them a bit more readable. 48 00:03:56,710 --> 00:04:05,010 So when do quantity sold with a space equals the sum of the Order Quantity column. 49 00:04:05,420 --> 00:04:10,840 And again this intel sense this autocomplete functionality is really user friendly so I'm just going 50 00:04:10,840 --> 00:04:13,640 to literally start typing order. 51 00:04:13,680 --> 00:04:20,720 I see that there are four columns within the W sales table that begin with order and we want order quantity 52 00:04:21,170 --> 00:04:28,730 so I can either arrow down and TAB or I can click and then double click again to lock it in. 53 00:04:28,760 --> 00:04:34,850 So it's really as simple as that the sum function has one argument it's the column name so I can close 54 00:04:34,850 --> 00:04:40,410 the parentheses and press enter and now looking over it I feel list. 55 00:04:40,460 --> 00:04:44,290 It's created a new field here called quantity sold. 56 00:04:44,330 --> 00:04:50,570 Now let's grab that pull it in right under our order quantity and you'll see that it returns the exact 57 00:04:50,570 --> 00:04:52,550 same numbers which is good. 58 00:04:52,550 --> 00:04:54,330 That's exactly what we want here. 59 00:04:54,440 --> 00:05:01,220 But again the first version the implicit version of this sum can not be accessed outside of this visual 60 00:05:01,700 --> 00:05:06,340 whereas the measure version of the sum which we've named quantity sold can. 61 00:05:06,350 --> 00:05:10,490 And that's what makes it way more powerful and way more flexible. 62 00:05:10,550 --> 00:05:16,610 So one of the best practices that we're going to talk more about is to create explicit measures even 63 00:05:16,610 --> 00:05:23,000 for very simple things that you could define with the auto aggregation available implicitly getting 64 00:05:23,000 --> 00:05:28,340 in the habit of using explicit measures will only make things easier for you down the road. 65 00:05:28,370 --> 00:05:29,300 So there you go. 66 00:05:29,300 --> 00:05:33,990 That's a simple example of creating our first true explicit measure. 67 00:05:34,070 --> 00:05:38,270 If we did want to move or reassign that measure this is where you do it. 68 00:05:38,270 --> 00:05:41,410 This little Properties Group in the modelling tab. 69 00:05:41,570 --> 00:05:45,320 You can just click the home table and assign it somewhere else. 70 00:05:45,410 --> 00:05:48,060 In this case it makes sense to live in the sales table. 71 00:05:48,140 --> 00:05:53,240 Since we're aggregating a sale specific field and you'll probably notice that you're seeing different 72 00:05:53,480 --> 00:05:59,030 kinds of icons next to the field in the field list the one that we just created the measure as a little 73 00:05:59,030 --> 00:06:00,970 calculator icon next to it. 74 00:06:01,070 --> 00:06:07,190 That's always going to be your indication of a calculated measure whereas the Order Quantity has that 75 00:06:07,190 --> 00:06:13,990 Sigma symbol next to it because it's a raw numerical field and you also have a different icon with the 76 00:06:14,000 --> 00:06:15,260 little effects. 77 00:06:15,350 --> 00:06:19,160 Looks like a small table that indicates a calculated column. 78 00:06:19,250 --> 00:06:23,420 So we have all three types here within our AWP sales data. 79 00:06:23,480 --> 00:06:24,220 So there you go. 80 00:06:24,230 --> 00:06:26,390 That's your first explicit measure. 81 00:06:26,390 --> 00:06:27,230 Congratulations. 9029

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