1 00:00:00,180 --> 00:00:06,000 From here on out, we will be using DACS to create new columns, measures and generally extend our power 2 00:00:06,000 --> 00:00:07,120 pivot capabilities. 3 00:00:07,590 --> 00:00:12,840 Now, before you get too scared and jump ship, because maybe you're not a programmer, while DACS may 4 00:00:12,840 --> 00:00:18,000 be a language if you've ever written and an Excel formula, then you've basically written DACS. 5 00:00:18,270 --> 00:00:21,270 Now that stands for data analysis expression's. 6 00:00:21,690 --> 00:00:24,500 Basically, it's really just a fancy name for formulas. 7 00:00:24,960 --> 00:00:30,150 It doesn't consist of big long text files with crazy object oriented stuff like you might have to do 8 00:00:30,150 --> 00:00:30,930 with C Sharp. 9 00:00:31,140 --> 00:00:33,750 And it's not a scripting language like VPA or Ruby. 10 00:00:34,050 --> 00:00:37,230 I mean, I guess technically there's something to it behind the scenes. 11 00:00:37,530 --> 00:00:40,380 But for what you and I will be doing, it's just formulas. 12 00:00:40,740 --> 00:00:45,630 Some of the formulas will be longer than others and the formulas can be written more nicely than Excel 13 00:00:45,630 --> 00:00:49,500 formulas with spacing in the dense and such so that they're more readable. 14 00:00:49,800 --> 00:00:55,340 But at the end of the day, we're just talking about Excel formulas with a few different rules involved. 15 00:00:55,620 --> 00:00:58,920 So to start, let's discuss some basic concepts here in Excel. 16 00:00:59,730 --> 00:01:05,640 DACs, just like Excel, supports common arithmetic formulas like plus minus times and so on. 17 00:01:06,270 --> 00:01:11,370 So on a formula we can write something like equals five times two to get the value ten. 18 00:01:11,970 --> 00:01:15,240 Now a large portion of DACs will involve using functions. 19 00:01:15,270 --> 00:01:21,930 Most of it, in fact, functions consist of the name of the function, such as if followed immediately 20 00:01:21,930 --> 00:01:24,020 by a parentheses with no space. 21 00:01:24,390 --> 00:01:26,130 This is called opening the function. 22 00:01:26,910 --> 00:01:31,980 Once you've opened the function, you can pass information in through parameters. 23 00:01:32,460 --> 00:01:38,550 Functions can have a fixed number of parameters, such as our function, which has three with the specific 24 00:01:38,550 --> 00:01:40,710 order and specific requirements for each. 25 00:01:41,100 --> 00:01:45,720 Some other functions will have optional or even an unending parameters list. 26 00:01:46,170 --> 00:01:52,290 A good example of this in Excel is the sum function we can at any number of inputs to the sum function 27 00:01:52,440 --> 00:01:53,880 to total them all together. 28 00:01:54,270 --> 00:01:59,220 We can add a list, sells individual cells, fixed numbers and on and on. 29 00:02:00,370 --> 00:02:05,980 Now, optional parameters are those parameters that can be included or excluded to modify the outcome 30 00:02:05,980 --> 00:02:06,730 of a function. 31 00:02:07,210 --> 00:02:10,730 These are typically denoted with square brackets around the parameter name. 32 00:02:11,470 --> 00:02:16,690 So, for example, if we look at the V look up function, there are three required inputs and then one 33 00:02:16,690 --> 00:02:17,530 optional input. 34 00:02:17,530 --> 00:02:23,530 At the end, optional inputs for functions will always occur at the end of the parameter list. 35 00:02:23,920 --> 00:02:28,120 Some functions will allow for the use of an unending pattern of inputs. 36 00:02:28,570 --> 00:02:30,700 The sothis function is a good example. 37 00:02:32,060 --> 00:02:38,090 The function takes one input that's required and then pairs of inputs together until you've provided 38 00:02:38,090 --> 00:02:43,910 enough inputs to solve your problem, so you'd have to put in three, five, seven, nine and on and 39 00:02:43,910 --> 00:02:51,260 on combinations of parameters to use the Sonmez function where each one is a pattern of a range, followed 40 00:02:51,260 --> 00:02:52,310 by a criteria. 41 00:02:52,730 --> 00:02:56,270 DACs functions will follow these same types of rules and details. 42 00:02:56,270 --> 00:02:59,650 For the most part, they use essentially the same syntax. 43 00:02:59,900 --> 00:03:03,440 Many of the function names will even match cells function names. 44 00:03:03,770 --> 00:03:08,950 Really, if you have any experience with Excel formulas, you should pick up DACs very quickly. 45 00:03:08,990 --> 00:03:13,640 But if not, we'll be working from the ground up within Daks and you'll learn along the way.