Section 1: DAX and the Data Model in Power BI
- What DAX is and how it works with Power Query and the data model
- Star schema basics: fact tables, dimension tables and relationships
- Measures, calculated columns and calculated tables, and when to use each
- Formula syntax: referencing tables and columns, operators and comments
- Lab: explore the sales model and create your first measure
Section 2: Lab: Basic Measures and Managing Measures
- SUM, AVERAGE, MIN, MAX, COUNTROWS and DISTINCTCOUNT
- Explicit measures versus dragging a column into a visual to summarise it
- DIVIDE versus the / operator, and handling division by zero
- A measure table, display folders and format strings so the team can share measures easily
- Lab: sales, cost, profit and margin measures
Section 3: Lab: Variables and Readable Formulas
- VAR and RETURN make formulas shorter, evaluated once and easier to check
- Using variables instead of EARLIER, as current guidance recommends
- Formatting multi-line formulas and naming measures clearly
- Testing measures in DAX query view with a basic EVALUATE statement
- Lab: rewrite a long formula with variables
Section 4: Lab: The Date Table and Date and Time Functions
- Build a date table with CALENDAR or CALENDARAUTO and ADDCOLUMNS
- Mark it as a date table and relate it to the fact table
- YEAR, MONTH, WEEKDAY, EDATE, EOMONTH and TODAY
- DATEDIFF for customer age, length of service and delivery time
- Lab: a Thai-language date table with a fiscal year and correctly sorted month names
Section 5: Lab: Text, Logical and Information Functions
- FORMAT, LEFT, MID, FIND, SUBSTITUTE and joining text with &
- IF, nested IF and SWITCH, including the SWITCH(TRUE(), ...) pattern
- The &&, || and IN operators, with ISBLANK and COALESCE for blank values
- SELECTEDVALUE and HASONEVALUE for reading what the user picked in a slicer
- Lab: customer grades and a report heading that changes with the slicer