Documente Academic
Documente Profesional
Documente Cultură
• Reviewing DAX
• Using the CALCULATE and ALL Functions
• Demonstration: Adding a Calculated Column in
the Data Model
Reviewing DAX
• Context
• Row context
• Filter context
• CALCULATE
• ALL
• Using CALCULATE and ALL to determine
proportions:
SalesShare: =
( SUM('SalesItems'[TotalDue]) )
/ CALCULATE( SUM('SalesItems' [TotalDue],
ALL('SalesItems') ) )
Demonstration: Adding a Calculated Column in
the Data Model
• What Is a Measure?
• Creating Measures
• SUMX, AVERAGEX, and COUNTX
• Demonstration: Adding and Using Measures
What Is a Measure?
1.34
Values in Measure Result PivotTable or
Context PivotChart
Creating Measures
AverageTaxOutsideUS:=
AVERAGEX(
FILTER('Orders', [Country]<>"USA"),
[TotalIncTax] – [TotalExTax]
)
Demonstration: Adding and Using Measures
06/10/2016 – 06/26/2016
SAMEPERIODLASTYEAR
06/10/2015 – 06/26/2015
Statistical Functions
• AVERAGE
• AVERAGEA
8, 1, , 4, 6, 18, 5, 4, TRUE, 21, 32
• COUNT
• COUNTA
• COUNTBLANK COUNT
• COUNTROWS
• MAX 9
• MIN
• STDEV.S
• STDEV.P
Filter Functions
• DISTINCT
• FILTER
8, 1, 4, 6, 18, 5, 4, 18, 8, 32
• FILTERS
• RELATED
• RELATEDTABLE DISTINCT
8, 1, 4, 6, 18, 5, 32
Other Functions
• Information functions
• Logical functions
• Math functions
• Text functions
TRIM
Logon Information
Virtual machine: 20779B-MIA-CLI
User name: Student
Password: Pa55w.rd
• Review Question(s)