# GRC-102 - Conquering DAX 2019

This workshop is a complete course about the DAX language. DAX is the native language of Power BI, Power Pivot for Excel, and SSAS Tabular models in Microsoft SQL Server Analysis Services. The training is aimed at users of Power BI, Power Pivot for Excel, and at Analysis Services developers that want to learn and master the DAX language. This course covers the latest version of DAX 2019

Duration: 5.0 days

## Schedule

 Singapore | 03 Jul 2023 - 07 Jul 2023 Singapore
 Virtual ILT | 03 Jul 2023 - 07 Jul 2023 Singapore
 Kuala Lumpur | 03 Jul 2023 - 07 Jul 2023 Malaysia
 Virtual ILT | 03 Jul 2023 - 07 Jul 2023 Malaysia

Start learning today!

## Objectives

After completing this course, students will be able to:

• Understand all the features of the DAX language
• Write formulas for common and advanced scenarios

## Content

Module 1: Introduction to DAX
• What is DAX?

• DAX data types
• Calculated columns
• Measures
• Aggregation functions
• Counting values
• Conditional functions
• Handling errors
• Using variables
• Mathematical functions
• Relational functions
Module 2:  Table Functions
• Introduction to table functions
• Filtering a table
• Ignoring filters
• Mixing filters
• DISTINCT Function
• How many values for a column?
• ALLSELECTED function
• RELATEDTABLE  function
• Tables and relationships
• Tables with one row and one column
• Table variables
Module 3: Evaluation Contexts
• Introduction to evaluation contexts
• Filter context
• Row context
• Context errors
• Filtering a table
• Using RELATED in a row context
• Ranking by price
• Evaluation contexts and relationships
• Filters and relationships
Module 4: CALCULATE Function
• Introduction to CALCULATE function
• CALCULATE function examples
• CALCULATE function recap
• What is a filter context?
• KEEPFILTERS  function
• CALCULATE operators
• Use one column only in a compact syntax
• Variables and evaluation contexts
• CALCULATE modifiers
• USERELATIONSHIP function
• CROSSFILTER function
• ALL function
• ALLSELECTED function
• KEEPFILTERS function
• Context transition
• Circular dependency
• CALCULATE execution order
Module 6: Iterators
• Working with iterators
• MINX and MAXX functions
• Useful iterators
• RANKX function
• ISINSCOPE function
Module 7: Building a Date Table
• Introduction to date tables
• Auto Date/Time
• CALENDARAUTO function
• Mark as date table
• Using multiple dates
Module 8: Time Intelligence in DAX
• What is time intelligence?
• Time intelligence functions
• DATESINPERIOD function
• Running total
• Mixing time intelligence functions
• Calculation over weeks
Module 9:  Hierarchies in DAX
• What are hierarchies
• FILTER and CROSSFILTER function
• Percentages over hierarchies
• Parent-child hierarchies
Module 10: Data Lineage and TREATAS
• What is data lineage?
• TREATAS function
Module 11: Expanded Tables
• Filters are tables!
• Difference between base tables and expanded tables
• Filtering a column
Module 12: Arbitrarily Shaped Filters
• What are arbitrarily shaped filters?
• Example of an arbitrarily shaped filter
Module 13: ALLSELECTED and Shadow Filter Contexts
• ALLSELECTED function revisited
Module 14: Segmentation
• Static segmentation
• Circular dependency in calculated tables
• Dynamic segmentation
Module 15: Many-to-many Relationships
• How to handle many-to-many relationships
• Bidirectional filtering
• Expanded table filtering
• Comparison of the different techniques

Module 16: Ambiguity and Bidirectional Filters
• Understanding ambiguity
Module 17: Relationships at Different Granularities
• Working at different granularity
• Using TREATAS function
• Calculated tables to slice dimensions
• Leveraging weak relationships
• Scenario recap
• Checking granularity in the report
• Hiding or reallocating
Module 18: Querying with DAX
• Working with tables and queries
• EVALUATE syntax
• CALCULATETABLE  function
• SELECTCOLUMNS  function
• SUMMARIZE function
• SUMMARIZECOLUMNS function
• CROSSJOIN function
• TOPN and GENERATE functions
• ROW and DATATABLE functions
• Tables and relationships
• UNION, INTERSECT and EXCEPT functions
• GROUPBY functions
• Query measures

Lab Exercises:

• Lab 01
o  First steps with DAX
o  Average sales per customer
o  Average delivery time
o  Last update of customer
o  Working days
o  Discount categories

• Lab 02
o  Percentage of sales
o  Delivery working days
o  Sales of products in the first week
o  Customers with children

• Lab 03
o  Nested iterators
o  Customers in North America (BASIC)
o  Create a parameter table

• Lab 04
o  Sales of red and blue products
o  Understanding CALCULATE
o  Sales of blue products
o  Customers in North America (ADVANCED)
o  Computing percentages

• Lab 05
o  Correct sales of grey products
o  Best customers
o  Large sales
o  Percentage of customers
o  Counting spikes

• Lab 06
o  Ranking customers (static)
o  Ranking customers (dynamic)
o  Date with the highest sales
o  Moving average

N/A

## Prerequisites

Attendees need to have a basic knowledge of the data modeling in Power Pivot for Excel, or Power BI Desktop, or Analysis Services Tabular modeling.

## Certification

This course is not associated with any Certification.

## Course Benefits

• Career growth
• Up-to Date technical skills

## sc-900t00

This course provides foundational level knowledge on security, compliance, and identity concepts and related cloud-based Microsoft solutions.

## az-204

Learn to create end-to-end solutions in Microsoft Azure in this 5-days official Microsoft course.

## az-104

This course teaches IT Professionals how to manage their Azure subscriptions, secure identities, administer the infrastructure, configure virtual networking, co

## ms-700t00

The Managing Microsoft Teams course is designed for those aspiring to be Microsoft 365 Teams Administrators to deploy, configure and manage Office 365 workloads

1M9O59