In this chapter, you learned how to add variables to your DAX code using the VAR and RETURN keywords, as well as how using variables will make your code easier to read. You learned about nesting variables and about the different levels of scope in which variables can exist and interact with each other.
Then, you went through some practical examples of variables being used to create measures, calculated fields, and calculated tables. You also looked at the advantages of following set formatting rules when writing DAX code. Finally, you went through a practical example of how to use both of these features to help you debug your code.
In the next chapter, we will learn about the importance of data models and the different types of schema. We'll look at DAX data modeling concepts, how to load data into a data model, and how DAX can be used to extend a data model.
...