
Learn DAX Basics
Presentation
•
Computers, Professional Development, Other
•
Professional Development
•
Hard
Li Da Gan
Used 5+ times
FREE Resource
6 Slides • 9 Questions
1
Learn DAX Basics
by Li Da Gan
2
Learn DAX Basics
Data Analysis Expressions (DAX)
A collection of functions, operators and constants that can be used in a formula and expression
Calculate and return one or more values
Provide capabilities to solve data modeling and analytical problems
3 fundamental concepts – Syntax, Functions and Context
DAX in Power BI
3
Fill in the Blanks
Type answer...
4
Syntax
Calculated Column
E.g. Margin = FactSales[SalesAmount] – FactSales[TotalCost]
In the FactSales table, for each row in the Margin calculated column, calculate (=) a value by subtracting (-) values in the [TotalCost] column from values in the [SalesAmount] column
Calculated Measure
E.g. Sum of Sales Amount = SUM(FactSales[SalesAmount])
For the measure named Sum of Sales Amount, calculate (=) the SUM of values in the [SalesAmount] column in the FactSales table
5
Multiple Choice
What always surrounds a column name in a DAX formula?
Ampersand &
Brackets [ ]
Parentheses ( )
Exclamation !
6
Fill in the Blanks
Type answer...
7
Functions
Predefined formulas that perform calculations by using specific arguments, in a particular order or structure
Categories: Date and Time, Information, Logical, Mathematical, Statistical, Text, and Time Intelligence Functions
DAX functions are unique in the following way:
Always references a complete column or a table. Use filters to the formula if use only particular values from a table or column
Calculations vary by context
Many functions return a table rather than a value. The table is not displayed, but is used to provide input to other function
8
Multiple Select
What does a function always reference?
Variables
Arguments
Table
Column
9
Multiple Choice
What function would you use to concatenate two text strings into one string?
CONCATENATE( )
VALUE( )
CONCATENATEX( )
EXACT( )
10
Multiple Choice
Can a formula contain more than one function?
YES
NO
11
Context
Row Context
The current row
Margin = FactSales[SalesAmount] – FactSales[TotalCost]
Filter Context
One or more filters applied in a calculation that determines a result or value
Define a filter using functions such as ALL, RELATED, FILTER, CALCULATE
SumofSalesAmount = SUM(FactSales[SalesAmount])
StoreSales = CALCULATE(SUM(DimChannel[Sales]), FILTER(DimChannel, DimChannel[ChannelName]=“Store”))
12
Multiple Select
What are the two types of context?
Row
Column
Filter
Group
13
Fill in the Blanks
Type answer...
14
Multiple Choice
Which part is the context?
StoreSales = CALCULATE(SUM(DimChannel[Sales]), FILTER(DimChannel, DimChannel[ChannelName]=“Store”))
StoreSales
Sum(DimChannel[Sales])
FILTER(DimChannel, DimChannel[ChannelName]=“Store”)
15
Advanced Techniques
Multi-lines DAX formula
Learn DAX Basics
by Li Da Gan
Show answer
Auto Play
Slide 1 / 15
SLIDE
Similar Resources on Wayground
8 questions
KC Review
Presentation
•
Professional Development
14 questions
Incident Response
Presentation
•
Professional Development
10 questions
Gerunds in Relative Clauses
Presentation
•
Professional Development
15 questions
SALES DAY DEMO 8TH DEC, 2023
Presentation
•
Professional Development
11 questions
Lanzamiento Ruta de Aprendizaje Autos Éxito salesforce
Presentation
•
Professional Development
12 questions
quizizz
Presentation
•
Professional Development
9 questions
Digital Worksheets
Presentation
•
Professional Development
11 questions
Episode 1 Serbu Asa Ramadan 1446 H
Presentation
•
Professional Development
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade