Download presentation
Presentation is loading. Please wait.
1
Introducing DAX July 11th, 2015
2
About Me Senior BI Consultant
Present at SQL Saturday’s, code camps, SQL chapters Blog at intelligentsql.wordpress.com Twitter
3
DAX Used for both Power Pivot workbooks and Tabular databases
Stands for Data Analysis Expressions Excel formula-esque in nature References columns of data at a time Cannot use ranges or individual cell references Can provide time intelligence
4
Context Filter Context applies to the set of values that is affected by the rows and columns of the pivot Row Context includes the values from all of the columns in the current row Query Context is the set of data retrieved for a formula Insert witty context picture here
5
Row Context “current row” Calculated columns
The row context for a row will also include all of the values for a table that is related that also belong to that current row Automatically follows relationships between tables as deep as needed Insert Pivot table showing row context stuff here
6
Query Context Data retrieved by a formula “Intersection of points”
Populated in each cell for the values in a Pivot Table
7
Filter Context Filter constraints on the allowed values in a column
Applies on top of row context or query context
8
CALCULATE The CALCULATE command evaluates an expression in a context that is modified by the filters Syntax looks like: CALCULATE( <expression>, <filter1>, <filter2>… ) We can specify relationships, iterators, and use this to bridge more difficult table relationships such as many to many
9
Navigation Since these two tables are related, I want to…..
Creating relationships in the diagram view USERELATIONSHIP() CALCULATE(COUNT([ShipDate], USERELATIONSHIP(‘Sales’[ShipDate],’Date’[DateSK])
10
IF….THEN If this, then that (IFTT)
11
Bad String If bad data is coming in from the source, we can modify it via a calculated column and “row context” SUBSTITUTE() REPLACE() CONCATENATE() Add a full name column to the customer table to concatenate the first name and last name
12
Time Intelligence Refers to analyzing data over time
If it’s July 11th, 2015, what has our company looked like so far this year? What about July 11th of last year? By using a date dimension, we can tell DAX to go back and find related points in time for reporting purposes.
13
Key Performance Indicators
Also called KPI’s for short Can be used to visually display a designated metric to a target goal
14
The End Comments are welcome!
Please feel free to contact me via twitter or at or
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.