
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
10 questions
Internet voor elke dag
Presentation
•
Professional Development
12 questions
Presentasi JTEI Polman Babel
Presentation
•
Professional Development
13 questions
Machine Learning Week 3: Linear Regression with one variable
Presentation
•
Professional Development
8 questions
Exercising Judgement to Resolve Customer Service Issues
Presentation
•
Professional Development
14 questions
M9_Practice
Presentation
•
Professional Development
10 questions
Adobe Photoshop CS3
Presentation
•
Professional Development
10 questions
PowerApp (DDIY2023)
Presentation
•
Professional Development
10 questions
On Call onboarding
Presentation
•
Professional Development
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade